Android(安卓)shape
16lz
2021-12-04
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" > <!-- 边角的圆弧半径 --> <corners android:radius="9dp" /> <!-- 实心填充 --> <solid android:color="#00000000" /> <!-- 描边:一般大小都是1dp --> <stroke android:width="1dp" android:color="#ff000000" /> <!-- 四周留出来的空白,和xml文件中的pad效果一样,对内起作用 --> <padding android:bottom="30dp" android:left="20dp" android:right="30dp" android:top="20dp" /> <!-- 背景颜色渐变 --> <gradient android:angle="90" android:endColor="#ff00ff00" android:startColor="#ff0000ff" /></shape>
更多相关文章
- android drawble
- Android中自己定义一个shade.xml
- android中shape的属性
- Shape
- android界面设计之shape的使用
- android:shape的使用
- Android中shape中的属性大全
- android shape图形整理
- android中自定义shape