Created
February 11, 2016 20:03
-
-
Save c0rp-aubakirov/1f08f6b31dd0c728b5d1 to your computer and use it in GitHub Desktop.
activity_main.xml
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
<android.support.v4.widget.DrawerLayout | |
android:id="@+id/drawer_layout" | |
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.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:background="@color/appColorPrimary" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true"> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/appbar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:fitsSystemWindows="true" | |
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> | |
<android.support.v7.widget.Toolbar | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:background="?attr/colorPrimary" | |
app:layout_scrollFlags="scroll|enterAlways|snap" | |
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/> | |
<!--<android.support.design.widget.TabLayout--> | |
<!--android:id="@+id/tabs"--> | |
<!--android:layout_width="match_parent"--> | |
<!--android:layout_height="wrap_content" />--> | |
</android.support.design.widget.AppBarLayout> | |
<Button | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
android:id="@+id/button_test" | |
android:layout_width="wrap_content" | |
android:layout_height="40dp" | |
android:text="Generate Test" | |
android:visibility="@integer/test_button_visibility"/> | |
<android.support.v4.widget.SwipeRefreshLayout | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
android:id="@+id/swiperefresh" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<!-- A RecyclerView with some commonly used attributes --> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/my_recycler_view" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:scrollbars="vertical"/> | |
</android.support.v4.widget.SwipeRefreshLayout> | |
</android.support.design.widget.CoordinatorLayout> | |
<android.support.design.widget.NavigationView | |
android:id="@+id/left_drawer" | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_gravity="start" | |
android:choiceMode="singleChoice" | |
android:divider="@android:color/transparent" | |
android:dividerHeight="0dp" | |
android:theme="@style/NavigationDrawerTheme" | |
app:itemTextColor="@color/text_color" | |
app:menu="@menu/navigation_drawer_menu_items"/> | |
</android.support.v4.widget.DrawerLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment