【问题标题】:How to transform ViewCompat.setBackgroundTintList to "xml"?如何将 ViewCompat.setBackgroundTintList 转换为“xml”?
【发布时间】:2020-11-14 18:36:06
【问题描述】:

如何通过xml而不是代码设置ViewCompat

ViewCompat.setBackgroundTintList(
view,    ColorStateList.valueOf(...));

【问题讨论】:

    标签: android xml android-layout androidx


    【解决方案1】:

    在 xml 中使用: app:setBackgroundTintList

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-20
      • 2015-01-13
      • 2018-03-28
      • 2016-06-04
      • 2023-04-10
      • 2014-04-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多