android - Edittext background not working properly in some devices -
hi facing 1 little issue.i have tried set background edittext drawable.it works fine in of devices not working in devices.the background of edittext turned dark black in devices.i don't know why happening??
here drawable edittext,
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <stroke android:width="0.3dp" android:color="#1c1b20" > </stroke> <padding android:bottom="4dp" android:left="4dp" android:right="4dp" android:top="4dp" > </padding> <!-- here corner radius --> <corners android:radius="5dp" > </corners>
and applying edittext as,
<edittext android:id="@+id/e3" style="@style/custom" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:background="@drawable/rounded_edittext" android:digits="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz1234567890_@-." android:drawableleft="@drawable/usernamem" android:drawablepadding="10dp" android:ems="10" android:focusable="true" android:hint="@string/username" android:padding="5dip" />
the whole edittext turned black.even removed applying theme edittext seems same.i thought because of api level of device.is co
can figured me out why facing this??
in drawable xml add together below tag -
<solid android:color="#ffffff" />
you edittext white color inside
android background android-edittext
No comments:
Post a Comment