Skip to content

Instantly share code, notes, and snippets.

@cami7ord
Created February 3, 2016 23:28
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 cami7ord/bee727251a41472a768d to your computer and use it in GitHub Desktop.
Save cami7ord/bee727251a41472a768d to your computer and use it in GitHub Desktop.
Layout xml progress.
<!-- PROGRESS INDICATOR -->
<RelativeLayout
android:id="@+id/live_status_wheel"
android:layout_marginTop="24dp"
android:layout_width="280dp"
android:layout_height="280dp"
android:layout_gravity="center_horizontal">
<View
android:layout_width="160dp"
android:layout_height="160dp"
android:layout_centerInParent="true"
android:background="@drawable/circular_white_view">
</View>
<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:indeterminate="false"
android:max="100"
android:progress="100"
android:progressDrawable="@drawable/circle_progress_background" />
<ProgressBar
android:id="@+id/circle_progress_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:max="100"
android:rotation="-90"
android:indeterminate="false"
android:progressDrawable="@drawable/circle_progress_foreground" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center_horizontal"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/live_status_current_status"/>
<TextView
android:id="@+id/live_status_current_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textStyle="bold"/>
</LinearLayout>
</RelativeLayout>
<!-- /PROGRESS INDICATOR -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment