单个屏幕android中的多个可滚动视图

时间:2016-06-17 14:08:49

标签: android listview gridview scrollview

我必须在单个屏幕内设计具有多个视图的屏幕,即,在单个屏幕中有多个可滚动(Listview,gridview,Horizo​​ntal scrollview)布局。比如How to Design xml layout like this

1 个答案:

答案 0 :(得分:0)

Coordinatorlayout
   - Toolbar
   - NestedScrollView
      - LinearLayout (Vertical)
         - Linearlayout(Horizontal)
              - EditText (for Search)
              - Spinner or Button (for Filters)
         - RecyclerView (with LinearLayoutManager Horizontal with only 1 column)
         - Textview for (DELIVERY OPTIONS BY CUISINE)
         - RecyclerView (with LinearLayoutManager Horizontal with 4 columns)
         - Textview for (ALL DELIVERY OPTIONS)
         - RecyclerView (with LinearLayoutManager Vertical)

使用ImageView和TextView作为RecyclerView中的布局的P.s卡

这应该可以解决问题。