开发者

Cannot access android.R.drawable.timepicker_input

开发者 https://www.devze.com 2022-12-25 03:37 出处:网络
Hello there i\'m trying to write a layout similar to the timepicker widget layout. So i decided to use the android framework layouts but i can\'t use them It seems that if i write andr开发者_如何转开

Hello there i'm trying to write a layout similar to the timepicker widget layout.

So i decided to use the android framework layouts but i can't use them It seems that if i write andr开发者_如何转开发oid.R.drawable.timepicker_input or other timepicker related drawables i get them this Eclipse error:

android.R.drawable.timepicker_up_btn cannot be resolved

So i tried to import all the pngs and xml from the android source but eclipse says there is an error in the manifest regarding the icon.

Ideas?


This resource is not available for development.

Solution: get the file from the source code (http://source.android.com/) copy it inside your project and use it


Not all of the internal android resources are available to use. If android.R.drawable.timepicker_up_btn gives you that error then it is probably one of the resources that is internal.

0

精彩评论

暂无评论...
验证码 换一张
取 消