必须设置edittext android的边框颜色吗?
我用过必须设置edittext android的边框颜色吗?,android,android-layout,android-activity,Android,Android Layout,Android Activity,我用过 <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <solid android:color="#ffffff" /> </shape> 我只想设置边框颜色,只是为了实现这一点,我尝试在角落使用颜色,但它不允许编译 <corners android:Color="#00ff0
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="#ffffff" />
</shape>
我只想设置边框颜色,只是为了实现这一点,我尝试在角落使用颜色,但它不允许编译
<corners
android:Color="#00ff00"
android:radius="0dp" />
试试这个
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="10dp"
android:shape="rectangle" >
<solid android:color="#FFFFFF" />
<stroke
android:width="2dp"
android:color="#00ff00" />
</shape>
它不允许编译…android:Color=“#00ff00”中的角落makeColor
有小写字母的打字错误。标签不支持android:Color
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="10dp"
android:shape="rectangle" >
<solid android:color="#FFFFFF" />
<stroke
android:width="2dp"
android:color="#00ff00" />
</shape>