android - Transparent edit text view is different in 2.3 version and 4.2 version -
i'm struggling small problem, question using transparent edit text view in design part, in 4.2 version android device looking fine , good, if check same edit text in 2.3 version , below version showing black coloured edit text. edit text code.
<edittext android:id="@+id/name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="5dip" android:layout_weight="1" android:alpha="0.3" android:background="@drawable/reg_edittext" android:ellipsize="end" android:ems="10" android:lines="1" android:scrollhorizontally="true" android:singleline="true" android:textcolor="#ffffff" />
here reg_edittext
<?xml version="1.0" encoding="utf-8"?> <!-- res/drawable/rounded_edittext.xml --> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:padding="10dp" > <solid android:color="#000000" /> <corners android:bottomrightradius="5dp" android:bottomleftradius="5dp" android:topleftradius="5dp" android:toprightradius="5dp"/> </shape>
showing black coloured edit text in 2.3 version, in 4.2 showing transparent. answer me view same transparent in 2.3 version
android:alpha="0.3" alpha property added in api level 14. in previous version map looks different depends on devices.
try change backgroud solid color transparent may out.
android:color="#000000" transparent color range- #ff000000 #00000000
Comments
Post a Comment