是否可以在不为其定义自定义适配器的情况下更改 ListView 中的 textColor?与在 TextView 中一样,我们可以应用 style = "@style/mystyle",我们可以在其中定义 textcolor。
    <ListView
    android:id="@+id/listview" 
    style="@style/WhiteText"
    />
在值中,样式定义为:
    <resources>
    <style name= "WhiteText">
    <item name ="android:textColor">#FFFFFF </item>
    <item name="android:background">#000000 </item>
    </resources>
我试过了,但它没有给我想要的输出。所以我想问一下,这是一种有效的方式吗?