Skip to content

HorizontalProgressView

Add: Version 0.2.0

Quick start

Add: Version 0.2.0

<com.ave.vastgui.tools.view.progress.HorizontalProgressView
    android:layout_width="match_parent"
    android:layout_height="50dp" />
<com.ave.vastgui.tools.view.progress.HorizontalTextProgressView
    android:layout_width="match_parent"
    android:layout_height="50dp" />
<com.ave.vastgui.tools.view.progress.LineTextProgressView
    android:layout_width="match_parent"
    android:layout_height="50dp" />

Default style

HorizontalProgressView

Drawable for background

Add: Version 0.2.0   Update: Version 0.5.4

Background can be set by horizontal_progress_background_drawable or calling setProgressBkDrawable .

binding.horizontalProgressView.setProgressBkDrawable(R.drawable.background)
<com.ave.vastgui.tools.view.progress.HorizontalProgressView
    ...
    app:horizontal_progress_background_drawable="@drawable/background" />

Image background

Drawable for progress

Add: Version 0.2.0   Update: Version 0.5.4

Progress can be set to the drawable by horizontal_progress_drawable or calling setProgressDrawable .

binding.horizontalProgressView.setProgressDrawable(R.drawable.progress)
<com.ave.vastgui.tools.view.progress.HorizontalProgressView
    ...
    app:horizontal_progress_drawable="@drawable/progress" />

Image progress

Stroke

Add: Version 0.2.0   Update: Version 1.5.2

Stroke of the progress can be set by horizontal_progress_stroke_width or calling mStrokeWidth .

binding.horizontalProgressView.strokeWidth = 0f
<com.ave.vastgui.tools.view.progress.HorizontalProgressView
    ...
    app:horizontal_progress_stroke_width="0dp" />
Width 0dp Width 5dp
Image background Image background

HorizontalTextProgressView

Height of progress

Add: Version 0.5.5   Update: Version 1.5.2

The height of progress can be set by horizontal_text_progress_height or calling progressHeight .

binding.horizontalTextProgressView.progressHeight = 15f.DP
<com.ave.vastgui.tools.view.progress.HorizontalTextProgressView
    ...
    app:horizontal_text_progress_height="15dp" />
Height 15dp Height 25dp
Height 15dp Height 25dp

Text margin

Add: Version 0.5.5   Update: Version 1.5.2

Text margin can be set by horizontal_text_progress_text_margin or calling textMargin .

binding.horizontalTextProgressView.textMargin = 10f.DP
<com.ave.vastgui.tools.view.progress.HorizontalTextProgressView
    ...
    app:horizontal_text_progress_text_margin="10dp" />

Text margin

Text box color

Add: Version 0.5.5   Update: Version 1.5.2

Color-int of the text box can be set by horizontal_text_progress_box_color or calling textBoxColor .

binding.horizontalTextProgressView.textBoxColor = ColorUtils.colorHex2Int("#e84118")
<com.ave.vastgui.tools.view.progress.HorizontalTextProgressView
    ...
    app:horizontal_text_progress_box_color="#e84118" />

Text margin

LineTextProgressView

Height of progress

Add: Version 0.5.5   Update: Version 1.5.2

The height of progress can be set by linetext_progress_height or calling progressHeight .

binding.lineTextProgressView.progressHeight = 15f.DP
<com.ave.vastgui.tools.view.progress.LineTextProgressView
    ...
    app:linetext_progress_height="15dp" />
Height 15dp Height 25dp
Height 15dp Height 25dp

Text margin

Add: Version 0.5.5   Update: Version 1.5.2

Text margin can be set by linetext_progress_text_margin or calling textMargin .

binding.lineTextProgressView.textMargin = 10f.DP
<com.ave.vastgui.tools.view.progress.LineTextProgressView
    ...
    app:linetext_progress_text_margin="10dp" />

Text margin

Text box color

Add: Version 0.5.5   Update: Version 1.5.2

Color-int of the text box can be set by linetext_progress_box_color or calling textBoxColor .

binding.horizontalTextProgressView.textBoxColor = ColorUtils.colorHex2Int("#e84118")
<com.ave.vastgui.tools.view.progress.LineTextProgressView
    ...
    app:linetext_progress_box_color="#e84118" />

Text margin

Sample code

Sample code