Created
December 24, 2019 06:50
-
-
Save arunrkwork/06c8796f727f5a7c1fd72d9a16f37ca9 to your computer and use it in GitHub Desktop.
Handler In Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" | |
tools:context=".MainActivity"> | |
<Button | |
android:id="@+id/btnStart" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="160dp" | |
android:layout_marginLeft="160dp" | |
android:layout_marginTop="139dp" | |
android:layout_marginBottom="168dp" | |
android:text="Start" | |
app:layout_constraintBottom_toTopOf="@+id/progressBar" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<ProgressBar | |
android:id="@+id/progressBar" | |
style="?android:attr/progressBarStyleHorizontal" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:layout_marginStart="27dp" | |
android:layout_marginLeft="27dp" | |
android:layout_marginEnd="27dp" | |
android:layout_marginRight="27dp" | |
android:layout_marginBottom="344dp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@+id/btnStart" /> | |
<TextView | |
android:id="@+id/txtCount" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:textAlignment="center" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintTop_toBottomOf="@+id/progressBar" | |
tools:layout_editor_absoluteX="132dp" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment