Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout 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"
- xmlns:TagsEditText="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorWhite"
- tools:context=".Activities.ProductListActivity">
- <android.support.design.widget.AppBarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/appbar"
- android:fitsSystemWindows="true"
- android:theme="@style/ThemeOverlay.AppCompat.Dark">
- <android.support.v7.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- android:background="@color/colorWhite"
- app:layout_collapseMode="pin"
- app:layout_scrollFlags="scroll|exitUntilCollapsed" >
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text=""
- android:textSize="14sp"
- android:textStyle="bold"
- app:layout_scrollFlags="scroll|enterAlways"
- android:textColor="@color/colorBlack"
- android:layout_gravity="center"
- android:id="@+id/toolbar_title" />
- </android.support.v7.widget.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/appbar">
- <android.support.design.widget.AppBarLayout
- android:id="@+id/app_bar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:theme="@style/ThemeOverlay.AppCompat.Dark">
- <android.support.design.widget.CollapsingToolbarLayout
- android:layout_width="match_parent"
- android:id="@+id/collapsingtoolbar"
- android:layout_height="wrap_content"
- app:layout_scrollFlags="scroll|enterAlways">
- <LinearLayout
- android:layout_width="match_parent"
- android:orientation="vertical"
- android:id="@+id/ll"
- android:background="@color/colorWhite"
- android:layout_height="wrap_content">
- <Button
- android:layout_width="200dp"
- android:layout_gravity="center_horizontal"
- android:text="Сортировать по популярным"
- android:textStyle="normal"
- android:visibility="gone"
- android:layout_marginBottom="5dp"
- android:textColor="@color/colorBlack"
- android:textSize="12sp"
- android:drawableEnd="@drawable/ic_expand_more_black_24dp"
- android:gravity="center"
- android:textAllCaps="false"
- android:id="@+id/btnSort"
- android:background="@color/colorWhite"
- android:layout_height="40dp" />
- <LinearLayout
- android:layout_width="match_parent"
- android:orientation="horizontal"
- android:id="@+id/ll_inside"
- android:layout_marginStart="10dp"
- android:layout_marginEnd="10dp"
- android:gravity="center_vertical"
- android:background="@drawable/edit_text_filter"
- android:layout_height="40dp">
- <rasulov.ason.Utils.TagsEditText
- android:id="@+id/search"
- android:layout_width="0dp"
- android:layout_height="35dp"
- android:textSize="16sp"
- android:backgroundTint="@color/edit_text_background"
- android:layout_weight="10"
- android:ellipsize="start"
- android:textColor="@color/colorBlack"
- android:maxLines="1"
- android:background="@color/edit_text_background"
- android:textColorHint="@color/colorBlack"
- TagsEditText:allowSpaceInTag="true"
- TagsEditText:tagsBackground="@drawable/square"
- TagsEditText:tagsTextColor="@color/colorWhite"
- TagsEditText:tagsTextSize="@dimen/defaultTagsTextSize"
- TagsEditText:tagsCloseImageRight="@drawable/ic_clear_black_24dp"
- android:hint="Введите">
- </rasulov.ason.Utils.TagsEditText>
- <View
- android:layout_width="0.5dp"
- android:background="@color/colorBlack"
- android:layout_height="match_parent"
- >
- </View>
- <ImageView
- android:layout_width="30dp"
- android:layout_weight="1"
- android:id="@+id/img_filter"
- android:background="@color/edit_text_background"
- android:src="@drawable/ic_settings"
- android:layout_height="30dp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_marginTop="5dp"
- android:orientation="vertical"
- android:layout_marginBottom="10dp"
- android:layout_height="wrap_content">
- <android.support.v7.widget.RecyclerView
- android:layout_width="match_parent"
- android:id="@+id/recycler_tags"
- android:layout_marginStart="0dp"
- android:visibility="gone"
- android:layout_marginEnd="0dp"
- android:layout_height="wrap_content">
- </android.support.v7.widget.RecyclerView>
- <TextView
- android:layout_width="wrap_content"
- android:textSize="13sp"
- android:textStyle="bold"
- android:layout_marginTop="8dp"
- android:id="@+id/tv_total_count"
- android:textColor="@color/colorBlack"
- android:layout_gravity="center"
- android:layout_height="wrap_content" />
- </LinearLayout>
- </LinearLayout>
- </android.support.design.widget.CollapsingToolbarLayout>
- </android.support.design.widget.AppBarLayout>
- <android.support.v4.widget.NestedScrollView
- android:layout_width="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior"
- android:layout_height="match_parent">
- <LinearLayout
- android:layout_width="match_parent"
- android:orientation="vertical"
- android:layout_marginTop="10dp"
- android:id="@+id/layout_main"
- android:layout_height="match_parent">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/recyclerview"
- android:layout_width="match_parent"
- android:layout_height="match_parent"/>
- </LinearLayout>
- </android.support.v4.widget.NestedScrollView>
- </android.support.design.widget.CoordinatorLayout>
- </RelativeLayout>
Add Comment
Please, Sign In to add comment