Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.ConstraintLayout 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:background="@android:drawable/presence_online"
- tools:context=".MainActivity">
- <ImageButton
- android:id="@+id/imageButton"
- android:layout_width="87dp"
- android:layout_height="81dp"
- android:layout_marginStart="6dp"
- android:layout_marginTop="6dp"
- android:onClick="nextActivity"
- android:scaleType="fitXY"
- android:src="@android:drawable/btn_dialog"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:ignore="SpeakableTextPresentCheck" />
- <Button
- android:id="@+id/btnClick"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="50dp"
- android:onClick="handleClick"
- android:text="Click"
- android:textSize="34sp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent" />
- <TextView
- android:id="@+id/tvCount"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="0"
- android:textSize="96sp"
- android:textStyle="bold"
- app:layout_constraintBottom_toTopOf="@+id/btnClick"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/imageButton" />
- <Button
- android:id="@+id/btnReset"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="6dp"
- android:layout_marginEnd="6dp"
- android:onClick="handleResetClick"
- android:text="Reset"
- android:textSize="24sp"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement