我想用我的按钮使用Widget.Button.Transparent样式

时间:2012-07-06 08:13:04

标签: android android-button

  

错误:错误:资源不公开。 ('style'的值为'@ android:style / Widget.Button.Transparent')。,style =“@ android:style / Widget.Button.Transparent”

1 个答案:

答案 0 :(得分:1)

我有坏消息。 Android API已列入白名单。只有在$ ANDROID_SRC / frameworks / base / api / NN.txt中列出的对象对于在API级别NN上运行的客户端应用程序是可见的。

虽然styles.xml中找到的其他三个按钮样式都已公开,但Widget_Button_Transparent不是。你不能使用它。