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.

enter image description here

<?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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -