在我的应用程序中,我设置EditText了边框背景颜色,它在所有设备上都能正常工作,但在我的4.1.2设备上整个EditText显示为黑色.我可以在其中输入文字,一切正常,但文字不可见,因为它EditText是完全黑色的.如果我删除背景边框颜色,它工作正常.
这是我的edittext的xml代码.
<EditText
android:id="@+id/et_date_from"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0.68"
android:background="@drawable/edittext_border"
android:ems="10" />
Run Code Online (Sandbox Code Playgroud)
edittext_border.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
android:thickness="0dp" >
<stroke
android:width="1dp"
android:color="@color/test_blue_light" />
<corners android:radius="5dp" />
</shape>
Run Code Online (Sandbox Code Playgroud)
请给我任何解决方案.