Android ListView 样式 - 资源定义中的循环
Android ListView style - cycles in resource definitions
此代码
<style name="listViewPrefs" parent="@android:Widget.ListView">
...
</style>
产生以下 Android Rescources Validation
错误:
Invalid parent reference: expected @style. There should be no cycles in
resource definitions as this can lead to runtime exceptions.
如何解决这个问题?
我认为你必须使用 like,
<style name="listViewPrefs" parent="@android:style/Widget.ListView">
...
</style>
此代码
<style name="listViewPrefs" parent="@android:Widget.ListView">
...
</style>
产生以下 Android Rescources Validation
错误:
Invalid parent reference: expected @style. There should be no cycles in resource definitions as this can lead to runtime exceptions.
如何解决这个问题?
我认为你必须使用 like,
<style name="listViewPrefs" parent="@android:style/Widget.ListView">
...
</style>