您的位置:首页 > 移动开发 > Android开发

android 圆角边框及图片

2016-09-18 17:37 204 查看
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#99E0E0E0" />
<corners android:radius="8px" />
<padding
android:bottom="0dp"
android:left="0dp"
android:right="0dp"
android:top="0dp" />
</shape>


使用:

       <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:layout_marginTop="5dp"
android:background="@drawable/rounder_corner"
android:gravity="center"
android:orientation="horizontal"
android:paddingBottom="6dp"
android:paddingTop="6dp">
          ......
</LinearLayout>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: