<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 内部颜色 -->
<solid android:color="#00A5C6"/>
<!-- 边缘线条颜色 -->
<stroke android:width="1.0px" android:color="#00A5C6"/>
<!-- 圆角的幅度 -->
<corners
android:topLeftRadius="10dip"
android:topRightRadius="10dip"
android:bottomLeftRadius="0dip"
android:bottomRightRadius="0dip"/>

</shape>


使用时直接设置background就额可以了:

<LinearLayout
android:layout_width="fill_parent"
android:layout_height="50dip"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:layout_marginTop="20dip"
android:focusable="true"
android:clickable="true"
android:background="@xml/test_selector" >
</LinearLayout>

更多相关文章

  1. Android Studio Gradle多渠道打包(动态设定App名称,应用图标,背景
  2. 设置listview中的item的颜色
  3. Android开发 - 丰富常用的颜色文件colors.xml
  4. android 颜色 获取
  5. Android:改变 Toolbar 的文字和溢出图标颜色
  6. android > 设置button 背景颜色
  7. android颜色设使用方法

随机推荐

  1. Android中利用Handler在子线程中更新界面
  2. Android(安卓)ZXing 二维码、条形码扫描
  3. Android(安卓)打造炫目的圆形菜单 秒秒钟
  4. Android窗口管理服务WindowManagerServic
  5. 为Android、iOS设备搭建模拟丢包、慢速网
  6. [Xamarin.Android] 如何透過電子郵件部署
  7. 初始化一个构建环境
  8. 本人初学android,希望大神帮忙指点学习路
  9. 15个必知的Android开发者选项
  10. 【Android】Java回调原理并结合Android源