0

这个想法是在 jetpack compose 中创建一个类似于此伪代码的布局:

<SwipeRefreshLayout>
 <CoordinatorLayout>
  <NavigationDrawer>
  <AppBarLayout>
   <CollapsingToolbarLayout>
    <ConstraintLayout/> (contains some text view)
   </CollapsingToolbarLayout>
  <AppBarLayout>
  <NestedScrollView>
   <LinearLayout>
    <ConstraintLayout> (contains some text views and buttons)
    <HorizontalRecyclerView/>
    <TabLayout/> (which works like sticky header)
    <ViewPager/>
   </LinearLayout>
  </NestedScrollView>
 </CoordinatorLayout>
</SwipeRefreshLayout>

我面临的问题是 LazyColumn 不能进入其他滚动组件。因此,如果您能指导我了解一些很棒的概念/链接/示例。

4

1 回答 1

0

我认为你可以使用

FlowColumn {
//
}

指南 https://google.github.io/accompanist/flowlayout/

于 2021-12-30T10:06:07.427 回答