Is it possible to increase the height of the line inside the progress bar Android

Viewed 4672

Is it possible to increase the height of the line inside the progress bar ? enter image description here

5 Answers

In activity_main.xml

in ProgressBar section

change

style="?android:attr/progressBarStyleHorizontal"

to

style="@android:style/Widget.ProgressBar.Horizontal"

Just with android:scaleY="4f" ! you can Increase this to 7f and the height be larger !

 <androidx.appcompat.widget.AppCompatSeekBar
            android:id="@+id/seekbar_deadline"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:maxHeight="@dimen/margin_20"
            android:minHeight="8dp"
            android:scaleY="4f"
            app:layout_constraintTop_toBottomOf="@+id/constraint_reason"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:layout_marginTop="@dimen/margin_24"
            android:layout_marginEnd="@dimen/margin_16"
            android:progressTint="@color/green_blue"
            android:progress="30"
            android:layoutDirection="rtl"
            app:layout_constraintCircleRadius="@dimen/padding_8"
            android:backgroundTint="@color/card_dialog_background"
            android:thumbTint="@color/transparent"
            android:layout_marginStart="@dimen/margin_16"
            />

enter image description here

Related