我想在Edittext中对齐图标和文本提示。但图标与左侧边界重叠。我想将其与左侧对齐,文本提示start after a small gap.Here是我的代码,但它不能正常工作。例如,像谷歌搜索选项。请告诉我怎么做。提前谢谢。
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout
在这段代码中,虽然我使用了文本对齐属性来设置编辑文本视图中心的“提示”。但它并没有正常运作。
<EditText
android:layout_width="300dp"
android:layout_height="wrap_content"
android:id="@+id/editText"
android:layout_centerVertical="true"
android:hint="Enter number here