Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams What about the progress fill? What is your requirement for the progress? Should it be started from center always? Shashika Dec 18, 2013 at 6:23 there should be no progress fill, thumb should be at center always so that scrolling to left gives negative value and to right gives positive value user2861651 Dec 18, 2013 at 6:26
<SeekBar
        android:id="@+id/seekBar1"
        android:progressDrawable="@android:color/background_dark"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:progress="50"
        android:max="100" />

And use int progress = mSeekBar1.getProgress()-50; to get the progress.

android:progressDrawable="@android:color/background_dark" should do it. You may use your own drawable instead of this. – Shashika Dec 18, 2013 at 8:22 I want my minimum value to be 50 and maximum value to be 150. Setting maximum was straightforward but minimum is not setting whatsoever. Can you help me regarding that? Thanks! – Tushar Gogna Dec 17, 2014 at 6:59 friend I want show -95 to +95.because the signal strength between this value.can you tell how to show this? – reegan29 Mar 26, 2015 at 8:55

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.