一步搞定任意圆角背景
发布于: 2020 年 09 月 08 日
还在用xml编写各种圆角背景吗?
这里介绍一个新姿势。
支持任意定义4个角的角度,还有描边功能。
使用方法
- 引入第三方库 
implementation 'me.codego.view:round-layout:1.0.2'- 插入控件 
<me.codego.view.RoundLayout        android:id="@+id/first_layout"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:background="#E6E6E6"        app:round_stroke_color="#f00"        app:round_stroke_width="2dp"        app:round_radius="10dp"        app:round_topLeftRadius="10dp"        app:round_topRightRadius="10dp"        app:round_bottomLeftRadius="10dp"        app:round_bottomRightRadius="10dp"></me.codego.view.RoundLayout>效果
任意定义4个角的角度

划线
评论
复制
发布于: 2020 年 09 月 08 日阅读数: 42
mengxn
关注
还未添加个人签名 2018.07.25 加入
还未添加个人简介











 
    
评论