Last active
September 29, 2015 17:25
-
-
Save anudeepsamaiya/0726b561fa5e4ded1b3a to your computer and use it in GitHub Desktop.
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/main_content" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/appbar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> | |
<android.support.design.widget.CollapsingToolbarLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true" | |
android:minHeight="?attr/actionBarSize" | |
app:layout_scrollFlags="scroll|enterAlwaysCollapsed" | |
app:titleEnabled="false"> | |
<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="true" | |
app:layout_collapseMode="pin" | |
app:layout_scrollFlags="scroll|enterAlways" | |
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="?attr/actionBarSize" | |
app:contentPadding="20dp" | |
app:layout_collapseMode="pin"> | |
<android.support.design.widget.TextInputLayout | |
android:id="@+id/etSearchPos" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="50dp" | |
android:layout_marginRight="50dp" | |
android:layout_marginTop="5dp"> | |
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" /> | |
</android.support.design.widget.TextInputLayout> | |
<android.support.design.widget.TextInputLayout | |
android:id="@+id/etSearchLoc" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="50dp" | |
android:layout_marginRight="50dp" | |
android:layout_marginTop="5dp" | |
android:layout_below="@id/etSearchPos"> | |
<EditText | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" /> | |
</android.support.design.widget.TextInputLayout> | |
<Button | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/etSearchLoc" | |
android:layout_marginLeft="50dp" | |
android:layout_marginRight="50dp" | |
android:layout_marginTop="5dp" | |
android:background="@android:color/white" | |
android:text="Search" /> | |
</RelativeLayout> | |
</android.support.design.widget.CollapsingToolbarLayout> | |
<android.support.design.widget.TabLayout | |
android:id="@+id/tabs" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="5dp" /> | |
</android.support.design.widget.AppBarLayout> | |
<android.support.v4.view.ViewPager | |
android:id="@+id/viewpager" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" /> | |
<android.support.design.widget.FloatingActionButton | |
android:id="@+id/fab" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="end|bottom" | |
android:layout_margin="@dimen/fab_margin" | |
android:src="@drawable/ic_done" /> | |
</android.support.design.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment