bruimafia

Untitled

May 25th, 2021
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.91 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    xmlns:ads="http://schemas.android.com/apk/res-auto"
  6.    xmlns:tools="http://schemas.android.com/tools"
  7.    android:layout_width="match_parent"
  8.    android:layout_height="match_parent"
  9.    tools:context=".activity.GameActivity">
  10.  
  11.     <LinearLayout
  12.        android:id="@+id/ll1"
  13.        android:layout_width="match_parent"
  14.        android:layout_height="wrap_content"
  15.        android:orientation="vertical"
  16.        android:paddingTop="15dp"
  17.        android:paddingBottom="10dp"
  18.        android:background="@color/colorPrimaryDark">
  19.  
  20.         <LinearLayout
  21.            android:layout_width="match_parent"
  22.            android:layout_height="wrap_content"
  23.            android:orientation="horizontal">
  24.  
  25.             <TextView
  26.                android:layout_width="match_parent"
  27.                android:layout_height="wrap_content"
  28.                style="@style/TextInfoCaps"
  29.                android:text="@string/level" />
  30.  
  31.             <View
  32.                android:layout_width="1dp"
  33.                android:layout_height="30dp"
  34.                android:background="@color/white" />
  35.  
  36.             <TextView
  37.                android:layout_width="match_parent"
  38.                android:layout_height="wrap_content"
  39.                style="@style/TextInfoCaps"
  40.                android:text="@string/points" />
  41.  
  42.         </LinearLayout>
  43.  
  44.         <LinearLayout
  45.            android:layout_width="match_parent"
  46.            android:layout_height="wrap_content"
  47.            android:orientation="horizontal">
  48.  
  49.             <TextView
  50.                android:id="@+id/tvLevel"
  51.                android:layout_width="match_parent"
  52.                android:layout_height="wrap_content"
  53.                style="@style/TextInfo"
  54.                tools:text="0" />
  55.  
  56.             <TextView
  57.                android:id="@+id/tvPoints"
  58.                android:layout_width="match_parent"
  59.                android:layout_height="wrap_content"
  60.                style="@style/TextInfo"
  61.                tools:text="0" />
  62.  
  63.         </LinearLayout>
  64.  
  65.         <androidx.cardview.widget.CardView
  66.            android:layout_width="match_parent"
  67.            android:layout_height="match_parent"
  68.            app:cardCornerRadius="5dp"
  69.            app:cardElevation="0dp"
  70.            android:layout_marginTop="15dp"
  71.            android:layout_marginStart="10dp"
  72.            android:layout_marginEnd="10dp">
  73.  
  74.             <RelativeLayout
  75.                android:layout_width="match_parent"
  76.                android:layout_height="wrap_content">
  77.  
  78.                 <TextView
  79.                    android:id="@+id/info"
  80.                    android:layout_width="match_parent"
  81.                    android:layout_height="wrap_content"
  82.                    android:gravity="center"
  83.                    android:textColor="@color/grey_400"
  84.                    android:layout_marginTop="15dp"
  85.                    android:text="@string/pick_rhyme_for_the_word" />
  86.  
  87.                 <TextView
  88.                    android:id="@+id/tvWord"
  89.                    android:layout_width="match_parent"
  90.                    android:layout_height="wrap_content"
  91.                    android:layout_below="@id/info"
  92.                    android:textStyle="bold"
  93.                    android:gravity="center"
  94.                    android:textSize="35sp"
  95.                    android:layout_marginTop="15dp"
  96.                    android:textColor="@color/colorPrimary"
  97.                    tools:text="электрошок" />
  98.  
  99.                 <ImageView
  100.                    android:id="@+id/ivHelp"
  101.                    android:onClick="helpByPushkin"
  102.                    app:srcCompat="@drawable/pushkin"
  103.                    android:layout_width="50dp"
  104.                    android:layout_height="50dp"
  105.                    android:layout_marginTop="-10dp"
  106.                    android:layout_marginBottom="-5dp"
  107.                    android:layout_below="@id/tvWord"
  108.                    android:layout_alignParentRight="true"
  109.                    android:layout_alignParentEnd="true" />
  110.  
  111.             </RelativeLayout>
  112.  
  113.         </androidx.cardview.widget.CardView>
  114.  
  115.     </LinearLayout>
  116.  
  117.     <LinearLayout
  118.        android:id="@+id/ll2"
  119.        android:layout_width="match_parent"
  120.        android:layout_height="wrap_content"
  121.        android:orientation="vertical"
  122.        android:layout_below="@id/ll1"
  123.        android:paddingTop="10dp"
  124.        android:paddingStart="5dp"
  125.        android:paddingBottom="5dp"
  126.        android:paddingEnd="5dp">
  127.  
  128.         <TextView
  129.            android:layout_width="match_parent"
  130.            android:layout_height="wrap_content"
  131.            android:gravity="center"
  132.            android:textSize="18sp"
  133.            android:textColor="@color/grey_600"
  134.            android:textStyle="bold"
  135.            android:text="@string/you_picked_up_these_rhymes" />
  136.  
  137.         <TextView
  138.            android:id="@+id/tvPointsForNextLevel"
  139.            android:layout_width="match_parent"
  140.            android:layout_height="wrap_content"
  141.            android:layout_marginStart="3dp"
  142.            android:layout_marginEnd="3dp"
  143.            android:layout_marginBottom="10dp"
  144.            android:gravity="center"
  145.            android:textSize="10sp"
  146.            android:textColor="@color/grey_500"
  147.            tools:text="@string/points_to_the_next_level" />
  148.  
  149.         <com.google.android.gms.ads.AdView
  150.            android:id="@+id/adView"
  151.            android:layout_width="wrap_content"
  152.            android:layout_height="wrap_content"
  153.            android:layout_gravity="center"
  154.            android:layout_marginBottom="10dp"
  155.            ads:adSize="BANNER"
  156.            ads:adUnitId="@string/banner_ad_unit_id" />
  157.  
  158.         <androidx.recyclerview.widget.RecyclerView
  159.            android:id="@+id/rvRhymes"
  160.            android:layout_width="match_parent"
  161.            android:layout_height="match_parent"
  162.            android:overScrollMode="never"
  163.            android:layout_marginTop="10dp"
  164.            android:layout_marginLeft="10dp"
  165.            android:layout_marginRight="10dp"
  166.            android:paddingBottom="?attr/actionBarSize" />
  167.  
  168.         <TextView
  169.            android:id="@+id/tvNoWords"
  170.            android:layout_width="match_parent"
  171.            android:layout_height="match_parent"
  172.            android:visibility="gone"
  173.            android:padding="10dp"
  174.            android:layout_marginTop="25dp"
  175.            android:gravity="center"
  176.            android:textSize="16sp"
  177.            android:textColor="@color/grey_500"
  178.            android:text="@string/you_did_not_pick_up_any_rhymes" />
  179.  
  180.     </LinearLayout>
  181.  
  182.     <RelativeLayout
  183.        android:layout_width="match_parent"
  184.        android:layout_height="wrap_content">
  185.  
  186.         <RelativeLayout
  187.            android:layout_width="match_parent"
  188.            android:layout_height="?attr/actionBarSize"
  189.            android:layout_alignParentBottom="true"
  190.            android:orientation="horizontal"
  191.            android:background="@color/grey_50">
  192.  
  193.             <View
  194.                android:id="@+id/view"
  195.                android:layout_width="match_parent"
  196.                android:layout_height="1dp"
  197.                android:background="@color/grey_200" />
  198.  
  199.             <LinearLayout
  200.                android:layout_width="match_parent"
  201.                android:layout_height="match_parent"
  202.                android:layout_below="@+id/view"
  203.                android:orientation="horizontal">
  204.  
  205.                 <EditText
  206.                    android:id="@+id/etEnter"
  207.                    android:layout_width="match_parent"
  208.                    android:layout_height="match_parent"
  209.                    android:layout_weight="1"
  210.                    android:textColor="@color/grey_800"
  211.                    android:background="@android:color/transparent"
  212.                    android:paddingStart="10dp"
  213.                    android:paddingLeft="10dp"
  214.                    android:paddingEnd="10dp"
  215.                    android:paddingRight="10dp"
  216.                    android:inputType="textPersonName"
  217.                    android:hint="@string/enter_rhyme"
  218.                    android:autofillHints="" />
  219.  
  220.                 <ImageView
  221.                    android:id="@+id/btnAdd"
  222.                    android:onClick="enterWord"
  223.                    android:layout_width="35dp"
  224.                    android:layout_height="35dp"
  225.                    android:layout_weight="0"
  226.                    android:layout_gravity="center"
  227.                    android:layout_marginEnd="10dp"
  228.                    android:layout_marginRight="10dp"
  229.                    android:contentDescription="@string/add_rhyme"
  230.                    app:srcCompat="@drawable/ic_add"/>
  231.  
  232.             </LinearLayout>
  233.  
  234.         </RelativeLayout>
  235.  
  236.     </RelativeLayout>
  237.  
  238. </RelativeLayout>
Add Comment
Please, Sign In to add comment