android 圆角边框 textview
来源:互联网 发布:淘宝卖家手机登录 编辑:程序博客网 时间:2024/06/07 15:46
在drawable 下创建blue_corner.xml
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"> <!-- 设置透明背景色 --> <solid android:color="@color/transparent" /> <!-- 设置一个黑色边框 --> <stroke android:width="2px" android:color="@color/mine_page_color" /> <!-- 设置四个圆角的半径 --> <corners android:radius="40dp"/> <!-- 设置一下边距,让空间大一点 --> <padding android:bottom="7dp" android:left="9dp" android:right="9dp" android:top="7dp" /></shape>在textview引用
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@color/mine_page_color" android:background="@drawable/blue_corner" android:textSize="13dp" android:text="查看企业" />
阅读全文
0 0
- android 圆角边框 textview
- Android给TextView设置透明背景、圆角边框
- android 圆角边框、渐变背景的TextView
- Android给TextView设置透明背景、圆角边框
- android 圆角边框、渐变背景的TextView
- android TextView加边框
- Android textview边框绘制
- textview加矩形边框和圆角边框
- textview加矩形边框和圆角边框
- 圆角边框,渐变背影的TextView
- 圆角边框,渐变背景的Textview
- Android--为TextView添加边框
- Android--为TextView添加边框
- android 为TextView添加边框
- android 为TextView添加边框
- Android 为TextView 添加边框
- android 为TextView添加边框
- Android--为TextView添加边框
- CF 862C Mahmoud and Ehab and the xor 构造
- leetcode 188. Best Time to Buy and Sell Stock IV 最大子段和
- 数据库 inner join,right join,left join ,以及其后的and ,where 条件
- JAVA高级试题
- PYTHONPATH environment variable
- android 圆角边框 textview
- 静态方法
- unity 优化方案
- 么是github
- GridView无条目部分设置点击事件
- PullToRefresh+TabLayout+DrawerLayout+无限轮播集成使用
- DrawerLayout的布局及实现2
- 剑指offer2
- 环信集成流程说明