Controls that show progress in Android

Source: Internet
Author: User

Controls that show progress
-------------------------
ProgressBar: Progress bar
Core attributes include:
1) Style: Indicates the display style of the progress bar
2) Android:max: Indicates the maximum scale of the progress bar
3) Android:progress: Indicates the current progress of the progress bar
To control how the progress is displayed:
void setprogress (int progress)
If the progress bar is not configured as a horizontal progress bar, it will be displayed as a circular progress bar, which is not a concept of progress, and is typically used for applications such as shutting down, updating the system, etc. that are completely uncertain, and that do not require user progress.

SeekBar: The progress bar can be dragged, the core properties are:
1) Android:max: Indicates the maximum scale of the progress bar
2) Android:progress: Indicates the current progress of the progress bar
To control how the progress is displayed:
void setprogress (int progress)
Seekbar drag-and-drop monitoring:
Need to configure Onseekbarchangelistener for Seekbar, usually rewrite Onstoptrackingtouch () to implement the business management after drag-and-drop completion

Controls that show progress in Android

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.