Tuesday, 14 June 2016

Create CollapsingToolbarLayout with using Recyclerview


android-robot.jpg

In the below example layout I have created CollapsingToolbarLayout with using Recyclerview. Here first I have created CoordinatorLayout created all layout in CoordinatorLayout. Now I have added AppBarLayout, CollapsingToolbarLayout, ImageView, Toolbar, RecyclerView and FloatingActionButton. You can see below program it will clearly describe how to create CollapsingToolbarLayout with using Recyclerview.
  1. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.   xmlns:app="http://schemas.android.com/apk/res-auto"
  3.   android:layout_width="match_parent"
  4.   android:layout_height="match_parent"
  5.   android:fitsSystemWindows="true">
  6.   <android.support.design.widget.AppBarLayout
  7.       android:id="@+id/app_bar_layout"
  8.       android:layout_width="match_parent"
  9.       android:layout_height="wrap_content"
  10.       android:fitsSystemWindows="true"
  11.       android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">


Explore Findnerd to read such more blogs of Android, iOS, Java,PHP etc.

No comments:

Post a Comment