博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
圆形背景的TextView
阅读量:7060 次
发布时间:2019-06-28

本文共 521 字,大约阅读时间需要 1 分钟。

【应用场景】:

【需要的xml】:shape_circle.xml

<?xml version="1.0" encoding="UTF-8"?>

<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
android:useLevel="false" >
<solid android:color="@color/white" />
<padding
android:left="2dp"
android:top="1dp"
android:right="2dp"
android:bottom="1dp" />
<solid
android:color="#ff0000" />
<stroke
android:width="1dp"
android:color="#ff0000" />
<size android:width="60dp"
android:height="60dp" />
</shape>

【使用】:

 

转载于:https://www.cnblogs.com/libuyi/p/5938667.html

你可能感兴趣的文章
ALSA声音编程介绍
查看>>
bootstrap fileinput 文件上传工具
查看>>
C# String 前面不足位数补零的方法
查看>>
route命令
查看>>
KETTLE、spoon使用
查看>>
如何生成密钥,私钥,签名
查看>>
etc下
查看>>
iOS - Swift NSData 数据
查看>>
基础知识→设计模式
查看>>
Chrome 启动参数列表
查看>>
Django中Form的Textarea字段
查看>>
CSS3与页面布局学习总结(八)——浏览器兼容与前端性能优化
查看>>
jQuery遮罩层登录对话框
查看>>
介绍对称加密的另一个算法——PBE
查看>>
Python学习--03变量类型
查看>>
ASP.NET中Session的sessionState 4种mode模式
查看>>
NodeJS stream 一:Buffer
查看>>
BZOJ 2754: [SCOI2012]喵星球上的点名 [后缀数组+暴力]
查看>>
【java设计模式】之 建造者(Builder)模式
查看>>
git branch detached from jb4.2.2_1.0.0-ga
查看>>