[英]Set selected ListView TextColor in Xamarin.Forms Android
我想在Xamarin Forms Android中將ListViewItem
的選定文本顏色設置為白色。
在iOS上,我可以使用自定義ListViewRenderer和自定義UITableViewSource來設置HighlightedTextColor。
cell.TextLabel.HighlightedTextColor = UIColor.FromRGB(255, 255, 255);
在Android中是否有相同的功能? 我已經使用Resource.Attribute
ColorControlActivated
嘗試了它,但它無法正常工作。
//Android Color Class is in the root of the Resource Class
ListViewItem.TextColor = Android.Resource.Color.White;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.