设置一个ConstraintLayout组的Alpha值

设置一个ConstraintLayout组的Alpha值,第1张

概述我想问问是否可以更改约束组的Alpha?<android.support.constraint.Groupandroid:layout_width="wrap_content"android:layout_height="wrap_content"app:constraint_referenced_ids="statusTv,statusDropDownIv"android:id="@

我想问问是否可以更改约束组的Alpha?

<androID.support.constraint.Group    androID:layout_wIDth="wrap_content"    androID:layout_height="wrap_content"    app:constraint_referenced_IDs="statusTv, statusDropDownIv"    androID:ID="@+ID/buttonGroup"    androID:visibility="visible"    androID:Alpha="0" />

现在,如果我将可见性标签设置为“可见/消失”,则该标签会生效,但是Alpha标签似乎不起作用.

解决方法:

组仅用于控制app:constraint_referenced_IDs中引用ID的可见性.根据documentation.
该组的可见性将应用于引用的窗口小部件.这是一种轻松隐藏/显示一组小部件而无需以编程方式维护此小部件的便捷方法.

总结

以上是内存溢出为你收集整理的设置一个ConstraintLayout组的Alpha值全部内容,希望文章能够帮你解决设置一个ConstraintLayout组的Alpha值所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1081172.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存