Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout 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:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:context=".PlayActivity">
- <TextView
- android:id="@+id/tvScore"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_margin="6dp"
- android:background="#CCFFCC"
- android:text="0 / 0"
- android:textAlignment="center"
- android:textColor="#C62828"
- android:textSize="30sp"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/tvNo1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="TextView"
- android:textAlignment="center"
- android:textSize="20sp"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/tvOp"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="TextView"
- android:textAlignment="center"
- android:textSize="20sp"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/tvNo2"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="TextView"
- android:textAlignment="center"
- android:textSize="20sp"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/tvEqual"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="----------------------------"
- android:textAlignment="center"
- android:textSize="20sp"
- android:textStyle="bold" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <EditText
- android:id="@+id/etAnswer"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="3"
- android:ems="10"
- android:hint="your answer"
- android:inputType="number"
- android:textAlignment="center"
- android:textSize="20sp"
- android:textStyle="bold" />
- <Button
- android:id="@+id/btnCheck"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:onClick="checkAnswer"
- android:text="check" />
- </LinearLayout>
- <ImageView
- android:id="@+id/imgImage"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:srcCompat="@drawable/ic_launcher_background" />
- </LinearLayout>
Add Comment
Please, Sign In to add comment