Android样式开发之Shape篇:学习Shape的应用
一:案例1:自定义Shape使EditText化身为Bootstrap 风格的 textarea
1.在 drawable 中 shape xml文件
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#FFFFFF"/>
<stroke
android:width="0.5dp"
android:color="#dddddd"/>
<padding
android:bottom="10dp"
android:left="10dp"
android:right="10dp"
android:top="10dp"/>
<corners android:radius="10dp"/>
</shape>
2.通过background引用定义好的shape