Created
July 13, 2018 05:28
-
-
Save Vagonn/871c836da4159c66a4bea1e2c7a7fc5f to your computer and use it in GitHub Desktop.
Main page layout
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.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/drawer_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="false" | |
tools:context=".MainActivity" | |
tools:openDrawer="end"> | |
<android.support.v4.widget.SwipeRefreshLayout | |
android:id="@+id/swiperefresh" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<android.support.v7.widget.Toolbar | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="?android:attr/actionBarSize" | |
android:background="@color/colorPrimary" | |
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" | |
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> | |
<android.support.v4.widget.NestedScrollView | |
android:id="@+id/nested_scrollview" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<FrameLayout | |
android:id="@+id/slider_container" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="4dp"> | |
<android.support.v4.view.ViewPager | |
android:id="@+id/viewPagerSlider" | |
android:layout_width="match_parent" | |
android:layout_height="190dp" | |
android:layout_marginBottom="8dp" /> | |
<LinearLayout | |
android:id="@+id/SliderDots" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_gravity="bottom" | |
android:layout_marginBottom="24dp" | |
android:gravity="center_vertical|center_horizontal" | |
android:orientation="horizontal" /> | |
</FrameLayout> | |
<ProgressBar | |
android:id="@+id/progress_circle_feed" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" /> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/recyclerview_feed" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:tag="tagged_boy" /> | |
</LinearLayout> | |
</android.support.v4.widget.NestedScrollView> | |
<ProgressBar | |
android:id="@+id/progress_loadmore" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center|bottom" | |
android:visibility="gone" /> | |
</LinearLayout> | |
</android.support.v4.widget.SwipeRefreshLayout> | |
<android.support.design.widget.NavigationView | |
android:id="@+id/nav_view" | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_gravity="start" | |
app:headerLayout="@layout/nav_header" | |
app:itemTextColor="#FF3E3E3E" | |
app:menu="@menu/drawer_menu"> | |
</android.support.design.widget.NavigationView> | |
</android.support.v4.widget.DrawerLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment