Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorBackground"
- tools:context=".ui.list.AllPetsFragment">
- <android.support.design.widget.AppBarLayout
- android:id="@+id/appbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
- <android.support.constraint.ConstraintLayout
- android:id="@+id/relativeLayout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/colorPrimary"
- android:elevation="3dp"
- android:translationZ="8dp"
- app:layout_constraintBottom_toTopOf="@+id/adverts_search"
- app:layout_constraintTop_toTopOf="@+id/adverts_search"
- app:layout_scrollFlags="scroll|enterAlways">
- <TextView
- android:id="@+id/textView"
- android:layout_width="0dp"
- android:layout_height="24dp"
- android:layout_marginEnd="8dp"
- android:layout_marginStart="16dp"
- android:layout_marginTop="16dp"
- android:text="@string/title_ads"
- android:textColor="@color/colorAccentDark"
- android:textSize="20sp"
- android:textStyle="bold"
- app:layout_constraintEnd_toStartOf="@+id/pets_filter_button"
- app:layout_constraintHorizontal_bias="0.0"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:layout_conversion_absoluteHeight="27dp"
- tools:layout_conversion_absoluteWidth="24dp" />
- <ImageButton
- android:id="@+id/pets_filter_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:layout_marginEnd="8dp"
- android:layout_marginTop="8dp"
- android:background="@drawable/ripple_transparent"
- android:padding="8dp"
- android:src="@drawable/ic_filter"
- android:tint="@color/colorAccentDark"
- app:layout_constraintBottom_toTopOf="@+id/adverts_search"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:layout_conversion_absoluteHeight="40dp"
- tools:layout_conversion_absoluteWidth="40dp" />
- <SearchView
- android:id="@+id/adverts_search"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginEnd="16dp"
- android:layout_marginStart="16dp"
- android:layout_marginTop="8dp"
- android:background="@drawable/light_container"
- android:elevation="10dp"
- android:iconifiedByDefault="false"
- android:queryBackground="@android:color/transparent"
- android:queryHint="@string/search"
- android:submitBackground="@android:color/transparent"
- android:theme="@style/WhiteCursorSearchView"
- android:translationZ="8dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/textView" />
- </android.support.constraint.ConstraintLayout>
- </android.support.design.widget.AppBarLayout>
- <android.support.v4.widget.SwipeRefreshLayout
- android:id="@+id/adverts_refresh"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/all_pets_recycler"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:clipToPadding="false"
- android:paddingLeft="8dp"
- android:paddingRight="8dp" />
- </android.support.v4.widget.SwipeRefreshLayout>
- </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement