【android学习】 xm之shape

来源:互联网 发布:机械手的控制系统编程 编辑:程序博客网 时间:2024/05/23 01:20
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"    android:shape="rectangle" >    <!-- 填充 -->    <solid android:color="@color/white" /><!-- 填充的颜色 --><!-- 大小 -->    <size         android:width="1000dp"        android:height="50dp" /><!-- 宽度和高度 -->        <!-- 间隔 -->    <padding        android:bottom="2dp"        android:left="5dp"        android:right="5dp"        android:top="2dp" /><!-- 各方向的间隔 -->        <!-- 圆角 -->    <corners        android:radius="90dp"        android:topLeftRadius="20dp"        android:topRightRadius="20dp"        android:bottomLeftRadius="20dp"        android:bottomRightRadius="20dp"/><!-- 设置圆角半径 -->        <!-- 描边 -->    <stroke        android:width="2dp"        android:color="@color/blue"        android:dashWidth="0dp"        android:dashGap="0dp"/><!-- dashWidth横线的宽度;dashGap表示之间隔开的距离 --></shape>

0 0