Android Control class 4th--progressbar

Source: Internet
Author: User

ProgressBar is a progress bar, which is a more commonly used control. It has an abstract subclass--absseekbar,absseekbar has two more commonly used subclasses, SeekBar, Ratingbar.

1,ProgressBar, inherit from view

ProgressBar is a progress bar whose style property is used to set how the progress bar is rendered: a horizontal progress bar or a circular progress bar.

Horizontal progress bar: @android: style/widget.progressbar.horizontal

Circular progress bar: @android: Style/widget.progressbar.inverse

      @android: Style/widget.progressbar.large

@android: Style/widget.progressbar.large.inverse

@android: Style/widget.progressbar.small

@android: Style/widget.progressbar.small.inverse

Sets the maximum value of the progress bar by Android:max or Setmax (int).

You can set the current value of the progress bar:

Android:progress or setprogress (int) sets the current value.

Incrementprogressby (int) can be positively negative based on how much the current value changes.

2,SeekBar, inherit from Absseekbar, indirectly inherit from ProgressBar

Seekbar is a progress bar that can be dragged. This is usually used to set the volume, brightness, and so on, because it can also display and set progress like ProgressBar, and can be dragged to change the progress, so it can be used as the player's progress bar.

Sets the style of the slider by Android:thumb or Setthumb (drawable).

  

3,Ratingbar, inherit from Absseekbar, indirectly inherit from ProgressBar

Star rating bar, usually used for evaluation time scoring.

Android:isindicator, which is true, cannot be modified

Android:numstars, how many stars are there in total?

Android:rating, the default star

Android:stepsize, at least how many stars can be changed at a time

Android Control class 4th--progressbar

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.