diff --git a/docment/TextView.md b/docment/TextView.md new file mode 100644 index 0000000..aa47d7d --- /dev/null +++ b/docment/TextView.md @@ -0,0 +1,82 @@ +# 通用组件 TextView + +### 自定义 TSDrawableSizeTextView 可以设置 drawable 大小的 TextView +#### 使用方法 + +``` + +``` + +|方法名(包含xml与对外提供的方法)|参数/返回值|说明 +|:---:|:---:|:---:| +|tsCompoundDrawableWidth|dimension|图片宽| +|tsCompoundDrawableHeight|dimension|图片高| + + +### 带图标的 TSIconTextView +#### 使用方法 + +``` + +``` + +|方法名(包含xml与对外提供的方法)|参数/返回值|说明 +|:---:|:---:|:---:| +|tsIconDirection|TOD、BOTTOM、LEFT、RIGHT|图片位置| +|tsIconGap|dimension|图文间距| +|tsIcon|res|图片资源| +|tsIconHeight|dimen|图片高 +|tsIconWidth|dimen|图片宽 +|tsIconText|string|文字内容 +|tsIconTextColor|color|文字颜色 +|tsIconTextSize|dimension|文字大小 + +### 可以展开与收起的 TSExpandableTextView +#### 使用方法 +``` + +``` + +|方法名(包含xml与对外提供的方法)|参数/返回值|说明 +|:---:|:---:|:---:| +|tsMaxLinesOnShrink|int|最高行数| +|tsIsNeedShrink|Boolean|是否需要收起| +|tsToExpandHint|string|展开文字| +|tsToShrinkHint|string|收起文字| +|tsToExpandHintShow|Boolean|是否显示展开按钮| +|tsToShrinkHintShow|Boolean|是否显示收起按钮| +|tsToExpandHintColor|color|展开文字颜色| +|tsToShrinkHintColor|color|收起文字颜色| +|tsToExpandHintColorBgPressed|color|展开文字点击颜色| +|tsToShrinkHintColorBgPressed|color|收起文字点击颜色| + + +### 效果图 + +![效果](/image/TextView.gif) \ No newline at end of file diff --git a/image/TextView.gif b/image/TextView.gif new file mode 100644 index 0000000..5fa65d6 Binary files /dev/null and b/image/TextView.gif differ