How to make SeekBar take up full width of parent

后端 未结 4 1898
野性不改
野性不改 2021-02-08 00:55

I have a SeekBar in a RelativeLayout whose width is equal to the screen width.

I applied layout_width=\"match_parent\" to the

4条回答
  •  故里飘歌
    2021-02-08 01:31

    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.

提交回复
热议问题