用shape画返回小尖角
来源:互联网 发布:java ant下载 编辑:程序博客网 时间:2024/06/14 03:09
用shape画button背景,大家用的比较多了。
下面看看怎么用shape画小尖角
效果图
代码:
<?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:bottom="11.5dp"> <rotate android:fromDegrees="315" android:pivotX="45%" android:pivotY="45%" android:toDegrees="0"> <shape> <solid android:color="#ffffff" /> <size android:width="20dp" android:height="2dp" /> <stroke android:width="1dp" android:color="#ffffffff" /> </shape> </rotate> </item> <item android:top="11.5dp"> <rotate android:fromDegrees="45" android:pivotX="45%" android:pivotY="45%" android:toDegrees="0"> <shape> <solid android:color="#ffffff" /> <size android:width="20dp" android:height="2dp" /> <stroke android:width="1dp" android:color="#ffffffff" /> </shape> </rotate> </item></layer-list>
群里的大牛给出的,我也是存在这里。
具体这个比和图片相比加载能快多少的话,大家见仁见智,可以自己测一下。
同样向右的箭头也可以直接完成
0 0
- 用shape画返回小尖角
- 用shape画虚线
- android用shape画虚线
- 用shape画一个元
- Word Shape ConvertToShape 异常,返回E_FAIL,解决办法
- 用shape画一个圆角矩形
- 用shape画一个圆角边框
- Shape 画圆形
- Android 画三角形shape
- shape 画虚线
- Android shape 画 虚线
- shape画虚线
- 使用shape画虚线
- 利用shape画虚线
- 用Shape 作背景
- shape
- Shape
- shape
- QT+OpenGL开发实例:扫描线填充算法
- 这是我真实的,零基础自学编程,找到满意工作的经历。
- Android布局的优化
- python中使用fork创建新的进程
- Android仿微信底部实现Tab选项卡切换效果
- 用shape画返回小尖角
- PHP extract() 函数的用法
- WisdomPluginFramework框架实际应用中的点点滴滴
- c# 获取文件路径的几种方法
- 日常脚本二——重复数据删除
- 不用'*','/','mod'进行除法运算
- warning:Instance variable used while 'self' is not set to the result of '[(super or self) init…]'
- 全面理解面向对象的 JavaScript
- 文章标题