coordinator-layout

Design lib - CoordinatorLayout/CollapsingToolbarLayout with GridView/listView

帅比萌擦擦* 提交于 2019-11-26 11:12:16
问题 This might be silly question but I didn\'t understand Design lib well. I am following this reference to create below layout. The Blue area should work as parallax when I scroll the GridView . But when I scroll grid View nothing happens in AppBarLayout. But This works with NestedScrollView and RecyclerView Below is My Layout file- <?xml version=\"1.0\" encoding=\"utf-8\"?> <android.support.design.widget.CoordinatorLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" xmlns:app=\

Need to disable expand on CollapsingToolbarLayout for certain fragments

不羁的心 提交于 2019-11-26 08:13:59
问题 I have a AppCompatActivity that controls replacing many fragments. Here is my layout for it. activity_main.xml <android.support.v4.widget.DrawerLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" xmlns:app=\"http://schemas.android.com/apk/res-auto\" android:id=\"@+id/drawer_layout\" android:layout_height=\"match_parent\" android:layout_width=\"match_parent\" android:fitsSystemWindows=\"true\"> <include layout=\"@layout/activity_main_frame\"/> <android.support.design.widget