我注意到RelativeLayout对象的setBackground方法是针对API 16(Android 4.1)及更高版本的,但我的应用程序具有目标API 8,我无法使用它.
是否有针对此问题的替代解决方案(除了使用TargetApi(16)标记类/方法或更改清单中的目标API)? 谢谢!
编辑:Eclipse是错误的,它向我展示了setBackgroundDrawable的相同错误,但现在它似乎工作.谢谢您的帮助.
eclipse android relativelayout android-layout
android ×1
android-layout ×1
eclipse ×1
relativelayout ×1