本文整理汇总了C#中Android.Widget.TextView.SetHintTextColor方法的典型用法代码示例。如果您正苦于以下问题:C# TextView.SetHintTextColor方法的具体用法?C# TextView.SetHintTextColor怎么用?C# TextView.SetHintTextColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android.Widget.TextView
的用法示例。
在下文中一共展示了TextView.SetHintTextColor方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnElementChanged
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
nativeTextView = Control;
if (nativeTextView == null)
{
return;
}
if (this.Element != null)
formsEntry = this.Element as CustomEntry;
if (formsEntry != null && !string.IsNullOrEmpty (formsEntry.BackGroundImageName)) {
Android.Graphics.Drawables.Drawable drawable = Resources.GetDrawable (Resource.Drawable.comnt_box);
nativeTextView.Background = drawable;
}
else
{
nativeTextView.SetBackgroundColor(Android.Graphics.Color.White);
nativeTextView.SetHintTextColor(Android.Graphics.Color.Gray);
}
nativeTextView.SetTextColor(Android.Graphics.Color.Gray);
if (nativeTextView != null)
{
if (nativeTextView.Text != null)
{
// nativeTextView.SetTextColor(Android.Graphics.Color.Black);
}
}
if (App.screenDensity > 1.5)
{
nativeTextView.SetTextSize(Android.Util.ComplexUnitType.Pt, 8);
}
else
{
nativeTextView.SetTextSize(Android.Util.ComplexUnitType.Pt, 9);
}
}
示例2: SearchViewSuper
public void SearchViewSuper(SearchView searchView, TextView textView)
{
searchView.SetBackgroundColor (Android.Graphics.Color.DarkOrange);
searchView.SetOnQueryTextListener ((SearchView.IOnQueryTextListener) this);
textView.SetTextColor(Android.Graphics.Color.White);
textView.SetHintTextColor (Android.Graphics.Color.White);
searchView.SetQueryHint ("Search Recipes...");
LinearLayout search_container = FindViewById<LinearLayout> (Resource.Id.search_container);
search_container.Click += (sender, e) => {
if (searchView.Iconified != false){
searchView.Iconified = false;
}
};
}