ProgressBar of the "Android" open source project UI control subtotals

Source: Internet
Author: User

The treasure trove of Android development is more and more, I develop the components in need, mainly refer to Trinea's masterpiece Android Open source project subtotal (including the vast majority of the following), CSDN directly to use! The most popular Android open source projects are also available directly on the CSDN! Ten Material design Open source project, benefit, but, there are too many categories of items, not every project has a preview, not easy to find what is the most want, and some projects are not easy to import, I put the same kind of demo to do an app, for everyone to download reference. However, the order did not press Trinea's masterpiece, the current need for what controls, priority to write which, first from the recently used ProgressBar start, ProgressBar related works all from Trinea summary, and in Trinea order given.

Because my demo is a collection of multiple sample, then each project's demo is involved in which files, may feel more chaotic, if no special instructions, only with the project name of the activity and the corresponding layout. Because all libraries do the same thing, they may conflict when they customize properties, which I slightly modify some of the property names, preceded by a preview of each item, followed by a description of each item, including whether I made any changes.

Comprehensive demo app download for all ProgressBar effects, corresponding to Android studio project download.

1. Smoothprogressbar

2. Progresswheel

3. Android-square-progressbar

4. Holocircularprogressbar

5. Progressbutton

6. Googleprogressbar

7. Thprogressbutton

8. Numberprogressbar

9. circularprogressdrawable

Ten. Circular-progress-button 11. Waveview

1. Smoothprogressbar

Project Address: Https://github.com/castorflex/SmoothProgressBar

Project Description: This level progress bar is indeed very beautiful, but in the sample also defined a lot of style, eye sportive, I think the author of these several styles in the demo is already very good-looking, can not need to customize. This project has two libraries, one is a horizontal progress bar, and the other is a circular progress bar, both of which are self-contained in MAVEN, circular progress bar I was cited Maven, but the level of progress bar of the library I was introduced in the local, and then the demo style moved to the library inside, It is only possible to paste the components of layout in this way. If you define your style in sample, you can refer to the official library directly:

Compile ' com.github.castorflex.smoothprogressbar:library:1.0.0 'compile ' Com.github.castorflex.smoothprogressbar:library-circular:1.0.2 '

The relevant documents for this project are:

Org.zhangfc.android.pb.smoothprogressbar.spbmainactivity@layout/spb_activity_ Mainorg.zhangfc.android.pb.smoothprogressbar.spbmakecustomactivity@layout/spb_activity_custom

2. Progresswheel

Project Address: Https://github.com/Todd-Davies/ProgressWheel

Project Description: This is relatively simple, it is a circular progressbar, the library is imported as the project library. Can.

3. Android-square-progressbar

Project Address: Https://github.com/mrwonderman/android-square-progressbar

Interface Description: Https://github.com/mrwonderman/android-square-progressbar/wiki/Usage

Project Description: This item shows the progress around the picture. Its official demo is very messy, the document is very scattered, I basically did not look at the official demo, directly according to a few examples on the document to write the demo. On the import of the library, the original author did not upload this project to maven, so the latest version can only be introduced locally. Another person put the project in the Maven repository, but the version is not up-to-date. When writing this article, the version number in the Maven repository is 1.3.0, and the latest 1.4.0 is a custom style for text, Custom bitmap support 1.3.0 are not, notice the custom bitmap will throw a nullpointerexception, open the library Squareprogressbar, in the last method Setimagebitmap inside add to the image The assignment of the view is good:

 Public void Setimagebitmap (Bitmap Bitmap) {    = (ImageView) Findviewbyid (r.id.imageview1);    Imageview.setimagebitmap (bitmap);}

Therefore, it is recommended to use the local library. But if you still want to use the MAVEN repository version, first specify the MAVEN location:

Repositories {    maven {        url ' https://raw.github.com/elodieferrais/wonder-libraries/master '        name ' Github-wonder-libraries '    }}

Then introduce in dependencies:

Compile ' net.yscs.android:square_progressbar:1.3.0 '

The resource files related to this project are

Drawable-hdpi/sqpb_city.jpg

4. Holocircularprogressbar

Project Address: Https://github.com/passsy/android-HoloCircularProgressBar

Item Description: Android4.1 clock app style. The library of this project can only be imported locally, the demo Zhongyuan author also added two theme in the menu, for the simplicity of the demo, I deleted the relevant code, the effect can directly see the official demo pictures. Of course, the code for setting up the theme is removed, and the demo has a lot of control over the animation. I changed the progress attribute to circular_progress because of conflicting properties and other items.

5. Progressbutton

Project Address: Https://github.com/f2prateek/progressbutton

Document Address: http://f2prateek.com/progressbutton/

Project Description: Show progress with Pushpin, originally this project directly referenced MAVEN's library no problem, but because I put all the ProgressBar together, there are some custom attributes conflict, so I can only import locally, modify the property name. When you are actually using this project, specify the location of the library in the Gradle file:

Compile ' com.f2prateek:progressbutton:[email protected] '

When using custom attributes, I changed circlecolor to Pbtn_circlecolor,progress to Pbtn_progress,max for Pbtn_max.

6. Googleprogressbar

Project Address: Https://github.com/jpardogo/GoogleProgressBar

Project Description: Google-style ProgressBar, directly referenced Maven library, the demo provides a choice of color UI, simplified period, only side-by-side put three styles of ProgressBar, how to set the color in the code is very clear, You can modify it in the Getprogressdrawablecolors method.

7. Thprogressbutton

Project Address: Https://github.com/torryharris/TH-ProgressButton

Project Description: With a circular progress display button, the project itself does not distinguish between the library and the sample, the author only suggested that the two classes directly put in their own projects can be used. I have also extracted this library as a project library introduction.

8. Numberprogressbar

Project Address: Https://github.com/daimajia/NumberProgressBar

Project Description: Direct maven into the library, with a digital indicator of the progress bar, you can customize the thickness before and after the number.

9. circularprogressdrawable

Project Address: https://github.com/Sefford/CircularProgressDrawable

Project Description: A better-looking library, directly into the MAVEN library, the circular display progress.

Ten. Circular-progress-button

Project Address: Https://github.com/dmytrodanylyk/circular-progress-button

Item Description: Circular button that needs to be displayed as progress when converting to a circular progress bar. Directly into the MAVEN library.

Resource files: In addition to activity and layout, there are three custom animation files:

drawable/complete_state_selector.xmldrawable/error_state_selector.xmldrawable/idle_state_ Selector.xml

Waveview

Project Address: Https://github.com/john990/WaveView

Project Description: The ripple effect view, which can be used as a progress bar without progress values, because it conflicts with the properties of other items, change the progress property to Wave_progress,library from module introduction.

ProgressBar of the "Android" open source project UI control subtotals

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.