android - Why are there spaces on the left and right hand side of my seekbar? -
i working on seekbar
, have found 1 issue. default space present on left , right hand side. need seekbar full width. did match_parent
, fill_parent
didn't work.
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <seekbar android:id="@+id/seek_bar_controller" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="0dp" /> </relativelayout>
you can follow snapshot reference, on both left , right hand sides space present.
please kindly go through post , suggest solution.
to remove need use android:thumboffset="20dp"
,
try below code :
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <seekbar android:id="@+id/seek_bar_controller" android:layout_width="match_parent" android:layout_height="wrap_content" android:thumboffset="20dp" /> </relativelayout>
Comments
Post a Comment