Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. //Фрагмент
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <android.support.v4.widget.NestedScrollView
  4. xmlns:android="http://schemas.android.com/apk/res/android"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. xmlns:app="http://schemas.android.com/apk/res-auto">
  8.  
  9. <RelativeLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12.  
  13. <com.facebook.drawee.view.SimpleDraweeView
  14. android:id="@+id/category_top_image"
  15. android:layout_marginTop="4dp"
  16. android:layout_marginStart="4dp"
  17. android:layout_marginEnd="4dp"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. app:actualImageScaleType="focusCrop"
  21. app:viewAspectRatio="4"
  22. app:actualImageResource="@drawable/category"/>
  23.  
  24.  
  25. <android.support.v7.widget.RecyclerView
  26. android:id="@+id/category_recycler"
  27. android:layout_marginTop="4dp"
  28. android:layout_marginStart="4dp"
  29. android:layout_marginEnd="4dp"
  30. android:layout_below="@+id/category_top_image"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"/>
  33.  
  34. </RelativeLayout>
  35. </android.support.v4.widget.NestedScrollView>
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. //Карточка
  51. <?xml version="1.0" encoding="utf-8"?>
  52. <android.support.v7.widget.CardView
  53. xmlns:android="http://schemas.android.com/apk/res/android"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. xmlns:app="http://schemas.android.com/apk/res-auto">
  57.  
  58. <RelativeLayout
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content">
  61.  
  62. <com.facebook.drawee.view.SimpleDraweeView
  63. android:id="@+id/category_card_image"
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. app:actualImageScaleType="focusCrop"
  67. app:viewAspectRatio="2"
  68. app:placeholderImage="@drawable/error_guide"
  69. />
  70.  
  71.  
  72. <TextView
  73. android:id="@+id/text_card_category"
  74. android:layout_marginTop="4dp"
  75. android:layout_marginStart="8dp"
  76. android:layout_marginEnd="8dp"
  77. android:layout_marginBottom="4dp"
  78. android:textColor="@color/colorHeadPrimary"
  79. android:textSize="18sp"
  80. android:layout_below="@+id/category_card_image"
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content" />
  83.  
  84.  
  85.  
  86. </RelativeLayout>
  87.  
  88. </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement