Skip to content

Instantly share code, notes, and snippets.

@MostafaGad1911
Created June 11, 2023 13:34
Show Gist options
  • Save MostafaGad1911/4ffa8aba12737aafeb16659184a66eea to your computer and use it in GitHub Desktop.
Save MostafaGad1911/4ffa8aba12737aafeb16659184a66eea to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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="70dp"
android:layout_height="wrap_content"
android:background="@android:color/white"
android:orientation="vertical"
android:layout_marginRight="10dp"
android:layout_marginLeft="10dp"
android:gravity="center"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/mProgressLayout"
android:layout_width="80dp"
android:layout_height="80dp"
android:background="@drawable/circle_fill_white"
>
<ProgressBar
android:id="@+id/mSalaryProgressbar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:indeterminate="false"
android:progress="4"
android:progressDrawable="@drawable/circular_progress"
android:secondaryProgress="100" />
<TextView
android:id="@+id/salary_value_txt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/colorBlacke"
android:layout_gravity="center"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:gravity="center"
tools:text="@string/sar" />
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/salary_txt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/sar"
android:gravity="center"
android:textColor="@android:color/black"
android:layout_marginTop="5dp"
/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment