Open anilteam opened 4 years ago
<com.warkiz.widget.IndicatorSeekBar android:id="@+id/airSeekBar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" app:isb_indicator_color="@color/gray" app:isb_indicator_text_color="@color/colorAccent" app:isb_indicator_text_size="18sp" app:isb_max="400" app:isb_min="0" app:isb_only_thumb_draggable="false" app:isb_progress="8" app:isb_seek_smoothly="false" app:isb_show_indicator="rounded_rectangle" app:isb_show_tick_marks_type="divider" app:isb_show_tick_texts="true" app:isb_thumb_drawable="@drawable/air_thumb" app:isb_tick_marks_color="@android:color/transparent" app:isb_tick_marks_size="13dp" app:isb_tick_marks_swept_hide="false" app:isb_tick_texts_color="@color/btnText" app:isb_tick_texts_size="9sp" app:isb_ticks_count="9" app:isb_track_background_color="@color/gray" app:isb_track_background_size="3dp" app:isb_track_progress_color="@color/app_blue" app:isb_track_progress_size="3dp" app:isb_track_rounded_corners="true" app:isb_user_seekable="false" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/airQtyTxt2" />
this my layout i have use app:isb_show_tick_marks_type="divider" tick mark type but when i set process it set 0
app:isb_show_tick_marks_type="divider"
` airSeekBar.customSectionTrackColor(new ColorCollector() { @Override public boolean collectSectionTrackColor(int[] colorIntArr) { colorIntArr[0] = Color.parseColor("#98DA30"); colorIntArr[1] = Color.parseColor("#F7BB03"); colorIntArr[2] = Color.parseColor("#FF8A00"); colorIntArr[3] = Color.parseColor("#EA2F10"); colorIntArr[4] = Color.parseColor("#C01A6C"); colorIntArr[5] = Color.parseColor("#C01A6C"); colorIntArr[6] = Color.parseColor("#931C5E"); colorIntArr[7] = Color.parseColor("#931C5E");
return true; //True if apply color , otherwise no change } });`
color applies
<com.warkiz.widget.IndicatorSeekBar android:id="@+id/airSeekBar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" app:isb_indicator_color="@color/gray" app:isb_indicator_text_color="@color/colorAccent" app:isb_indicator_text_size="18sp" app:isb_max="400" app:isb_min="0" app:isb_only_thumb_draggable="false" app:isb_progress="8" app:isb_seek_smoothly="false" app:isb_show_indicator="rounded_rectangle" app:isb_show_tick_marks_type="divider" app:isb_show_tick_texts="true" app:isb_thumb_drawable="@drawable/air_thumb" app:isb_tick_marks_color="@android:color/transparent" app:isb_tick_marks_size="13dp" app:isb_tick_marks_swept_hide="false" app:isb_tick_texts_color="@color/btnText" app:isb_tick_texts_size="9sp" app:isb_ticks_count="9" app:isb_track_background_color="@color/gray" app:isb_track_background_size="3dp" app:isb_track_progress_color="@color/app_blue" app:isb_track_progress_size="3dp" app:isb_track_rounded_corners="true" app:isb_user_seekable="false" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/airQtyTxt2" />
this my layout i have use
app:isb_show_tick_marks_type="divider"
tick mark type but when i set process it set 0` airSeekBar.customSectionTrackColor(new ColorCollector() { @Override public boolean collectSectionTrackColor(int[] colorIntArr) { colorIntArr[0] = Color.parseColor("#98DA30"); colorIntArr[1] = Color.parseColor("#F7BB03"); colorIntArr[2] = Color.parseColor("#FF8A00"); colorIntArr[3] = Color.parseColor("#EA2F10"); colorIntArr[4] = Color.parseColor("#C01A6C"); colorIntArr[5] = Color.parseColor("#C01A6C"); colorIntArr[6] = Color.parseColor("#931C5E"); colorIntArr[7] = Color.parseColor("#931C5E");
color applies