Learn Python


Click to Learn Python3

Tuesday, August 28, 2012

Seek Bar or Progress Bar or Slide Bar or Slider

This bar will be like this, the name for this bar is seek bar



In the xml file we need to mention like this to call the seek bar


xml
<SeekBar
android:id="@+id/seekbar"
android:layout_width="fill_parent"   
android:layout_height="wrap_content"   
android:layout_margin="10px"  
/>  


The java class file will be like this


Seek.java
package com.android.seek;

import android.app.Activity;
import android.media.AudioManager;
import android.os.Bundle;
import android.widget.SeekBar;
import android.widget.TextView;
import android.widget.SeekBar.OnSeekBarChangeListener;

public class Seek extends Activity {
    /** Called when the activity is first created. */
  AudioManager audioManager;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        final TextView reading = (TextView) findViewById(R.id.reading);
        SeekBar seekBar = (SeekBar)findViewById(R.id.seekbar);
        seekBar.setMax(100);
        seekBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
   
   @Override
   public void onStopTrackingTouch(SeekBar seekBar) {
   }
   
   @Override
   public void onStartTrackingTouch(SeekBar seekBar) {
    // TODO Auto-generated method stub
   }
   
   @Override
   public void onProgressChanged(SeekBar seekBar, int progress,
     boolean fromUser) {
    reading.setText("Processing "+progress+"% ");
   }
  });
        }
}



The code is fulling checked so you can run the code after downloading it itself.

You can download the full source code


Download source


Have a good day.

92 comments:

  1. Thanks for such a nice tutorial.I want a customized seekbar in my application with images.Could you please help me with full detail like you have described the above example .


    Thanks

    Raam

    ReplyDelete
  2. Our Android Development comes to you cost effectively with assurance for quality and performance

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. Awesome update.kindly update every information.thanks in advance............this is right one

      Website Design Company India | Website Design Service India

      Delete
  4. hey Guys i had example based on RatingBar in Android Studio.
    how to create simple RatingBar and How to Create Material Design RatingBar in Android.

    I had done all Example in Basic with Material Design so you can do work fine.

    http://exandroidstudio.blogspot.in/2015/11/rating-bar-material-design-tips.html

    ReplyDelete
  5. Wow, I landed on this page while I was doing a research on The Importance of Admission Essay and I have found it to be an interesting and informative site that is worth reading its contents and commenting on it. Thanks for sharing the information; I have found it to be very informative and educative.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. This information you provided in the blog that is really unique I love it!! Thanks for sharing such a great blog. Keep posting..
    Android training in Noida
    Android training institute in Noida
    Android course in Noida

    ReplyDelete


  8. NICE for giving a chance to share ideas for your comuty i really thanks for that great post.
    visit our web

    ReplyDelete
  9. Good Post. I like your blog. Thanks for Sharing.....
    Android Training in Noida

    ReplyDelete
  10. very nice .great article because we found many information in this article.you can check Costco Photo Promo Code

    ReplyDelete
  11. I was looking this form last week and finally got it here. Thanks for explain with example for seek bar or progress bar. I'm Android app programmer and always like to solve my queries from the blogs like yours.

    ReplyDelete
  12. Hey Nice Blog!!! Thank you for sharing information. Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!

    Android Mobile App Developement Company
    Graphic and Logo Designing Services
    Best Web Hosting Provider Company in India

    ReplyDelete
  13. Quickbooks enterprise support Get Quickbooks Enterprise Support from certified Quickbooks Technical Team (+1 (833) 400-1001). We are available 24*7 for your service. Our Professional experts will resolve all issues of Quickbooks.(+1 (833) 400-1001)

    ReplyDelete


  14. Quickbooks enterprise support number Contact Quickbooks Enterprise Support Number to resolve any of your Quickbooks errors(+1 (833) 400-1001). Our Certified Quickbooks team is available 24*7. (+1 (833) 400-1001) to solve your Quickbooks issues.

    ReplyDelete
  15. Hp Printer Contact Support is the leading HP Printer Support service provider that dedicatedly focuses on delivering World class technical support to the customers owing printers, scanners, Photocopy machine and similar plotters. We own the technical expertise in handling the growing demand of expert Printer Support services across the world. We have a team of technical experts who provide you instant HP printer support to you to help you in resolving your issues with the printers.We are committed to bridging the gap between the printer problems and respective solutions by providing a best of online technical support services that are readily available round the clock. We adhere to serve our customers with the high quality and result oriented printer repair service that will depart them with complete satisfaction for printer use. In this run of our services, we thus acquired a lot of trust and support from our clients and customers. With our HP printer support guidance, you can clear out all your queries regarding printer issues and make its uses for future also. You just need to call us on our HP printer support customer service number+1-855-381-2666 that is made toll-free for you and you can able to connect with us anytime.
    Hp Printer Contact Support is the leading HP Printer Support service provider that dedicatedly focuses on delivering World class technical support to the customers owing printers, scanners, Photocopy machine and similar plotters. We own the technical expertise in handling the growing demand of expert Printer Support services across the world. We have a team of technical experts who provide you instant HP printer support to you to help you in resolving your issues with the printers.We are committed to bridging the gap between the printer problems and respective solutions by providing a best of online technical support services that are readily available round the clock. We adhere to serve our customers with the high quality and result oriented printer repair service that will depart them with complete satisfaction for printer use. In this run of our services, we thus acquired a lot of trust and support from our clients and customers. With our HP printer support guidance, you can clear out all your queries regarding printer issues and make its uses for future also. You just need to call us on our HP printer support customer service number+1-855-381-2666 that is made toll-free for you and you can able to connect with us anytime.

    ReplyDelete
  16. Canon Printer Support Phone Number
    Canon Printer Support Phone Number provides a wide range of comprehensive online technical support for its users 24/7 and not in any means we are associated with the product manufacturer. For any instance, if you are in need of any technical support we deal in all Canon computer, laptop, printer, and troubleshooting errors Feel free to contact us on our toll-free number +1 (855)-924-8222 at any time we offer versatile 24/7 assistance.

    ReplyDelete
  17. HP Printer Support Phone Number provides a wide range of comprehensive online technical support for its users 24/7 and not in any means we are

    associated with the product manufacturer. For any instance, if you are in need of any technical support we deal in all HP computer, laptop, printer,

    and troubleshooting errors Feel free to contact us on our toll-free number +1 (855)-924-8222 at any time we offer versatile 24/7 assistance.
    HP Printer Technical Support Number

    ReplyDelete

  18. QuickBooks Support team at +1-855-686-6166 you can get the best answers for all the problems in QuickBooks. This software provides you tools that are extremely beneficial for almost every industry type in the world.Quickbooks Support Phone Number+1-855-686-6166 can fix all issues which are relate with quickbooks pro, quickbooks premier, quickbooks enterprise, quickbooks pos or quickbooks accountant. We have 24*7 support team for,

    QuickBooks Pro
    QuickBooks Premier
    QuickBooks Enterprise
    QuickBooks Point of Sale
    QuickBooks Payroll
    QuickBooks Accountant

    Several mind-blowing features are contained by each of these versions. Any hindrance caused by any QuickBooks error is taken care of by our QuickBooks Support team.

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. Thanks for sharing such beautiful information with us.Durbin Labs provides Mobile and Web Application and Software Development Solution.
    More info Android app development

    If you are looking for personalized option and mass compatibility in your mobile app then android App is the one for you. Android app platform has something everything for everyone and allows unprecedented personalization options. Android is the leading OS in the market covering 90% of the market share. It is supported to other platforms and flexible.
    We build android apps for games, productive, business, social and others. We ensure the cross version compatibly of Android app so that app runs smooth in any version.

    ReplyDelete
  21. I am so happy after reading your blog. It’s very useful blog for us.

    Angular 7 Corporate training

    ReplyDelete
  22. Gemini exchange is available on both the platforms – iOS and android which are widely used by users. Sometimes users are unable to operate their Gemini wallet app in their devices and get surrounded by a plethora of queries. If you are looking for solution to end them in a minute and also, to get solutions permanently so that you can face the error if occurs in the future, you need to call on Gemini Support Number which is functional all the time and the best way to do errorless trading on both the platforms. Gemini Support Number

    ReplyDelete
  23. Login to the Blockchain account simply involves your registered email ID along with the password. If you are unable to login to the account and getting a problem, the problem is either you have forgotten your email ID/password or your account is facing some technical issues. If you have errors and looking for solution, you can always contact the team to avail solutions and get rid of it. You need to call on Blockchain customer support number which is functional and working all the time to help users in every possible way. Blockchain Support Number

    ReplyDelete
  24. Login to the Blockchain account simply involves your registered email ID along with the password. If you are unable to login to the account and getting a problem, the problem is either you have forgotten your email ID/password or your account is facing some technical issues. If you have errors and looking for solution, you can always contact the team to avail solutions and get rid of it. You need to call on Blockchain customer support number which is functional and working all the time to help users in every possible way. Blockchain Support Number

    ReplyDelete
  25. Great Job!! Very good writting..... I hope you post new article very soon. I am waiting for your next post.

    Looking a professional developer for Android App Development and iOS App Development to build custom mobile application. Please contact us now....!!

    ReplyDelete
  26. Thanks for the sharing. such a very good post! you can also visit our site We are
    Website Development Company in India

    ReplyDelete
  27. Ordinarily, when a HP printer has a blunder, the reason is plainly appeared on the screen. Nonetheless, in different cases, the reason for the HP printer blunder might be a finished riddle. Rather than going on a pointless pursuit to locate the precise answer for the printer mistake, it’s smarter to attempt a progression of routine investigating steps first. In the event that these means neglect to fix the printer mistake, you may discover the arrangement on the HP site.


    HP Printer Doesn’t Print Color Correctly

    HP Printer Error Code 0X83C000A

    Hp Printer Error Code 0xc4eb9343

    Top 10 HP Printing Problems & How To Fix Them

    How To Fix HP Printer Errors

    ReplyDelete
  28. Nice post, Thanks to sharing for valuable information.

    Mobile App Development Company

    ReplyDelete
  29. iWebservices is a leading mobile app development company , Get the most robust android app development services.

    Visit:- https://bit.ly/2XdLMPe/

    ReplyDelete
  30. It is the best blog I have read today. It has very good information with Images, thank you friend to give such a useful infomation. I really like it. We provides CCNA Training in Noida, CCNP Training Noida, CCIE online Classes in Noida, Palo Alto Training Noida, CCNA Cyber Security Training in Noida, Checkpoint Training Noida etc.

    ReplyDelete
  31. To catch up with the latest trends accepted by customers and to excel in your business, you need a Mobile App Designing Phoenix Az to develop a mobile app that matches your requirements and business needs.

    ReplyDelete
  32. This comment has been removed by the author.

    ReplyDelete
  33. Thnak you for sharing this blog about android. I have also a blog if you want to know more about android then go for this link.
    Android course

    ReplyDelete
  34. This could be a file, an asset, a library book, a warehouse shelf face, a blood or DNA sample or even a patient in hospital. Label and bar code printers can be Industrial or Tabletop, Desktop and Portable. Best bar code printer in India

    ReplyDelete
  35. I absolutely love that it looks so beautiful on you This is a great post it was very informative. I look forward in reading more of your work. Also I made sure to bookmark your website. I enjoyed every moment of reading it. More info please visit :-
    Mobile Apps Development Company in Gurgaon
    IOS Apps Development Company in Gurgaon
    Android Apps Development Company in Gurgaon
    Software Company in Gurgaon
    Web Development Company Gurgaon
    Web Design and Development company in Gurgaon
    Web Designing Company in Gurgaon

    ReplyDelete
  36. This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. lulu box

    ReplyDelete
  37. i love reading this article so beautiful!!great job! android app development

    ReplyDelete
  38. The blog are the best that is extremely useful to keep.
    I can share the ideas of the future as this is really what I was looking for,
    I am very comfortable and pleased to come here. Thank you very much!
    Free Source Code
    Free Source code For Academic
    Academic Project Download
    Academic Project Free Download
    Freelancer In India

    ReplyDelete
  39. Much obliged to you for sharing such significant data. It will be valuable for us later on. Great, keep it up and continue composing. Read more about
    Advanced seo techniques

    ReplyDelete
  40. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.
    Php projects with source code
    Online examination system in php
    Student management system in php
    Php projects for students
    Free source code for academic
    Academic projects provider in nashik
    Academic project free download

    ReplyDelete
  41. I reading your post. This is very nice article.I want to twite to my followers.
    If you need baclink servicesBacklink work is here please contact me

    ReplyDelete
  42. Thank you for sharing this valuable information. Keep it update.
    second hand mobile phones for sale

    ReplyDelete
  43. Great, this is really amazing thanks for sharing with us. Visit Ogen Infosystem for professional Website Designing Company in Delhi, India at an affordable price.
    Best Website Designing Company in India

    ReplyDelete
  44. Nice your Blog

    Best Website Designing Company in Delhi India

    https://www.dakshajawebsolutions.com


    https://www.dakshajawebsolutions.com/website-designing-company-in-laxmi-nagar/


    https://www.dakshajawebsolutions.com/website-designing-company-in-ghaziabad/

    https://www.dakshajawebsolutions.com/website-designing-company-in-shahdara/



    https://www.dakshajawebsolutions.com/website-designing-company-in-gurgaon/

    https://www.dakshajawebsolutions.com/digital-marketing-company-in-delhi-india/

    ReplyDelete
  45. Nice. I am really impressed with your writing talents and also with the layout on your weblog. Appreciate, Is this a paid subject matter or did you customize it yourself? Either way keep up the nice quality writing, it is rare to peer a nice weblog like this one nowadays. Thank you, check also event management and friendly introvert

    ReplyDelete
  46. Really Great, love to found this blog. If you need creative Website Designing and SEO Services in Delhi, India visit Ogen Infosystem. Here you will get well professional web designers and seo experts.
    Best Website Designing Company in India

    ReplyDelete
  47. With today's modern society, the demanding needs of people are increasing. Not only beauty, eating and playing, but choosing a child's bedroom also requires a lot of factors. Because the bedroom is a place to rest, relax, study and sometimes also play a place for your baby. More: Phòng ngủ trẻ em, Giường tầng bé traiNội thất trẻ em

    ReplyDelete
  48. Best Pre-Wedding & Wedding Film Production services. We offer cinema-like quality with innovative Best Wedding Videographer in indore
    & seamless editing.

    ReplyDelete
  49. This is frequently an awesome post. this educational article give genuinely best quality information. 파워볼

    ReplyDelete
  50. I hope you also visit my blog and give us a good opinion. 온라인카지노

    ReplyDelete
  51. best crm in india
    Your article is so insightful and detailed that I got to learn new concepts and develop my skills.. thank you so much

    ReplyDelete
  52. user experience UK

    i4 Acmmos Media has internal UX teams with top quality UX solutions and user research and Our team of UX researchers work on UX Research and Architecture and UI Design. Our user experience for web, mobile and industrial apps, research and user interface design.

    Contact us at info@i4acmmosmedia.com or call us at +44 20 8432 4513 for more information.

    ReplyDelete
  53. This comment has been removed by the author.

    ReplyDelete
  54. This comment has been removed by the author.

    ReplyDelete
  55. yes, its really appealing and approaching content for reading and implementation purpose. ERP Software Dubai

    ReplyDelete
  56. This comment has been removed by the author.

    ReplyDelete
  57. Nice blog and absolutely outstanding. You can do something much better but i still say this perfect.
    Dry Needling Services in Surrey

    ReplyDelete