Skip to content

Instantly share code, notes, and snippets.

View non1692's full-sized avatar

Noe Rojas Flores non1692

  • Puebla, México
View GitHub Profile
@non1692
non1692 / activity_main.xml
Created September 15, 2017 17:48 — forked from dadino/activity_main.xml
A CoordinatorLayout layout, with a Google Map that collapse itself. A TabLayout (inside the CollapsingToolbarLayout) provides navigation for the ViewPager, that sits just below the AppBarLayout. The FloatingActionButton is used to go to the next page in the ViewPager.
<android.support.design.widget.CoordinatorLayout
android:id="@+id/main_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"