Getting error message “Resource is not public”

后端 未结 3 1735
梦谈多话
梦谈多话 2020-12-18 18:46

So I\'m trying to use the built-in drawable timepicker_up_btn for api level 7. It is in the actual res folder in the sdk, and I can use other resources from that folder. B

3条回答
  •  伪装坚强ぢ
    2020-12-18 19:21

    Is there any way to use not public android resources in my application?

    You can reference them like this

    android:drawable="@*android:drawable/pressed_application_background_static"

    but it is not recommended, because private resources are likely to be renamed or removed in the future.

提交回复
热议问题