Advertisement
Guest User

Untitled

a guest
Apr 10th, 2020
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.44 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    android:orientation="vertical"
  7.    android:layout_width="match_parent"
  8.    android:layout_height="match_parent">
  9.  
  10.     <LinearLayout
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content"
  13.        android:layout_gravity="end"
  14.        android:gravity="end"
  15.        android:layout_marginTop="@dimen/spacing_normal_16">
  16.         <ImageView
  17.            android:id="@+id/main_search_iv"
  18.            android:layout_width="@dimen/spacing_normal_24"
  19.            android:layout_height="@dimen/spacing_normal_24"
  20.            android:layout_gravity="end"
  21.            android:layout_marginEnd="@dimen/spacing_normal_16"
  22.            android:src="@drawable/ic_search_black_24dp" />
  23.     </LinearLayout>
  24. <com.google.android.material.appbar.AppBarLayout
  25.    android:layout_width="match_parent"
  26.    android:layout_height="wrap_content"
  27.    android:background="@android:color/transparent"
  28.    app:liftOnScroll="true">
  29.     <LinearLayout
  30.        android:layout_width="match_parent"
  31.        android:layout_height="wrap_content"
  32.        android:layout_marginTop="@dimen/spacing_normal_24">
  33.  
  34.         <TextView
  35.            android:layout_width="match_parent"
  36.            android:layout_height="wrap_content"
  37.            android:layout_marginStart="@dimen/spacing_normal_16"
  38.            android:fontFamily="@font/avenir_medium"
  39.            android:text="MixCart"
  40.            android:textColor="@android:color/black"
  41.            android:textSize="@dimen/text_32_sp" />
  42.     </LinearLayout>
  43.  
  44.     <LinearLayout
  45.        android:id="@+id/main_templates"
  46.        android:layout_width="match_parent"
  47.        android:layout_height="wrap_content"
  48.        android:layout_marginTop="@dimen/spacing_normal_24"
  49.        android:background="@color/color_field_gray"
  50.        android:orientation="vertical">
  51.  
  52.         <LinearLayout
  53.            android:layout_width="match_parent"
  54.            android:layout_height="wrap_content"
  55.            android:layout_marginTop="@dimen/spacing_normal_24"
  56.            android:paddingStart="@dimen/spacing_normal_16"
  57.            android:paddingEnd="@dimen/spacing_normal_16"
  58.            android:orientation="horizontal">
  59.  
  60.             <TextView
  61.                android:layout_width="match_parent"
  62.                android:layout_height="wrap_content"
  63.                android:layout_weight="1"
  64.                android:fontFamily="@font/avenir_demi"
  65.                android:text="@string/templates"
  66.                android:textColor="@android:color/black"
  67.                android:textSize="@dimen/text_24_sp" />
  68.  
  69.             <TextView
  70.                android:id="@+id/main_more_templates_button"
  71.                android:layout_width="match_parent"
  72.                android:layout_height="wrap_content"
  73.                android:layout_gravity="center"
  74.                android:layout_weight="1"
  75.                android:fontFamily="@font/avenir_medium"
  76.                android:gravity="end"
  77.                android:text="@string/All"
  78.                android:textColor="@color/textColorGray"
  79.                android:textSize="@dimen/text_18_sp" />
  80.         </LinearLayout>
  81.  
  82.         <LinearLayout
  83.            android:layout_width="match_parent"
  84.            android:layout_height="wrap_content"
  85.            android:layout_marginTop="@dimen/spacing_small_8"
  86.            android:paddingStart="@dimen/spacing_normal_16"
  87.            android:paddingEnd="@dimen/spacing_normal_16"
  88.            android:orientation="vertical">
  89.  
  90.             <TextView
  91.                android:id="@+id/main_templates_tv"
  92.                android:layout_width="match_parent"
  93.                android:layout_height="wrap_content"
  94.                android:fontFamily="@font/avenir_medium"
  95.                android:textSize="@dimen/text_14_sp"
  96.                tools:text="100 шаблонов" />
  97.  
  98.             <ProgressBar
  99.                android:id="@+id/main_progress_bar_templates"
  100.                android:layout_width="wrap_content"
  101.                android:layout_height="wrap_content"
  102.                android:layout_gravity="center" />
  103.         </LinearLayout>
  104. </com.google.android.material.appbar.AppBarLayout>
  105.     <LinearLayout
  106.        android:layout_width="match_parent"
  107.        android:layout_height="wrap_content"
  108.        android:paddingStart="@dimen/spacing_normal_16">
  109.  
  110.         <androidx.recyclerview.widget.RecyclerView
  111.            android:id="@+id/main_templates_rv"
  112.            android:layout_width="wrap_content"
  113.            android:layout_height="wrap_content"
  114.            android:layout_marginTop="@dimen/spacing_normal_24"
  115.            android:layout_marginBottom="@dimen/spacing_normal_24"
  116.            android:background="@android:color/transparent"
  117.            android:clipToPadding="false"
  118.            android:visibility="gone"
  119.            tools:listitem="@layout/item_template_vertical" />
  120.  
  121.         <TextView
  122.            android:id="@+id/main_template_empty_tv"
  123.            android:layout_width="0dp"
  124.            android:layout_height="wrap_content"
  125.            android:layout_marginTop="@dimen/spacing_normal_32"
  126.            android:layout_marginBottom="@dimen/spacing_normal_16"
  127.            android:gravity="center"
  128.            android:text="@string/text_template_empty"
  129.            android:textColor="@android:color/darker_gray"
  130.            android:textSize="@dimen/text_14_sp"
  131.            android:visibility="gone" />
  132.     </LinearLayout>
  133.     </LinearLayout>
  134.     <LinearLayout
  135.        android:layout_width="match_parent"
  136.        android:layout_height="wrap_content"
  137.        android:layout_marginStart="@dimen/spacing_normal_16"
  138.        android:layout_marginEnd="@dimen/spacing_normal_16"
  139.        android:orientation="vertical">
  140.  
  141.         <LinearLayout
  142.            android:layout_width="match_parent"
  143.            android:layout_height="wrap_content"
  144.            android:layout_marginTop="@dimen/spacing_normal_24"
  145.            android:orientation="horizontal">
  146.  
  147.             <TextView
  148.                android:layout_width="match_parent"
  149.                android:layout_height="wrap_content"
  150.                android:layout_weight="1"
  151.                android:fontFamily="@font/avenir_demi"
  152.                android:text="@string/myOrders"
  153.                android:textColor="@android:color/black"
  154.                android:textSize="@dimen/text_24_sp" />
  155.  
  156.             <TextView
  157.                android:id="@+id/main_more_history_button"
  158.                android:layout_width="match_parent"
  159.                android:layout_height="wrap_content"
  160.                android:layout_gravity="center"
  161.                android:layout_weight="1"
  162.                android:fontFamily="@font/avenir_medium"
  163.                android:gravity="end"
  164.                android:text="@string/All"
  165.                android:textColor="@color/textColorGray"
  166.                android:textSize="@dimen/text_18_sp" />
  167.         </LinearLayout>
  168.  
  169.         <LinearLayout
  170.            android:layout_width="match_parent"
  171.            android:layout_height="wrap_content"
  172.            android:orientation="vertical">
  173.  
  174.             <ProgressBar
  175.                android:id="@+id/main_progress_bar_history"
  176.                android:layout_width="wrap_content"
  177.                android:layout_height="wrap_content"
  178.                android:layout_gravity="center" />
  179.  
  180.             <androidx.recyclerview.widget.RecyclerView
  181.                android:id="@+id/main_history_list_rv"
  182.                android:layout_width="match_parent"
  183.                android:layout_height="wrap_content"
  184.                android:layout_marginTop="@dimen/spacing_normal_16"
  185.                android:layout_marginEnd="@dimen/spacing_small_8"
  186.                android:visibility="visible"
  187.                tools:listitem="@layout/item_history" />
  188.  
  189.             <TextView
  190.                android:id="@+id/main_history_empty_tv"
  191.                android:layout_width="0dp"
  192.                android:layout_height="wrap_content"
  193.                android:layout_marginTop="@dimen/spacing_normal_32"
  194.                android:gravity="center"
  195.                android:text="@string/text_history_empty"
  196.                android:textColor="@android:color/darker_gray"
  197.                android:textSize="@dimen/text_14_sp"
  198.                android:visibility="gone" />
  199.         </LinearLayout>
  200.     </LinearLayout>
  201. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement