Skip to content

Instantly share code, notes, and snippets.

@st235
Last active March 12, 2023 13:19
Show Gist options
  • Save st235/a96ccccb7b98d6cfe87933acfa73d7c2 to your computer and use it in GitHub Desktop.
Save st235/a96ccccb7b98d6cfe87933acfa73d7c2 to your computer and use it in GitHub Desktop.
[HSE] [My first Android application] Step 1: ProgressBar layout
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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">
<com.github.st235.circularprogressbar.CircularProgressBar
android:id="@+id/timer_progress"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:padding="32dp"
app:cpb_progress="1.0"
app:cpb_progressBackgroundColor="#EEEEEE"
app:cpb_progressBarColor="#EF5350" />
<TextView
android:id="@+id/timer_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="sans-serif-medium"
android:textColor="#2e2e2e"
android:textSize="42sp"
tools:text="25:00" />
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment