Created
September 18, 2017 06:36
-
-
Save engr-erum/d41a171d874581213b27e155894c8522 to your computer and use it in GitHub Desktop.
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
navigation_drawer_layout | |
<?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:openDrawer="start"> | |
<include | |
android:id="@+id/navigation_drawer" | |
layout="@layout/app_bar_navigation_drawer" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" /> | |
<android.support.design.widget.NavigationView | |
android:id="@+id/nav_view" | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_marginTop="0dp" | |
android:layout_gravity="start" | |
android:background="@android:color/white" | |
android:fitsSystemWindows="true"> | |
<FrameLayout | |
android:id="@+id/fl_navmenu" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@android:color/white"/> | |
</android.support.design.widget.NavigationView> | |
</android.support.v4.widget.DrawerLayout> | |
------------------------------ | |
app_bar_navigation_drawer.xml | |
------------------------------ | |
<RelativeLayout 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/id_toolbar_container" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:fitsSystemWindows="true" | |
android:theme="@style/ThemeOverlay.AppCompat.Dark"> | |
<include layout="@layout/layout_toolbar" /> | |
</android.support.design.widget.AppBarLayout> | |
<android.support.design.widget.CoordinatorLayout | |
android:id="@+id/main_content" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_below="@id/id_toolbar_container"> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/app_bar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<android.support.design.widget.CollapsingToolbarLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:layout_scrollFlags="scroll|enterAlways"> | |
<!-- put code for recyclerview--> <!-- i will remove this recyclerview from here --> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/rv_category" | |
android:layout_width="match_parent" | |
android:layout_height="150dp" | |
android:background="@android:color/white" | |
android:clipToPadding="false" | |
android:paddingBottom="?attr/actionBarSize" | |
android:visibility="visible" /> | |
</android.support.design.widget.CollapsingToolbarLayout> | |
</android.support.design.widget.AppBarLayout> | |
<android.support.v4.view.ViewPager | |
android:id="@+id/view_pager" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:paddingBottom="?attr/actionBarSize" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" /> | |
<android.support.design.widget.TabLayout | |
android:id="@+id/tab_layout" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:layout_gravity="bottom" | |
android:background="@android:color/black" | |
app:tabGravity="fill" | |
app:tabIndicatorColor="@android:color/transparent" | |
app:tabMaxWidth="0dp" | |
app:tabMode="fixed" /> | |
</android.support.design.widget.CoordinatorLayout> | |
</RelativeLayout> | |
<!-- Layout for First Fragment--> | |
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<!--first horizontal scroll view will apply animation on it --> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/rv_category" | |
android:layout_width="match_parent" | |
android:layout_height="150dp" | |
android:visibility="gone" /> | |
<include | |
android:id="@+id/slider_layout" | |
layout="@layout/layout_slider" | |
android:visibility="visible" /> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="400dp" | |
android:layout_marginLeft="20dp" | |
android:layout_marginRight="20dp" | |
android:layout_marginTop="10dp" | |
android:orientation="vertical" | |
android:visibility="visible"> | |
<ImageView | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:src="@drawable/country_background" /> | |
</LinearLayout> | |
<LinearLayout | |
android:id="@+id/ll_unstitch" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginRight="5dp" | |
android:layout_marginTop="10dp" | |
android:orientation="vertical" | |
android:visibility="visible"> | |
<TextView | |
android:id="@+id/tv_unstitch" | |
style="@style/style_heading_textview" | |
android:text="@string/str_unstitch" /> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/rv_unstitch" | |
style="@style/recycler_home" | |
android:layout_marginTop="10dp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:id="@+id/ll_womenpret" | |
android:layout_width="match_parent" | |
android:layout_height="400dp" | |
android:layout_marginRight="5dp" | |
android:layout_marginTop="10dp" | |
android:orientation="vertical" | |
android:visibility="visible"> | |
<TextView | |
android:id="@+id/tv_womenpret" | |
style="@style/style_heading_textview" | |
android:text="@string/str_women_pret" /> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/rv_womenpret" | |
style="@style/recycler_home" | |
android:layout_marginTop="10dp" /> | |
</LinearLayout> | |
<include | |
android:id="@+id/include_readytowear" | |
layout="@layout/layout_readytowear" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="5dp" | |
android:layout_marginRight="5dp" | |
android:layout_marginTop="10dp" /> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/rv_allcategories" | |
style="@style/recycler_home" | |
android:layout_marginBottom="10dp" | |
android:layout_marginRight="5dp" | |
android:layout_marginTop="10dp" /> | |
</LinearLayout> | |
</android.support.v4.widget.NestedScrollView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment