当前位置:网站首页>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>边栏推荐
- Office technical lecture: punctuation - English - Encyclopedia
- Tidb elementary course experience 8 (cluster management and maintenance, adding a tikv node)
- Slide the navigation fixed head upwards
- Binary XML file line 96: error inflating class & lt; unknown&gt;
- IQR箱线图
- 2022年浙江省赛
- 好文分享|48小时敏捷开发攻略
- GNN is used as the new backbone of the three major tasks of CV, with the same cost performance as CNN, Vit and MLP | Chinese Academy of Sciences & Huawei Noah open source
- 六石编程学:以文字处理的位置,谈谈命名
- What if the xshell evaluation period has expired? Follow the steps below to solve the problem!
猜你喜欢

The deep neural network classifies nearly 2billion images per second, and the new brain like optical classifier chip is on nature

Stereo Vision-based Semantic 3D Object and Ego-motion Tracking for Autonomous Driving 论文阅读

Ant financial services Yang Jun: evolution of ant data analysis platform and application of data analysis methods

Dynaslam ii: carefully coupled multi object tracking and slam

Creating basic stacks and queues in C language

从解读 BDC 自动生成的代码谈起,讲解 SAPGUI 的程序组成部分试读版

C # balanced weight distribution

【深度学习】基于深度学习Autoencoder的信用卡欺诈异常检测,效果非常牛逼

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

使用SoapUI工具生成发送短信接口代码
随机推荐
IQR box diagram
MySQL 服务演进
OFFICE技术讲座:标点符号-英文-大全
JTAG to Axi master debugging Axi Bram controller
Sparkstreaming real-time data warehouse question & answer
Baidu programmers were sentenced to nine months for deleting the database. The one click unbinding function of the mobile phone number was released. Twitter compromised with musk again. Today, more bi
MySQL service evolution
JS prohibit copying page content
Tensorflow2.0 advanced learning - image (11)
Use soapUI tool to generate SMS interface code
微信web开发工具使用教程,公司开发web
Stereo Vision-based Semantic 3D Object and Ego-motion Tracking for Autonomous Driving 论文阅读
VDO-SLAM源码阅读笔记[2] local optimization和global optimization
【Golang】创建有配置参数的结构体时,可选参数应该怎么传?
KITTI 相关信息汇总
技术分享| 快对讲,全球对讲
Wechat web development tool tutorial, the company develops Web
VDO-SLAM: A Visual Dynamic Object-aware SLAM System 论文阅读
Tidb Primary course experience 8 (Management Maintenance of Clusters, add a tikv Node)
Mysql database (26): View