Closed lucasharada closed 6 years ago
When I use CrystalRangeSeekbar using the entire width, it shows normally. But when I try to place 2 TextViews on the left and right of the Seekbar, the Seekbar doesn't show. See code below to replicate:
<RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/txt_min" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:text="MIN" /> <com.crystal.crystalrangeseekbar.widgets.CrystalRangeSeekbar android:id="@+id/temperature_rangeseekbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toEndOf="@+id/txt_max" android:layout_toLeftOf="@+id/txt_min" android:layout_toRightOf="@+id/txt_max" android:layout_toStartOf="@+id/txt_min" app:bar_color="#000" app:bar_highlight_color="#2434AD" app:data_type="_float" app:left_thumb_color="#3caf9a" app:left_thumb_color_pressed="#349986" app:max_value="42.0" app:min_value="35.0" app:right_thumb_color="#c44949" app:right_thumb_color_pressed="#b43a3a" /> <TextView android:id="@+id/txt_max" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" android:text="MÁX" /> </RelativeLayout>
When I use CrystalRangeSeekbar using the entire width, it shows normally. But when I try to place 2 TextViews on the left and right of the Seekbar, the Seekbar doesn't show. See code below to replicate: