当前位置:网站首页>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 :
边栏推荐
- oracle和mysql批量Merge对比
- QT VT100 parser
- Common fault analysis and Countermeasures of using MySQL in go language
- Is it really reliable for AI to make complex decisions for enterprises? Participate in the live broadcast, Dr. Stanford to share his choice | qubit · viewpoint
- Apache dolphin scheduler system architecture design
- QT event filter simple case
- Theme. AppCompat. Light. Darkactionbar not found
- Unity particle special effects series - the poison spray preform is ready, and the unitypackage package is directly used - on
- Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process
- Using directive in angualr2 to realize that the picture size changes with the window size
猜你喜欢
Cerebral cortex: directed brain connection recognition widespread functional network abnormalities in Parkinson's disease
Hard core, have you ever seen robots play "escape from the secret room"? (code attached)
Wechat applet - simple diet recommendation (4)
Node red series (29): use slider and chart nodes to realize double broken line time series diagram
Kotlin Compose 与原生 嵌套使用
Cent7 Oracle database installation error
卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
isEmpty 和 isBlank 的用法区别
Officially launched! Tdengine plug-in enters the official website of grafana
The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
随机推荐
[tips] get the x-axis and y-axis values of cdfplot function in MATLAB
Applet image height adaptation and setting text line height
Baidu app's continuous integration practice based on pipeline as code
Optimize database queries using the cursor object of SQLite
The essence of persuasion is to remove obstacles
苹果 5G 芯片研发失败?想要摆脱高通为时过早
The Alipay in place function can't be found, and the Alipay in place function is offline
能源势动:电力行业的碳中和该如何实现?
钉钉、企微、飞书学会赚钱了吗?
isEmpty 和 isBlank 的用法区别
Cross process communication Aidl
盗版DALL·E成梗图之王?日产5万张图像,挤爆抱抱脸服务器,OpenAI勒令改名
90%的人都不懂的泛型,泛型的缺陷和应用场景
MySQL digital type learning notes
QT event filter simple case
天龙八部TLBB系列 - 关于包裹掉落的物品
双容水箱液位模糊PID控制系统设计与仿真(Matlab/Simulink)
Wechat applet - simple diet recommendation (4)
驱动制造业产业升级新思路的领域知识网络,什么来头?
Design and exploration of Baidu comment Center