I want to use Widget.Button.Transparent style with my button

怎甘沉沦 提交于 2019-12-10 21:36:12

问题


error: Error: Resource is not public. (at 'style' with value '@android:style/Widget.Button.Transparent').,style="@android:style/Widget.Button.Transparent"


回答1:


I have bad news. The Android API is white-listed. Only object that are listed in $ANDROID_SRC/frameworks/base/api/NN.txt are visible to client applications running on API level NN.

While the three other button styles found in styles.xml are all exposed, Widget_Button_Transparent is not. You can't use it.



来源:https://stackoverflow.com/questions/11358343/i-want-to-use-widget-button-transparent-style-with-my-button

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