I have a SeekBar
in a RelativeLayout
whose width is equal to the screen width.
I applied layout_width=\"match_parent\"
to the
Try to define following with the SeekBar
in xml:
android:padding="0dp"
android:paddingStart="0dp"
android:paddingEnd="0dp"
Worked for me.
Just solved this problem in my app. The thing is, even though you didn't set the seekBar padding, there may be some paddings(paddingLeft, paddingTop, paddingRight, paddingBottom, paddingStart, paddingEnd) in the theme your appTheme extends. Set these paddings to 0dp, it should work fine.
Before you post your xml,I guess that your RelativeLayout has lines as following
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
This means your RelativeLayout do not fill up the screen,seekbar is fill up in its parent layout(RelativeLayout).So you can not get view you want.