English:
program 程序
defined 定义
constructor 构造函数
platform 平台
deprecated 弃用
Deeper 深入
into 到..里
formatting 格式化
property 属性
using 使用
Xamrin 插件:
Thickness类:
在代码中设置填充位置,请使用Thickness类,它一共有3个构造函数,分别对应昨天说的三种方式。
Read EBook Xamrin Chapter 3:
一 . Deeper into Text
这讲述了Lable标签使用的color、fonts and formatting
Lable标签除了可以设置HorizontalOptions和VerticalOptions之外。
还可以设置HorizontalTextAlignment和VerticalTextAlignment。
HorizontalTextAlignment:文本在水平方向的位置:Center、Start、End
VerticalTextAlignment:文本在垂直方向的位置:Center、Start、End
在C#代码中所对应的类是:TextAlignment
二、LineBreakMode
NoWrap, //不换行,超出部分隐藏
WordWrap,//单词为单位换行
CharacterWrap,//字符换行,即会出现单词隔断现象
HeadTruncation,//头部截断,省略头部文本以...代替
TailTruncation,//尾部截断
MiddleTruncation//中间截断
三、BackgroundColors
值:支持RGB、HSL或者直接写颜色名称
BackgroundColor 背景颜色设置
TextColor 设置文本颜色
设置Android的主题颜色: