Advertisement
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:tools="http://schemas.android.com/tools"
- android:orientation="vertical"
- android:id="@+id/activity_main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="8dp"
- tools:context="com.example.orestis.part1.MainActivity">
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/linearLayout">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- style="@style/mystyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/score"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- android:id="@+id/textView" />
- <TextView
- style="@style/mystyle"
- android:id="@+id/score"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_toEndOf="@+id/textView"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- style="@style/mystyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/highest_score"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- android:id="@+id/textView2" />
- <TextView
- style="@style/mystyle"
- android:id="@+id/highestScore"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_toEndOf="@+id/textView2"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <TextView
- style="@style/mystyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/streak"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- android:id="@+id/textView3" />
- <TextView
- style="@style/mystyle"
- android:id="@+id/streak"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_toEndOf="@+id/textView3"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- </RelativeLayout>
- </LinearLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:orientation="horizontal"
- android:padding="40dp"
- android:id="@+id/relativeLayout">
- <Button
- style="@style/buttonStyle"
- android:id="@+id/heads"
- android:onClick="setHeads"
- android:text="@string/heads" />
- <Button
- style="@style/buttonStyle"
- android:id="@+id/tails"
- android:onClick="setTails"
- android:layout_alignParentEnd="true"
- android:layout_alignParentTop="true"
- android:text="@string/tails" />
- </RelativeLayout>
- <TextView
- style="@style/mystyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_above="@+id/relativeLayout2"
- android:layout_centerHorizontal="true"
- android:text="@string/coin_toss_result" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_above="@+id/relativeLayout"
- android:layout_alignParentStart="true"
- android:orientation="horizontal"
- android:id="@+id/relativeLayout2">
- <TextView
- style="@style/mystyle"
- android:id="@+id/result"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- />
- </RelativeLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement