我必须在单个屏幕内设计具有多个视图的屏幕,即,在单个屏幕中有多个可滚动(Listview,gridview,Horizontal scrollview)布局。比如How to Design xml layout like this
答案 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卡
这应该可以解决问题。