Initialize BubbleSeekBar in XML
masterYou can add BubbleSeekBar to your layout files using the com.xw.repo.BubbleSeekBar class. Use the app: namespace for custom attributes.
Common attributes include:
app:bsb_max: Maximum value.app:bsb_min: Minimum value.app:bsb_progress: Current progress.app:bsb_section_count: Number of sections.app:bsb_track_color: Color of the main track.app:bsb_second_track_color: Color of the second track.app:bsb_bubble_color: Color of the progress bubble.app:bsb_show_thumb_text: Whether to show text on the thumb.app:bsb_show_section_text: Whether to show text for sections.
<com.xw.repo.BubbleSeekBar
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:bsb_bubble_color="@color/color_red_light"
app:bsb_bubble_text_color="@color/colorPrimaryDark"
app:bsb_max="50.0"
app:bsb_min="-50"
app:bsb_progress="0"
app:bsb_second_track_color="@color/color_red"
app:bsb_section_count="5"
app:bsb_section_text_position="bottom_sides"
app:bsb_show_progress_in_float="true"
app:bsb_show_section_mark="true"
app:bsb_show_section_text="true"
app:bsb_show_thumb_text="true"
app:bsb_track_color="@color/color_red_light"/>