We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
麻烦有时间看一下。在回调里面通过DslTabLayout 获取索引获取的是不对的,但是回调的值 index是对的。 代码如下,获取索引不对:
index
` desLayout.configTabLayoutConfig { onSelectItemView = { _, index, select, _ -> Log.d("desLayout", "titles2DslTabLayoutChildren: " + select + "," + index) if (select) { //这里获取索引不对。 val currentItemIndex =dslLayout .currentItemIndex } false } }
`
The text was updated successfully, but these errors were encountered:
当需要选中ItemView时, 才会触发此回调.
ItemView
你可能需要onSelectViewChange回调.
onSelectViewChange
Sorry, something went wrong.
No branches or pull requests
麻烦有时间看一下。在回调里面通过DslTabLayout 获取索引获取的是不对的,但是回调的值
index
是对的。代码如下,获取索引不对:
`
desLayout.configTabLayoutConfig {
onSelectItemView = { _, index, select, _ ->
Log.d("desLayout", "titles2DslTabLayoutChildren: " + select + "," + index)
if (select) {
//这里获取索引不对。
val currentItemIndex =dslLayout .currentItemIndex
}
false
}
}
`
The text was updated successfully, but these errors were encountered: