accompanist icon indicating copy to clipboard operation
accompanist copied to clipboard

[Swipe to refresh] Not working properbly with AndroidView

Open XuQK opened this issue 2 years ago • 1 comments

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.

XuQK avatar Aug 12 '22 09:08 XuQK

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.

github-actions[bot] avatar Sep 12 '22 04:09 github-actions[bot]

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.

github-actions[bot] avatar Oct 13 '22 04:10 github-actions[bot]