如何重用Android SDK中的样式?我正在尝试使用....\android-sdk\platforms\android-11\data\res\layout\number_picker.xml的一部分
<EditText android:id="@+id/numberpicker_input"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="?android:attr/numberPickerInputTextStyle" /> <------- HERE ERROR并且我在xml编辑器error: Error: Attribute is not public. (at 'style' with value '?android:attr/numberPickerInputTextStyle').中得到一个错误。
如何解决这个问题?
发布于 2013-07-12 02:31:03
您正在尝试使用SDK中声明为私有的属性。您不能在项目中使用它们。解决此特定问题的一种方法(数字选择器样式),您可以考虑使用下列库:
https://stackoverflow.com/questions/17600373
复制相似问题