Skip to content

Instantly share code, notes, and snippets.

@siscofran999
Created June 18, 2022 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siscofran999/96364cdb8626f3322012f03e6b6f4e94 to your computer and use it in GitHub Desktop.
Save siscofran999/96364cdb8626f3322012f03e6b6f4e94 to your computer and use it in GitHub Desktop.
view pada tutorial medium
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
tools:context=".MainActivity">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:srcCompat="@drawable/park_min_young"
android:visibility="invisible"
android:scaleType="centerCrop"/>
<ProgressBar
android:id="@+id/progress"
android:layout_width="100dp"
android:layout_height="100dp"
android:rotation="-90"
android:progress="10"
android:progressDrawable="@drawable/bg_color_gradient_progress_bar"
android:indeterminateOnly="false"
android:layout_centerInParent="true" />
<TextView
android:id="@+id/txvProgress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="1%"
android:textSize="20sp"
android:textColor="@color/white"
android:layout_centerInParent="true"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment