Forked from jayrambhia/activity_contacts_layout.xml
Created
December 28, 2015 15:13
-
-
Save RowlandOti/b7ddfa2e04e68aae5ff6 to your computer and use it in GitHub Desktop.
Contacts Demo App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android.support.design.widget.CoordinatorLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:id="@+id/main_content" | |
tools:context=".ContactsActivity"> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/appbar" | |
android:layout_width="match_parent" | |
android:layout_height="112dp" | |
android:fitsSystemWindows="true" | |
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> | |
<android.support.design.widget.CollapsingToolbarLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:minHeight="?attr/actionBarSize" | |
android:fitsSystemWindows="true" | |
app:layout_scrollFlags="scroll|enterAlwaysCollapsed|enterAlways"> | |
<android.support.v7.widget.Toolbar | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:background="?attr/colorPrimary" | |
android:fitsSystemWindows="false" | |
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" | |
app:layout_collapseMode="pin" | |
app:layout_scrollFlags="scroll|enterAlways"> | |
<!-- Search layout --> | |
<android.support.v7.widget.CardView | |
....> | |
<!-- Some content --> | |
</android.support.v7.widget.CardView> | |
</android.support.v7.widget.Toolbar> | |
<!-- Collapsible Layout for Last call --> | |
<android.support.v7.widget.CardView | |
android:layout_height="48dp" | |
android:layout_width="match_parent" | |
android:layout_marginRight="18dp" | |
android:layout_marginLeft="18dp" | |
android:layout_marginTop="?attr/actionBarSize" | |
app:cardBackgroundColor="#fff" | |
app:cardCornerRadius="4dp" | |
app:cardElevation="3dp" | |
app:contentPadding="6dp" | |
app:layout_collapseMode="pin"> | |
<!-- Some content --> | |
</android.support.v7.widget.CardView> | |
</android.support.design.widget.CollapsingToolbarLayout> | |
</android.support.design.widget.AppBarLayout> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | |
<android.support.design.widget.TabLayout | |
android:id="@+id/tabs" | |
android:layout_width="match_parent" | |
android:layout_height="48dp" | |
android:background="@color/primary_color" | |
app:layout_scrollFlags="scroll"/> | |
<android.support.v4.view.ViewPager | |
android:id="@+id/viewpager" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" /> | |
</LinearLayout> | |
</android.support.design.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello