Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7413025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:37:55+00:00 2026-05-29T06:37:55+00:00

I noticed that many people looking for the answer to same question however they

  • 0

I noticed that many people looking for the answer to same question however they always have different results and incomplete, I would like help from someone explain as simple as possible to help all users.

I will start programming an android now and wanted help, is as follows:

I have a TextView with id = value
and one SeekBar with id = seekbar.

Wanted the seekbar 0-200 than 1 in 1, showing the values ​​in TextView.
And to correct the problem of sensitivity was wondering how to put two buttons + and – to increment or decrement a.

I thank you on behalf of all my college class.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:37:55+00:00Added an answer on May 29, 2026 at 6:37 am

    You should have read the documentation before asking such a generic question. Indeed, I would like to answer to this question in layman terms. Just think about seekbar as a simple sensor. It can fire events like onProgressChanged(). Means, the interface for seekbar can tell us when the seekbar progress is changed. Thus, we can do some operations inside the callbacks provided by Android. So take a look at the code and see this is what you are looking for. This is a test application I have created for this question.

    public class SeekbarActivity extends Activity implements SeekBar.OnSeekBarChangeListener    {
        private SeekBar seekbar;
        private TextView value;
        private Button plus,minus;
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
            value = (TextView) findViewById(R.id.value);
            seekbar = (SeekBar) findViewById(R.id.seekbar);
            plus = (Button) findViewById(R.id.plus);
            minus = (Button) findViewById(R.id.minus);
            seekbar.setOnSeekBarChangeListener(this);
            seekbar.setMax(201);
            plus.setOnClickListener(new OnClickListener()   {
                @Override
                public void onClick(View v) {seekbar.setProgress((int)seekbar.getProgress() + 1);}});
            minus.setOnClickListener(new OnClickListener()  {
                @Override
                public void onClick(View v) {seekbar.setProgress((int)seekbar.getProgress() - 1);}});
        }
    
        @Override
        public void onProgressChanged(SeekBar arg0, int progress, boolean fromTouch) {
            value.setText(String.valueOf(progress));
        }
        @Override
        public void onStartTrackingTouch(SeekBar arg0) {}
        @Override
        public void onStopTrackingTouch(SeekBar arg0) {}
    }
    

    And this is the XML used for this application

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" >
        <TextView
            android:id="@+id/value"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="Progress" />
        <SeekBar
            android:id="@+id/seekbar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
        <Button
            android:id="@+id/plus"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="+" />
        <Button
            android:id="@+id/minus"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="-" />
    </LinearLayout>
    

    Feel free to ask if you have any doubt on this code.
    By the way, this is not a code generating forum! Seems like I’m breaking one of the SOF terms… 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since upgrading to 2008 I and many people here have noticed that randomly VS
I have noticed that many big(huge) sites like Google and Facebook when looking to
I've been looking at other people's JavaScript code, and I've noticed that many programmers
I have worked on SQL stored procedures and I have noticed that many people
When creating a custom view, I have noticed that many people seem to do
When creating a custom view, I have noticed that many people seem to do
I've noticed that just in the last year or so, many major websites have
I have seen on many sites the silverlight video player. I noticed that all
I've currently noticed that many people start using this model very often. Anyways, I
I noticed that many websites, even Google and some banking sites, have poorly-written HTML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.