Skip to content

Instantly share code, notes, and snippets.

@Smarshal21
Forked from ssaurel/activity_main.xml
Created June 20, 2022 16:32
Show Gist options
  • Save Smarshal21/d632709181f0cebb96d2ae10a2448828 to your computer and use it in GitHub Desktop.
Save Smarshal21/d632709181f0cebb96d2ae10a2448828 to your computer and use it in GitHub Desktop.
Step Counter Fitness App in Kotlin on the SSaurel's Blog
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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="com.ssaurel.stepcounter.MainActivity">
<TextView
android:id="@+id/stepsLbl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="108dp"
android:text="Steps"
android:textSize="50sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/stepsValue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="48dp"
android:text="0"
android:textSize="35sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/stepsLbl" />
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment