- 博客(2)
- 收藏
- 关注
原创 Xamarin.Android 为TextView中个别文字设置特定的颜色、字体等
**思路:**运行包含Html代码的字符串<font color="#ff5661"><b>[替换内容]</b></font>代码:var lunaIdRegisterInLunaAppContent = FindViewById(Resource.Id.lunaid_register_inlunaapp_content) as TextView;//要处理的内容一般都是放在strin
2021-01-22 17:25:02 518
转载 C# 获取枚举中的【Description】属性值
这是一个我个人的记录笔记,实际代码也是我从网上找的。public string GetEnumDescription(Enum enumValue){ string value = enumValue.ToString(); FieldInfo field = enumValue.GetType().GetField(value); object[] objs = field.GetCustomAttributes(typeof(DescriptionAttribute), false);
2021-01-05 10:50:50 4888
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人