0
我想使我的ListView
中的行以替代顏色 - Xamarin.Android
C#項目。Xamarin.Android替代顏色列表
這裏是我的代碼
ListView DialogoList = (ListView)FindViewById(Resource.Id.DialogoList);
Data data = new Data();
string[] dialogolist = data.Dialogo(Data.level, Data.Lesson);
DialogoList.Adapter = new ArrayAdapter(this, Android.Resource.Layout.SimpleListItem1, dialogolist);
創建自定義適配器,覆蓋GetView並根據位置更改顏色 –
是的,它的工作原理,謝謝.. @ YorkShen-MSFT –