I have this layout that looks like this:
What I want to do is make the width of the progress bar indicated by the arrow thinner, if there is any way to do it at runtime it would be perfect, Thank you very much
<?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"
android:background="@drawable/fotos">
<RelativeLayout
android:id="@+id/relativeLayout"
android:layout_width="464dp"
android:layout_height="764dp"
android:layout_alignParentBottom="true"
app:layout_constraintBottom_toBottomOf="parent"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="8dp">
<ImageButton
android:id="@+id/start"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:elevation="0dp"
app:srcCompat="@drawable/push"
tools:ignore="ContentDescription,InefficientWeight,UnusedAttribute" />
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
tools:ignore="ObsoleteLayoutParam" />
</RelativeLayout>
</android.support.constraint.ConstraintLayout>
If you are using a native style:
This could not be done, you should even consider that your
ProgressBar
may look different on the various operating systems.The option would be to create a custom style:
Change ProgressBar Color