JavaScript is disabled on your browser.
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
C
G
I
L
O
S
V
C
clearAllSelect()
- Method in class com.donkingliang.labels.
LabelsView
取消所有选中的label
clearCompulsorys()
- Method in class com.donkingliang.labels.
LabelsView
清空必选项,只有在多项模式下,这个方法才有效
com.donkingliang.labels
- package com.donkingliang.labels
G
getCompulsorys()
- Method in class com.donkingliang.labels.
LabelsView
获取必选项,
getLabelGravity()
- Method in class com.donkingliang.labels.
LabelsView
getLabels()
- Method in class com.donkingliang.labels.
LabelsView
获取标签列表
getLabelText(TextView, int, T)
- Method in interface com.donkingliang.labels.
LabelsView.LabelTextProvider
根据data和position返回label需要需要显示的数据。
getLabelTextColor()
- Method in class com.donkingliang.labels.
LabelsView
getLabelTextSize()
- Method in class com.donkingliang.labels.
LabelsView
getLineMargin()
- Method in class com.donkingliang.labels.
LabelsView
getLines()
- Method in class com.donkingliang.labels.
LabelsView
需要在该View的layout完成之后调用,一般是使用view.post(Runable task)来获取 比如设置了新的labels之后需要获取新的lines就可以这样
getMaxLines()
- Method in class com.donkingliang.labels.
LabelsView
getMaxSelect()
- Method in class com.donkingliang.labels.
LabelsView
getMinSelect()
- Method in class com.donkingliang.labels.
LabelsView
getSelectLabelDatas()
- Method in class com.donkingliang.labels.
LabelsView
获取选中的label(返回的是所头选中的标签的数据)
getSelectLabels()
- Method in class com.donkingliang.labels.
LabelsView
获取选中的label(返回的是所有选中的标签的位置)
getSelectType()
- Method in class com.donkingliang.labels.
LabelsView
getTextPaddingBottom()
- Method in class com.donkingliang.labels.
LabelsView
getTextPaddingLeft()
- Method in class com.donkingliang.labels.
LabelsView
getTextPaddingRight()
- Method in class com.donkingliang.labels.
LabelsView
getTextPaddingTop()
- Method in class com.donkingliang.labels.
LabelsView
getWordMargin()
- Method in class com.donkingliang.labels.
LabelsView
I
isIndicator()
- Method in class com.donkingliang.labels.
LabelsView
isSingleLine()
- Method in class com.donkingliang.labels.
LabelsView
isTextBold()
- Method in class com.donkingliang.labels.
LabelsView
L
LabelsView
- Class in
com.donkingliang.labels
LabelsView(Context)
- Constructor for class com.donkingliang.labels.
LabelsView
LabelsView(Context, AttributeSet)
- Constructor for class com.donkingliang.labels.
LabelsView
LabelsView(Context, AttributeSet, int)
- Constructor for class com.donkingliang.labels.
LabelsView
LabelsView.LabelTextProvider
<
T
> - Interface in
com.donkingliang.labels
给标签提供最终需要显示的数据。因为LabelsView的列表可以设置任何类型的数据,而LabelsView里的每个item的是一 个TextView,只能显示CharSequence的数据,所以LabelTextProvider需要根据每个item的数据返回item最终要显示 的CharSequence。
LabelsView.OnLabelClickListener
- Interface in
com.donkingliang.labels
LabelsView.OnLabelLongClickListener
- Interface in
com.donkingliang.labels
LabelsView.OnLabelSelectChangeListener
- Interface in
com.donkingliang.labels
LabelsView.OnSelectChangeIntercept
- Interface in
com.donkingliang.labels
点击选中/取消选中时,拦截事件,返回true时,表示事件被拦截,不会改变标签的选中状态。 当希望某个标签在特定条件下不被选中/取消选中时,可以使用事件拦截。 只有用户点击改变标签选中状态时才会回调拦截,用其他方法改变时不会回调这个方法,不会被拦截。
LabelsView.SelectType
- Enum in
com.donkingliang.labels
Label的选择类型
O
onClick(View)
- Method in class com.donkingliang.labels.
LabelsView
onIntercept(TextView, Object, boolean, boolean, int)
- Method in interface com.donkingliang.labels.
LabelsView.OnSelectChangeIntercept
onLabelClick(TextView, Object, int)
- Method in interface com.donkingliang.labels.
LabelsView.OnLabelClickListener
onLabelLongClick(TextView, Object, int)
- Method in interface com.donkingliang.labels.
LabelsView.OnLabelLongClickListener
onLabelSelectChange(TextView, Object, boolean, int)
- Method in interface com.donkingliang.labels.
LabelsView.OnLabelSelectChangeListener
onLayout(boolean, int, int, int, int)
- Method in class com.donkingliang.labels.
LabelsView
onLongClick(View)
- Method in class com.donkingliang.labels.
LabelsView
onMeasure(int, int)
- Method in class com.donkingliang.labels.
LabelsView
onRestoreInstanceState(Parcelable)
- Method in class com.donkingliang.labels.
LabelsView
onSaveInstanceState()
- Method in class com.donkingliang.labels.
LabelsView
S
setCompulsorys(List<Integer>)
- Method in class com.donkingliang.labels.
LabelsView
设置必选项,只有在多项模式下,这个方法才有效
setCompulsorys(int...)
- Method in class com.donkingliang.labels.
LabelsView
设置必选项,只有在多项模式下,这个方法才有效
setIndicator(boolean)
- Method in class com.donkingliang.labels.
LabelsView
设置为指示器模式,只能看,不能手动操作。这种模式下,用户不能通过手动点击改变标签的选中状态。 但是仍然可以通过调用setSelects()、clearAllSelect()等方法改变标签的选中状态。
setLabelBackgroundColor(int)
- Method in class com.donkingliang.labels.
LabelsView
设置标签背景
setLabelBackgroundDrawable(Drawable)
- Method in class com.donkingliang.labels.
LabelsView
设置标签背景
setLabelBackgroundResource(int)
- Method in class com.donkingliang.labels.
LabelsView
设置标签背景
setLabelGravity(int)
- Method in class com.donkingliang.labels.
LabelsView
设置标签显示方向
setLabels(List<String>)
- Method in class com.donkingliang.labels.
LabelsView
设置标签列表
setLabels(List<T>, LabelsView.LabelTextProvider<T>)
- Method in class com.donkingliang.labels.
LabelsView
设置标签列表,标签列表的数据可以是任何类型的数据,它最终显示的内容由LabelTextProvider根据标签的数据提供。
setLabelTextColor(int)
- Method in class com.donkingliang.labels.
LabelsView
设置标签的文字颜色
setLabelTextColor(ColorStateList)
- Method in class com.donkingliang.labels.
LabelsView
设置标签的文字颜色
setLabelTextPadding(int, int, int, int)
- Method in class com.donkingliang.labels.
LabelsView
设置标签内边距
setLabelTextSize(float)
- Method in class com.donkingliang.labels.
LabelsView
设置标签的文字大小(单位是px)
setLineMargin(int)
- Method in class com.donkingliang.labels.
LabelsView
设置行间隔
setMaxLines(int)
- Method in class com.donkingliang.labels.
LabelsView
设置最大行数,小于等于0则不限行数。
setMaxSelect(int)
- Method in class com.donkingliang.labels.
LabelsView
设置最大的选择数量,只有selectType等于MULTI时有效。
setMinSelect(int)
- Method in class com.donkingliang.labels.
LabelsView
设置最少的选择数量,只有selectType等于MULTI时有效。 注意:minSelect只限制用户手动点击取消选中时的效果。 调用setSelects()、clearAllSelect()等方法改变标签的选中状态时,不受minSelect影响。
setOnLabelClickListener(LabelsView.OnLabelClickListener)
- Method in class com.donkingliang.labels.
LabelsView
设置标签的点击监听
setOnLabelLongClickListener(LabelsView.OnLabelLongClickListener)
- Method in class com.donkingliang.labels.
LabelsView
设置标签的点击监听
setOnLabelSelectChangeListener(LabelsView.OnLabelSelectChangeListener)
- Method in class com.donkingliang.labels.
LabelsView
设置标签的选择监听
setOnSelectChangeIntercept(LabelsView.OnSelectChangeIntercept)
- Method in class com.donkingliang.labels.
LabelsView
设置标签选中状态的点击改变拦截器
setSelects(List<Integer>)
- Method in class com.donkingliang.labels.
LabelsView
设置选中label
setSelects(int...)
- Method in class com.donkingliang.labels.
LabelsView
设置选中label
setSelectType(LabelsView.SelectType)
- Method in class com.donkingliang.labels.
LabelsView
设置标签的选择类型
setSingleLine(boolean)
- Method in class com.donkingliang.labels.
LabelsView
设置单行显示
setTextBold(boolean)
- Method in class com.donkingliang.labels.
LabelsView
设置标签字体是否为粗体
setWordMargin(int)
- Method in class com.donkingliang.labels.
LabelsView
设置标签的间隔
V
valueOf(String)
- Static method in enum com.donkingliang.labels.
LabelsView.SelectType
Returns the enum constant of this type with the specified name.
values()
- Static method in enum com.donkingliang.labels.
LabelsView.SelectType
Returns an array containing the constants of this enum type, in the order they are declared.
C
G
I
L
O
S
V
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes