如何更改所有列表视图的默认颜色分视图、如何更改、颜色、列表

由网友(奶冻)分享简介:我想申请的默认样式从style.xml所有列表视图I am trying to apply default styling for all the listViews from style.xml请注意在一些地方,我使用嵌套的列表视图。Please note at some places I am using n...

我想申请的默认样式从style.xml所有列表视图

I am trying to apply default styling for all the listViews from style.xml

请注意在一些地方,我使用嵌套的列表视图。

Please note at some places I am using nested listViews.

在 style.xml

    <style name="Theme.MyTheme" parent="Theme.Sherlock.Light.ForceOverflow">
           <item name="android:windowContentOverlay">@null</item>
           <item name="android:listViewStyle">@style/awesomeListViewStyle</item>
    </style>



<style name="awesomeListViewStyle" parent="@android:style/Widget.ListView">
        <item name="android:fadingEdge">none</item>
    <item name="android:background">@color/orange</item>
<item name="android:divider">#EEEEEE</item>
    </style>

这没有任何影响。在清单Theme.MyTheme作为我的默认主题。请指点:)

This has no effect. In the Manifest Theme.MyTheme as my default theme. Please advice :)

推荐答案

作为另一个回答提到作为Bhavin和马克指出,在你的风格,你也应该添加

As mentioned in another answer as Bhavin and Mark pointed out, in your style you should also add

<item name="android:dividerHeight">1px</item>
阅读全文

相关推荐

最新文章