MaterialProgressBar alternatives and similar packages
Based on the "Material Widget" category.
Alternatively, view MaterialProgressBar alternatives based on common mentions on social networks and blogs.
-
material-design-icons
Material Design icons by Google -
material-dialogs
😍 A beautiful, fluid, and extensible dialogs API for Kotlin & Android. -
MaterialDrawer
The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design. -
MaterialDesignLibrary
This is a library with components of Android L to you use in android 2.2 -
MaterialViewPager
A Material Design ViewPager easy to use library -
android-floating-action-button
Floating Action Button for Android based on Material Design specification -
RippleEffect
Implementation of Ripple effect from Material Design for Android API 9+ -
Carbon
Material Design implementation for Android 4.0+. Shadows, ripples, vectors, fonts, animations, widgets, rounded corners and more. -
material-menu
Animations for Android L drawer, back, dismiss and check icons -
materialish-progress
A material style progress wheel compatible with 2.3 -
material-ripple
Android L Ripple effect wrapper for Views -
MaterialDialog
An Android library for conveniently building Material Design Dialog in Android version 2.2 ~ L. -
MaterialNavigationDrawer
Navigation Drawer Activity with material design style and simplified methods -
MaterialList
An Android library aimed to get the beautiful CardViews that Google shows at its official design specifications -
material-range-bar
Android widget for selecting a range of values. -
LDrawer
Android drawer icon with material design animation -
MaterialTabs
Custom Tabs with Material Design effects. It requires 14+ API and android support v7 (Toolbar) -
snackbar
[DEPRECATED] Android Library that implements Snackbars from Google's Material Design documentation. -
MaterialEverywhere
Showcase of the new AppCompat 21, which includes new Material Theme, working in pre-21 devices. -
Horizontal Calendar
A material horizontal calendar view for Android based on RecyclerView -
AndroidMaterialDesignToolbar
Android Sample Project with Material Design and Toolbar. -
MaterialPowerMenu
A demo of the power menu with Reveal and other animations -
CircularProgressView
A Material style circular progress bar for Android -
Material Dialogs for Android 📱
📱Android Library to implement animated, 😍beautiful, 🎨stylish Material Dialog in android apps easily. -
material-drawer
Custom drawer implementation for Material design apps. -
ZDepthShadowLayout
Android - draw z-depth shadow of MaterialDesign -
android-materialshadowninepatch
Provides 9-patch based drop shadow for view elements. Works on API level 9 or later. -
uberprogressview
:hourglass_flowing_sand: An android progress view developed after taking inspiration from Uber app. -
Android-Material-circular-button
Animated Material circular button -
AdvancedMaterialDrawer
A Gmail-like Material Drawer implementation -
Android-DialogFragments
Various DialogFragments for Android.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of MaterialProgressBar or a related project?
README
MaterialProgressBar
[Icon](sample/src/main/launcher_icon-web.png)
Material Design ProgressBar
with consistent appearance on Android 4.0+.
Why MaterialProgressBar?
- Consistent appearance on Android 4.0+.
- Correct tinting across platforms.
- Able to remove the intrinsic padding of framework
ProgressBar
. - Able to hide the progress background of framework horizontal
ProgressBar
. - Able to show a determinate circular progress.
- Used as a drop-in replacement for framework
ProgressBar
.
Preview
[Sample APK](//github.com/zhanghai/MaterialProgressBar/releases/download/v1.6.1/sample-release.apk)
Android 4.4.4
[Android 4.4.4](screenshot/android_4_4_4.png)
Samsung Android 5.0.1 (native implementation fails to tint)
[Samsung Android 5.0.1](screenshot/android_5_0_1_samsung.png)
Android 6.0.1
[Android 6.0.1](screenshot/android_6_0_1.png)
Integration
Gradle:
implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'
Usage
You can either simply use the [MaterialProgressBar
](library/src/main/java/me/zhanghai/android/materialprogressbar/MaterialProgressBar.java) widget, or set drawables from this library on a regular ProgressBar
.
Using Widget
Simply replace your ProgressBar
with MaterialProgressBar
, and remember to apply corresponding style and attribute for correct behavior.
For example, to create an indeterminate horizontal MaterialProgressBar
:
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true"
app:mpb_progressStyle="horizontal"
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal" />
In order to make your ProgressBar
take the correct and consistent size on all versions, you will always need to use one of the styles from this library. The trick inside it is android:minWidth
, android:maxWidth
(and height) that controls the drawable size.
Widget.MaterialProgressBar.ProgressBar
Widget.MaterialProgressBar.ProgressBar.Horizontal
- And more size and no-padding variants in [styles.xml](library/src/main/res/values/styles.xml)
Available custom attributes:
app:mpb_progressStyle
: Style of progress drawable:circular
orhorizontal
. Defaults tocircular
.app:mpb_setBothDrawables
: Whether both determinate and indeterminate drawables should be set on this progress bar. Defaults tofalse
(for performance). Should be set totrue
if you want to use both of the backported determinate and indeterminate drawables.app:mpb_useIntrinsicPadding
: Whether progress drawable should use its intrinsic padding. Defaults totrue
.app:mpb_showProgressBackground
: Whether progress drawable should show a progress background. Defaults totrue
for horizontal progress drawable,false
otherwise.app:mpb_determinateCircularProgressStyle
: Style of determinate circular progress drawable: normal or dynamic. Defaults tonormal
.
8 tint-related attributes such as app:mpb_progressTint
and app:mpb_progressTintMode
are also supported so that they can control the tinting of progress drawables. The default tint color is ?colorControlActivated
, and the default tint mode is src_in
.
For a detailed example, you can refer to the [sample app's layout](//github.com/zhanghai/MaterialProgressBar/blob/master/sample/src/main/res/layout/main_activity.xml), where you can find examples such as removing progress padding or background.
Using Drawable
Three Material Design drawables are backported to Android 4.0 (API 14), so you can create one and set it directly on your ProgressBar
.
- [
HorizontalProgressDrawable
](library/src/main/java/me/zhanghai/android/materialprogressbar/HorizontalProgressDrawable.java) - [
IndeterminateHorizontalProgressDrawable
](library/src/main/java/me/zhanghai/android/materialprogressbar/IndeterminateHorizontalProgressDrawable.java) - [
CircularProgressDrawable
](library/src/main/java/me/zhanghai/android/materialprogressbar/CircularProgressDrawable.java) - [
IndeterminateCircularProgressDrawable
](library/src/main/java/me/zhanghai/android/materialprogressbar/IndeterminateCircularProgressDrawable.java)
For example, to set a IndeterminateHorizontalProgressDrawable
on a ProgressBar
.
progressBar.setIndeterminateDrawable(new IndeterminateHorizontalProgressDrawable(this));
You will also need to set a style from this library as in the section above.
For example, to define an indeterminate horizontal ProgressBar
.
<ProgressBar
android:id="@+id/indeterminate_horizontal_progress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="true"
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal" />
Don't forget to create and set the drawable as above.
You can also customize the behavior of these drawables by calling setShowBackground()
and setUseIntrinsicPadding()
. Tint-related methods setTint()
, setTintList()
and setTintMode()
are also backported so that you can use them directly, but remember to take these drawables as their actual type or TintableDrawable
because VM won't be able to find these methods on Drawable
for legacy platforms.
If you want to support API level < 18, you'll need to workaround a canvas limitation as in here; Using MaterialProgressBar
does this automatically.
For a detailed example, you can refer to the onCreate()
method of the old sample's [MainActivity
](//github.com/zhanghai/MaterialProgressBar/blob/7529ea854a04207fcbf768aa574110e49c511867/sample/src/main/java/me/zhanghai/android/materialprogressbar/sample/MainActivity.java) and its layout [main_activity.xml](//github.com/zhanghai/MaterialProgressBar/blob/7529ea854a04207fcbf768aa574110e49c511867/sample/src/main/res/layout/main_activity.xml).
ProGuard
The AAR of this library has already included a ProGuard configuration file to make ObjectAnimator
work properly.
Older versions
Neither Support v4 nor AppCompat v7 backported animation API to versions prior to ICS, and the NineOldAndroids library has already been deprecated since people should all be using minSdkVersion="14"
now, so versions older than ICS are not supported.
License
Copyright 2015 Hai Zhang
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*Note that all licence references and agreements mentioned in the MaterialProgressBar README section above
are relevant to that project's source code only.