当前位置:网站首页>Shape color gradient, fillet, half fillet, border, fill
Shape color gradient, fillet, half fillet, border, fill
2022-06-10 13:04:00 【yechaoa】
design sketch :
1、shape:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Round corners -->
<corners
android:radius="5dp"
android:topLeftRadius="30dp"
android:bottomRightRadius="30dp"/>
<!-- Fill color -->
<solid android:color="#000"/>
<!-- Frame -->
<stroke
android:color="#808080"
android:width="2dp"/>
<!-- The gradient -->
<gradient
android:startColor="#f52"
android:centerColor="#f92"
android:endColor="#fe2"
android:angle="180"/>
</shape>The gradient color highlights the fill color , So it can be removed solid Of
2、 About gradient Of angle Parameters :
0 It's from left to right
90 It's from the bottom up
180 Right to left
270 It's from top to bottom
360==0
3、 One more type Parameters :
linear Linear gradient ( Default )
radial Circular gradient
sweep Fan gradient
Gradients usually give a start color and an end color , Then specify the direction
4、 Half round on both sides :
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="999dp"/>
<stroke
android:width="1dp"
android:color="@color/colorPrimary"/>
<padding
android:bottom="10dp"
android:left="20dp"
android:right="20dp"
android:top="10dp"/>
</shape>边栏推荐
- Altium Designer重拾之学习资料推荐
- 编写程序,计算2/1+3/2+5/3+8/5.....的值。要求计算前n项之和,保留2位小数(该序列从第二项起,每一项的分子是前一项分子与分母的和,分母是前一项的分子)
- Start with interpreting the code automatically generated by BDC, and explain the trial version of the program components of sapgui
- Stereo vision based semantic 3D object and ego motion tracking for automotive driving
- DynaSLAM II: Tightly-Coupled Multi-Object Tracking and SLAM 论文阅读
- 启牛能开户吗,在启牛开户安全么
- 【Golang】创建有配置参数的结构体时,可选参数应该怎么传?
- 【FLinlk】Flink小坑之kerberos动态认证
- The ability to register user names and passwords with the database
- 【深度学习】基于深度学习Autoencoder的信用卡欺诈异常检测,效果非常牛逼
猜你喜欢

20-year technical veteran gives up his CTO title! Why did the startup attract him?
![VDO-SLAM源码阅读笔记[1] Track()中动态obj部分](/img/18/7260d5b8dba4dcdb64d7f299198ad0.png)
VDO-SLAM源码阅读笔记[1] Track()中动态obj部分

Software project management 6.10 Cost budget

用C语言创建基本的栈与队列

JS translates Arabic numerals into Chinese capital figures, JS converts figures into capital amounts (sorting)

H5 pop up prompt layer - top, bottom, left and right center

深度神经网络每秒分类近20亿张图像,新型类脑光学分类器芯片登上Nature

Altium Designer重拾之学习资料推荐

client-go gin的简单整合六-list-watch二(关于Rs与Pod以及Deployment的完善)

TIDB 初级课程体验 8 (集群的管理维护, 添加一个TIKV节点)
随机推荐
Ant financial services Yang Jun: evolution of ant data analysis platform and application of data analysis methods
Case sharing and implementation introduction of SAP field service management and wechat integration
'getWidth()' is deprecated,'getHeight()' is deprecated
Example of full page sliding screen at mobile terminal (sliding the whole screen up and down) (sorting)
Leetcode 96. 不同的二叉搜索樹
由文件图形丢失,说明自己都不用自己开发的OFFICE
Today, a couple won the largest e-commerce IPO in Hong Kong
KITTI 相关信息汇总
Oceanbase, phase II of the document promotion plan, invites you to jointly build documents
Comparison of two BigDecimal data types, addition, subtraction, multiplication and division, and formatting
Give root password for maintenace (or press Control-D to continue):解决方法
In June, 2022, China Database ranking: tidb made a comeback to win the crown, and Dameng was dormant and won the flowers in May
Error:top-left corner pixel must be either opaque white or transparent.
Good article sharing | 48 hour agile development introduction
Can qiniu open an account? Can qiniu directly open the security of securities companies on the app
[flinlk] dynamic Kerberos authentication in Flink pit
Leetcode 96. Different binary search trees
Wei Lai: "pinches" the data and "pinches" the future
[raise bar C #] how to call the base of the interface
list. Remove (index) returns false, removal failed