我在给EditText
设置padding时遇到了一些奇怪的问题。xml代码如下:
<EditText
android:layout_width="270dp"
android:layout_height="55dp"
android:ems="10"
android:id="@+id/etEmail"
android:textStyle="bold"
android:layout_gravity="center_vertical"
android:textColor="#FFFFFF"
android:hint="Or Use your Email"
android:inputType="textEmailAddress"
android:layout_alignLeft="@+id/textView6"
android:layout_alignStart="@+id/textView6"
android:textColorHint="#FFFFFF"
android:background="@drawable/line_white"
android:paddingLeft="16.5dp"
android:layout_marginTop="10dp"
android:paddingRight="2dp" />
这里是三星Note 2 (Android 5.0.1)的屏幕截图:
![enter image description here](https://istack.dev59.com/Jv3hq.webp)
![enter image description here](https://istack.dev59.com/9jowE.webp)
可能的原因是什么?
谢谢。
更新: 布局界限 (LG):
![enter image description here](https://istack.dev59.com/p3P5S.webp)