Android agrid视图的背景色?
我在应用程序中使用网格视图。我想为每一行设置备用颜色。。考虑网格视图有10行意味着奇数行应该包含红色,甚至行应该包含绿色。 可能吗?如果是这样,请告诉我!! 提前感谢。简单一点:Android agrid视图的背景色?,android,Android,我在应用程序中使用网格视图。我想为每一行设置备用颜色。。考虑网格视图有10行意味着奇数行应该包含红色,甚至行应该包含绿色。 可能吗?如果是这样,请告诉我!! 提前感谢。简单一点: <asp:gridview id="CustomersGridView" datasourceid="CustomersSource" autogeneratecolumns="true" emptydatatext="No data available." runat
<asp:gridview id="CustomersGridView"
datasourceid="CustomersSource"
autogeneratecolumns="true"
emptydatatext="No data available."
runat="server">
<rowstyle backcolor="Red"
forecolor="Black" />
<alternatingrowstyle backcolor="Green"
forecolor="Black" />
</asp:gridview>
<!-- This example uses Microsoft SQL Server and connects -->
<!-- to the Northwind sample database. Use an ASP.NET -->
<!-- expression to retrieve the connection string value -->
<!-- from the Web.config file. -->
<asp:sqldatasource id="CustomersSource"
selectcommand="Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers]"
connectionstring="<%$ ConnectionStrings:NorthWindConnectionString%>"
runat="server"/>