【问题标题】:Set Image View Resource through XML array -- TypedArray通过 XML 数组设置 Image View Resource -- TypedArray
【发布时间】:2014-09-04 18:09:39
【问题描述】:

我正在使用 ADT 开发 android 项目。我有一个 XML 数组,通过它我在我的 Java 代码中创建了一个 typedArray。我正在尝试通过该类型化数组设置 ImageView 资源,但我无法做到。

请帮助我。

问候

【问题讨论】:

    标签: imageview adt android-imageview eclipse-adt typed-arrays


    【解决方案1】:

    发现..typedArray中有getDrawable函数。 并且那个drawable可以用来发送ImageView.setImageDrawable函数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多