How to set my toolbar fixed while scrolling android
问题 I am currently working in e-commerce android app, i need to fix the toolbar while scrolling. As i attached the screenshot below. while scrolling the action bar need to be fixed and the body content scroll behind the toolbar Here is the layout xml: <LinearLayout android:id="@+id/container_toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <include android:id="@+id/toolbar_reg" layout="@layout/app_bar" /> </LinearLayout> <ScrollView