【问题标题】:android:drawableEnd + setCompoundDrawablesWithIntrinsicBounds doesn't workandroid:drawableEnd + setCompoundDrawablesWithIntrinsicBounds 不起作用
【发布时间】:2015-05-14 14:31:29
【问题描述】:

我有以下 XML

<TextView
    android:id="@+id/trickslist_childview_trick"
    android:layout_width="wrap_content"
    android:layout_height="48dp"
    android:drawableEnd="@drawable/starone"
    android:drawablePadding="5dp"
    android:drawableRight="@drawable/starone"
    android:gravity="center_vertical"
    android:text="@string/level"
    android:textAppearance="?android:attr/textAppearanceSmall"
    android:textColor="@android:color/white" />

当我在其上调用setCompoundDrawablesWithIntrinsicBounds 时,未设置更改。删除 android:drawableEnd 属性即可。

这是一个错误吗?

【问题讨论】:

    标签: android android-drawable xml-drawable


    【解决方案1】:

    是的,这是 Android 冰淇淋三明治上的奇怪错误

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-14
      • 2023-04-06
      • 1970-01-01
      • 1970-01-01
      • 2016-03-13
      • 1970-01-01
      • 1970-01-01
      • 2016-09-12
      相关资源
      最近更新 更多