2017-10-08 72 views

回答

2
通過

查找的TextView其並使用SetTextColor方法來設置顏色。恩。如下所示。

var builder = new AlertDialog.Builder (this); 
var dialog = builder.Show(); 
int textColorId = Resources.GetIdentifier ("alertTitle", "id", "android"); 
TextView textColor = dialog.FindViewById<TextView> (textColorId); 
textColor?.SetTextColor (Color.DarkRed); 
相關問題