当前位置:网站首页>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 :

边栏推荐
- Flutter development: use safearea
- Meitu lost 300 million yuan in currency speculation for half a year. Huawei was exposed to expand its enrollment in Russia. Alphago's peers have made another breakthrough in chess. Today, more big new
- View Slide
- Understand the window query function of tdengine in one article
- Jupiter notebook shortcut key
- 宝塔面板MySQL无法启动
- 天龙八部TLBB系列 - 单体技能群伤
- 天龙八部TLBB系列 - 关于技能冷却和攻击范围数量的问题
- The comparison of every() and some() in JS uses a power storage plan
- Cerebral Cortex:有向脑连接识别帕金森病中广泛存在的功能网络异常
猜你喜欢

Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)

Charm of code language

Pagoda panel MySQL cannot be started

驱动制造业产业升级新思路的领域知识网络,什么来头?

剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...

90%的人都不懂的泛型,泛型的缺陷和应用场景

Unity particle special effects series - the poison spray preform is ready, and the unitypackage package can be used directly - next

Kotlin compose multiple item scrolling

Mysql80 service does not start

双容水箱液位模糊PID控制系统设计与仿真(Matlab/Simulink)
随机推荐
Understand the window query function of tdengine in one article
Meitu lost 300 million yuan in currency speculation for half a year. Huawei was exposed to expand its enrollment in Russia. Alphago's peers have made another breakthrough in chess. Today, more big new
一种用于干式脑电图的高密度256通道电极帽
Charm of code language
Design and exploration of Baidu comment Center
QT event filter simple case
Hard core, have you ever seen robots play "escape from the secret room"? (code attached)
Unity particle special effects series - the poison spray preform is ready, and the unitypackage package can be used directly - next
Are databases more popular as they get older?
CSDN always jumps to other positions when editing articles_ CSDN sends articles without moving the mouse
The king of pirated Dall · e? 50000 images per day, crowded hugging face server, and openai ordered to change its name
天龙八部TLBB系列 - 单体技能群伤
天龙八部TLBB系列 - 关于技能冷却和攻击范围数量的问题
Fluent development: setting method of left and right alignment of child controls in row
View Slide
H. 265 introduction to coding principles
面试:Bitmap像素内存分配在堆内存还是在native中
How Windows bat script automatically executes sqlcipher command
Cross process communication Aidl
Tdengine connector goes online Google Data Studio app store