当前位置:网站首页>Constraintlayout officially provides rounded imagefilterview
Constraintlayout officially provides rounded imagefilterview
2022-07-05 10:11:00 【A bird carved in the desert】
Round corners ImageFilterView,ImageFilterButton
In my impression, this should be the first official round corner function view Is that right , In addition to the fillet function ,ImageFilterView,ImageFilterButton There are a bunch of other functions .
- Round corners
app:round, Value 0-50dp, Default 0, It's a square , Set up 50 It's a circular picture , exceed 50 Nothing else , Or a circular picture . - Fillet scale
app:roundPercent, Value 0-1 Between , Default 0 It's a square ,1 It's a circular picture , ditto , exceed 1 according to 1 Handle , Or a circular picture . - Cross plot
app:altSrc, Need to followapp:crossfadeThe common use ,app:crossfadeValue 0-1, Default 0 It is completely transparent for the cross graph , Don't show . Value 1 The cross plot completely shows , coversrcOn .app:overlay, Official interpretation : Definition alt The image is faded in at the top of the original image , Or cross fade in . The default value is true. Set to... For translucent objects false. I haven't tried the effect . - Color temperature
app:warmt,float type , The default value is 1, Less than 1 It's a cool color , Greater than 1 It's a warm color . - brightness
app:brightness,float type , Default 1, The higher the value, the higher the brightness . - saturation
app:brightness,float type , Default 1, Value 0 In grayscale style , Greater than 1 The values of are all supersaturated , The color is very gorgeous , It's a little hot eyes . - Contrast
app:contrast,float type , Default 1, Value 0 It is equivalent to the picture turning black , Greater than 1 All in high contrast .
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.constraintlayout.utils.widget.ImageFilterView
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_gravity="center_horizontal"
android:src="@drawable/ic_launcher_background"
app:roundPercent="1" />
</LinearLayout>Use effect :

边栏推荐
- H. 265 introduction to coding principles
- Charm of code language
- 善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品
- 天龙八部TLBB系列 - 关于包裹掉落的物品
- Evolution of Baidu intelligent applet patrol scheduling scheme
- 面试:Bitmap像素内存分配在堆内存还是在native中
- @JsonAdapter注解使用
- 让AI替企业做复杂决策真的靠谱吗?参与直播,斯坦福博士来分享他的选择|量子位·视点...
- 一种用于干式脑电图的高密度256通道电极帽
- 【小技巧】获取matlab中cdfplot函数的x轴,y轴的数值
猜你喜欢

Implementation of smart home project

钉钉、企微、飞书学会赚钱了吗?

Wechat applet - simple diet recommendation (2)

Charm of code language

Pagoda panel MySQL cannot be started

Kotlin compose and native nesting

卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
![[system design] index monitoring and alarm system](/img/83/81534fa31b525c4c7b3175d8312808.png)
[system design] index monitoring and alarm system

单片机原理与接口技术(ESP8266/ESP32)机器人类草稿

Tdengine can read and write through dataX, a data synchronization tool
随机推荐
Small program startup performance optimization practice
Cerebral Cortex:有向脑连接识别帕金森病中广泛存在的功能网络异常
天龙八部TLBB系列 - 单体技能群伤
Tdengine connector goes online Google Data Studio app store
Advanced opencv:bgr pixel intensity map
From "chemist" to developer, from Oracle to tdengine, two important choices in my life
天龙八部TLBB系列 - 关于技能冷却和攻击范围数量的问题
TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries
天龙八部TLBB系列 - 关于包裹掉落的物品
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
《微信小程序-基础篇》小程序中的事件与冒泡
ConstraintLayout官方提供圆角ImageFilterView
如何獲取GC(垃圾回收器)的STW(暫停)時間?
Common fault analysis and Countermeasures of using MySQL in go language
Comment obtenir le temps STW du GC (collecteur d'ordures)?
让AI替企业做复杂决策真的靠谱吗?参与直播,斯坦福博士来分享他的选择|量子位·视点...
The king of pirated Dall · e? 50000 images per day, crowded hugging face server, and openai ordered to change its name
一个程序员的职业生涯到底该怎么规划?
. Net delay queue
善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品