0
此问题与使用Xamarin
在C#
中编写的Android小部件有关。Android RemoteView textStyle bold
我想为我的小部件布局的元素设置文本框的text style
至bold
。更改文本本身效果很好,但我无法设置其他属性。
这是建立在更新
remoteViews.SetTextViewText(Resource.Id.widget_info, nextItemText[1]);
if (element.InProgress)
{
// this is my try to set textstyle to bold
remoteViews.SetString(Resource.Id.widget_info, "textStyle", "bold");
}
我如何可以设置text style
到bold
方法的一部分?
在此先感谢!