我想在我的按钮上使用Widget.Button.Transparent样式 [英] I want to use Widget.Button.Transparent style with my button
问题描述
错误:错误:资源不是公共的. (在'style'中,值为'@android:style/Widget.Button.Transparent').,style ="@ android:style/Widget.Button.Transparent"
error: Error: Resource is not public. (at 'style' with value '@android:style/Widget.Button.Transparent').,style="@android:style/Widget.Button.Transparent"
推荐答案
我有个坏消息. Android API已列入白名单.在API级别NN上运行的客户端应用程序只能看到$ ANDROID_SRC/frameworks/base/api/NN.txt中列出的对象.
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.
虽然styles.xml中的其他三个按钮样式都已公开,但Widget_Button_Transparent未公开.您不能使用它.
While the three other button styles found in styles.xml are all exposed, Widget_Button_Transparent is not. You can't use it.
这篇关于我想在我的按钮上使用Widget.Button.Transparent样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!