Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Фрагмент
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v4.widget.NestedScrollView
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <com.facebook.drawee.view.SimpleDraweeView
- android:id="@+id/category_top_image"
- android:layout_marginTop="4dp"
- android:layout_marginStart="4dp"
- android:layout_marginEnd="4dp"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:actualImageScaleType="focusCrop"
- app:viewAspectRatio="4"
- app:actualImageResource="@drawable/category"/>
- <android.support.v7.widget.RecyclerView
- android:id="@+id/category_recycler"
- android:layout_marginTop="4dp"
- android:layout_marginStart="4dp"
- android:layout_marginEnd="4dp"
- android:layout_below="@+id/category_top_image"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"/>
- </RelativeLayout>
- </android.support.v4.widget.NestedScrollView>
- //Карточка
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v7.widget.CardView
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <com.facebook.drawee.view.SimpleDraweeView
- android:id="@+id/category_card_image"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:actualImageScaleType="focusCrop"
- app:viewAspectRatio="2"
- app:placeholderImage="@drawable/error_guide"
- />
- <TextView
- android:id="@+id/text_card_category"
- android:layout_marginTop="4dp"
- android:layout_marginStart="8dp"
- android:layout_marginEnd="8dp"
- android:layout_marginBottom="4dp"
- android:textColor="@color/colorHeadPrimary"
- android:textSize="18sp"
- android:layout_below="@+id/category_card_image"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- </RelativeLayout>
- </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement