How to get the private drawable to use in activity in android?

ぃ、小莉子 提交于 2019-12-12 02:14:31

问题


I want to use private drawable from android. for that i have downloade androi-8.jar which contains all the .png imgaes i want to use in my activity. i want use "btn_circle_disable_focused " drawable to the buttton but it shows me error regarding private resource. i want to use it in imageview also.


回答1:


You should copy desired .png to your project's /drawable folder. you can access it from xml like @*android:drawable/btn_circle_disable_focused but it's not a good idea cause drawable being private means it may be unavailable on some devices.




回答2:


check this google icon design to download every icon you want.



来源:https://stackoverflow.com/questions/8077795/how-to-get-the-private-drawable-to-use-in-activity-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!