Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持在每个标签前面加icon吗 #16

Open
mjsheng opened this issue Nov 27, 2018 · 2 comments
Open

支持在每个标签前面加icon吗 #16

mjsheng opened this issue Nov 27, 2018 · 2 comments

Comments

@mjsheng
Copy link

mjsheng commented Nov 27, 2018

No description provided.

@donkingliang
Copy link
Owner

每个标签的布局都是一个TextView,TextView是可以显示图片的。不过我没有提供自定义属性设置。你可以自己处理的。
setLabels(labels, new LabelTextProvider() {
@OverRide
public CharSequence getLabelText(TextView label, int position, String data) {
// 可以在这里给label加上icon。
return data;
}

@mjsheng
Copy link
Author

mjsheng commented Nov 28, 2018

嗯嗯 谢谢回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants