accompanist
accompanist copied to clipboard
[Swipe to refresh] Not working properbly with AndroidView
The Composable:
@Composable
fun MainScreen() {
SwipeRefresh(
state = rememberSwipeRefreshState(isRefreshing = false),
onRefresh = { /*TODO*/ },
modifier = Modifier.fillMaxSize(),
) {
AndroidView(
factory = {
NestedScrollView(it).apply {
isFillViewport = true
addView(LinearLayout(it).apply {
orientation = LinearLayout.VERTICAL
repeat(100) { i ->
addView(TextView(it).apply {
text = "aksdfl " + i
})
}
}, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
}
}, modifier = Modifier
.fillMaxSize()
) {
}
}
}
When I drop to a half and a half, the circle will stop there and will not be automatically recovered.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.