当前位置:网站首页>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:crossfade
The common use ,app:crossfade
Value 0-1, Default 0 It is completely transparent for the cross graph , Don't show . Value 1 The cross plot completely shows , coversrc
On .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 :
边栏推荐
- LiveData 面试题库、解答---LiveData 面试 7 连问~
- 如何写出高质量的代码?
- Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
- Wechat applet - simple diet recommendation (3)
- 程序员搞开源,读什么书最合适?
- Dedecms website building tutorial
- 善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品
- Comparison of batch merge between Oracle and MySQL
- Tdengine can read and write through dataX, a data synchronization tool
- RMS to EAP is simply implemented through mqtt
猜你喜欢
Node red series (29): use slider and chart nodes to realize double broken line time series diagram
MySQL character type learning notes
> Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复
Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
To bring Euler's innovation to the world, SUSE should be the guide
The comparison of every() and some() in JS uses a power storage plan
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
一个程序员的职业生涯到底该怎么规划?
[200 opencv routines] 219 Add digital watermark (blind watermark)
随机推荐
[app packaging error] to proceed, either fix the issues identified by lint, or modify your build script as follow
Officially launched! Tdengine plug-in enters the official website of grafana
How to correctly evaluate video image quality
Cerebral cortex: directed brain connection recognition widespread functional network abnormalities in Parkinson's disease
Kotlin compose and native nesting
Applet image height adaptation and setting text line height
QT event filter simple case
A high density 256 channel electrode cap for dry EEG
Understand the window query function of tdengine in one article
如何判断线程池已经执行完所有任务了?
Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)
MySQL字符类型学习笔记
Swift tableview style (I) system basic
Those who are good at using soldiers, hide in the invisible, and explain the best promotional value works in depth in 90 minutes
Swift saves an array of class objects with userdefaults and nssecurecoding
Flutter development: use safearea
Charm of code language
RMS to EAP is simply implemented through mqtt
Android SQLite database encryption
如何获取GC(垃圾回收器)的STW(暂停)时间?