Getting Started with Android. Progress Bar ProgressBar

ProgressBarProgressBar

===============


Main properties of the progress bar


max max;

current progress progress;

The value of the secondary progress SecondrayProgress

        <ProgressBar
	    android:layout_width="wrap_content"
	    android:layout_height="wrap_content"
	    style="?android:attr/progressBarStyleHorizontal" //Progress bar type

	    android:max="200" //Maximum value 200
	    android:progress="150"//The current progress is 150
	    />
====================================

//Seekbar, a draggable progress bar


The class implements the listener OnSeekBarChangeListener interface to monitor where the progress is now (triggered when the user drags the progress bar)


=======================================

//RatingBar, the progress bar of the rating, by showing a few stars


main attribute

Number of stars: numStars

Current level: progress



The class implements the listener OnRatingBarChangeListener interface


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327029172&siteId=291194637