Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:ads="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".activity.GameActivity">
- <LinearLayout
- android:id="@+id/ll1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingTop="15dp"
- android:paddingBottom="10dp"
- android:background="@color/colorPrimaryDark">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- style="@style/TextInfoCaps"
- android:text="@string/level" />
- <View
- android:layout_width="1dp"
- android:layout_height="30dp"
- android:background="@color/white" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- style="@style/TextInfoCaps"
- android:text="@string/points" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/tvLevel"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- style="@style/TextInfo"
- tools:text="0" />
- <TextView
- android:id="@+id/tvPoints"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- style="@style/TextInfo"
- tools:text="0" />
- </LinearLayout>
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:cardCornerRadius="5dp"
- app:cardElevation="0dp"
- android:layout_marginTop="15dp"
- android:layout_marginStart="10dp"
- android:layout_marginEnd="10dp">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <TextView
- android:id="@+id/info"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:textColor="@color/grey_400"
- android:layout_marginTop="15dp"
- android:text="@string/pick_rhyme_for_the_word" />
- <TextView
- android:id="@+id/tvWord"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/info"
- android:textStyle="bold"
- android:gravity="center"
- android:textSize="35sp"
- android:layout_marginTop="15dp"
- android:textColor="@color/colorPrimary"
- tools:text="электрошок" />
- <ImageView
- android:id="@+id/ivHelp"
- android:onClick="helpByPushkin"
- app:srcCompat="@drawable/pushkin"
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:layout_marginTop="-10dp"
- android:layout_marginBottom="-5dp"
- android:layout_below="@id/tvWord"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true" />
- </RelativeLayout>
- </androidx.cardview.widget.CardView>
- </LinearLayout>
- <LinearLayout
- android:id="@+id/ll2"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_below="@id/ll1"
- android:paddingTop="10dp"
- android:paddingStart="5dp"
- android:paddingBottom="5dp"
- android:paddingEnd="5dp">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:textSize="18sp"
- android:textColor="@color/grey_600"
- android:textStyle="bold"
- android:text="@string/you_picked_up_these_rhymes" />
- <TextView
- android:id="@+id/tvPointsForNextLevel"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="3dp"
- android:layout_marginEnd="3dp"
- android:layout_marginBottom="10dp"
- android:gravity="center"
- android:textSize="10sp"
- android:textColor="@color/grey_500"
- tools:text="@string/points_to_the_next_level" />
- <com.google.android.gms.ads.AdView
- android:id="@+id/adView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginBottom="10dp"
- ads:adSize="BANNER"
- ads:adUnitId="@string/banner_ad_unit_id" />
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/rvRhymes"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:overScrollMode="never"
- android:layout_marginTop="10dp"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:paddingBottom="?attr/actionBarSize" />
- <TextView
- android:id="@+id/tvNoWords"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:visibility="gone"
- android:padding="10dp"
- android:layout_marginTop="25dp"
- android:gravity="center"
- android:textSize="16sp"
- android:textColor="@color/grey_500"
- android:text="@string/you_did_not_pick_up_any_rhymes" />
- </LinearLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- android:layout_alignParentBottom="true"
- android:orientation="horizontal"
- android:background="@color/grey_50">
- <View
- android:id="@+id/view"
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:background="@color/grey_200" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@+id/view"
- android:orientation="horizontal">
- <EditText
- android:id="@+id/etEnter"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:textColor="@color/grey_800"
- android:background="@android:color/transparent"
- android:paddingStart="10dp"
- android:paddingLeft="10dp"
- android:paddingEnd="10dp"
- android:paddingRight="10dp"
- android:inputType="textPersonName"
- android:hint="@string/enter_rhyme"
- android:autofillHints="" />
- <ImageView
- android:id="@+id/btnAdd"
- android:onClick="enterWord"
- android:layout_width="35dp"
- android:layout_height="35dp"
- android:layout_weight="0"
- android:layout_gravity="center"
- android:layout_marginEnd="10dp"
- android:layout_marginRight="10dp"
- android:contentDescription="@string/add_rhyme"
- app:srcCompat="@drawable/ic_add"/>
- </LinearLayout>
- </RelativeLayout>
- </RelativeLayout>
- </RelativeLayout>
Add Comment
Please, Sign In to add comment