Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout
- android:id="@+id/task"
- android:layout_width="match_parent"
- android:layout_height="500dp"
- android:orientation="vertical"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <ImageView
- android:id="@+id/taskImage"
- android:layout_width="match_parent"
- android:layout_height="340dp"
- android:layout_weight="1"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:srcCompat="@drawable/moscow" />
- <TextView
- android:id="@+id/taskText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="Какая достопримечательность не находится в Москве?"
- android:textAlignment="center"
- android:textSize="26sp"
- app:layout_constraintTop_toBottomOf="parent" />
- </LinearLayout>
- <TableLayout
- android:layout_width="match_parent"
- android:layout_height="180dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/task"
- >
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- >
- <Button
- android:id="@+id/button1"
- android:layout_width="150dp"
- android:layout_height="70dp"
- android:onClick="btn1"
- android:text="1"
- android:layout_margin="10dp"
- />
- <Button
- android:id="@+id/button2"
- android:layout_width="150dp"
- android:layout_height="70dp"
- android:onClick="btn2"
- android:text="2"
- android:layout_margin="10dp"
- />
- </TableRow>
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
- <Button
- android:id="@+id/button3"
- android:layout_width="150dp"
- android:layout_height="70dp"
- android:onClick="btn3"
- android:text="3"
- android:layout_margin="10dp"/>
- <Button
- android:id="@+id/button4"
- android:layout_width="150dp"
- android:layout_height="70dp"
- android:onClick="btn4"
- android:text="4"
- android:layout_margin="10dp"/>
- </TableRow>
- </TableLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement