Android AppCompat ProgressDialog? - android

I want to style all the android.app.ProgressDialogs in my app on pre-Lollipop versions to make them look like Material Design.
Maybe I'm missing something obvious: I'm looking for android.support.v7.app.ProgressDialog, but there is no such class in Android AppCompat library.
Should I write my own implementation of ProgressDialog from scratch? What is the reason it's not included in AppCompat library?

Widget.AppCompat.* styles can be used starting from API 7.
There is currently no AppCompat style for the progress dialog since it relies on AnimatedVectorDrawable.
However, it's possible to write a custom drawable that has the same behavior and apply it to your ProgressDialog.
check out GIT

You can use other cool compatibility libraries besides AppCompat.
There are cool libraries which brings fully animated Material Design components to pre-Lolipop Android on Github. The images are from Rey5137's "Material" library. You better use one of such libraries rather that writing from scratch.

Related

Is AppCompat libraries still neccessary?

With the number of users moving to 7+ android version, is AppCompat still necessary or can I use the new libraries instead. This is specially related to styling. I want to switch to the Material design library for styling. What i'm asking is, is it recommend to use the new Material design library versus AppCompat?
The Material Design Components are built on top of AppCompat, so while you may use Material styles in place of AppCompat, you still need AppCompat under the hood to provide a consistent base across all API levels. This also means you need to continue to extend AppCompatActivity, etc.

In Android, how can I use TextInputLayout and Snackbar without the Design Support Library

I am developing a new Android project with a minimum SDK set at 5.0. I want to use material design, but it seems like many of the material design components are only included in the support library. I really want to theme the app as Material, not AppCompat.
When I try to add a layout from the support library, I get an error every time. What do I need to do to remove the support library dependencies?
The Snackbar is only available in the design support library - it is not baked into versions of Android like EditText/ImageView views.

Implement material design in android 5.0 and lower

I want to use Material Design in different devices including(i.e) Android 5.1 and Android 4.4.2.
So, after 5.0 android uses Material by default. But what about other devices?
Where I can get samples of such project? How to implement Button, side K and FAB.
Actually, what is the best and common way to implement material? I know that there are some libs to handle my task, but maybe there is the better way.
Please help me to figure out this issue.
Thanks.
You have to use AppCompat Library v21 for Material Design in Pre-Lollipop Device.
http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html
Additional, want to include ActionButton, Collapsible Toolbar, Floating EditText etc. are available with Design Support Library by Android Developers.
http://android-developers.blogspot.com/2015/05/android-design-support-library.html
You can use the AppCompact support library for that.
http://android-developers.blogspot.in/2014/10/appcompat-v21-material-design-for-pre.html

Libraries for Material Design

Where can I get list of libraries/resources which help for incorporating Material Design in pre-lollipop devices? A link for a single library you are familiar with could help. I am familiar with the following
https://github.com/makovkastar/FloatingActionButton
https://github.com/keithellis/MaterialWidget
https://github.com/navasmdc/MaterialDesignLibrary
http://www.google.co.uk/design/spec/material-design/introduction.html and
AppCompat v21
You can take look at https://android-arsenal.com/. It's much easier to find something there.
Here's mine:
https://github.com/ZieIony/Carbon. The good thing about the library is that is supports realtime, animated shadows and ripples (soon there will be borderless mode as well) back to Android 2.1. The bad thing is that it's still under development, so there are some things missing.
#makata
Just try to change with Android Studio, you can get Material Design easily.
Here is the android official design library.
You need a single line of codes to add to your build.gradle as a dependency
compile 'com.android.support:design:22.2.0'
Here is the blog for the material design library.
Here is the sample blogpost from a GDE (Thailand)

Is it possible for my app to appear material design on pre lollipop phones?

I am thinking of converting my app to material design, but at the moment only a small percentage of my users are on Lollipop.
My question is, is it possible for users with kitkat and jelly bean to see the Material design?
Yes. But you will have to use latest v7 support lib to do that. Chris Banes explained it on his blog:
https://chris.banes.me/2014/10/17/appcompat-v21/
Animations on Lollipop like Ripple and similar are not included in the support lib.
There is no foolproof approach for that. You will have to use appCompat and you can get some of "materialish" features. For others like Floating Action Button, ripple etc. use Material design library. I have been using it for 3 months and found it quite useful for UI development.
you can create widget using Design Support Library (official)
http://android-developers.blogspot.in/2015/05/android-design-support-library.html
Before implementation we must following steps:-
1.Add latest support design dependency - compile 'com.android.support:design:22.2.0'
2.Your activity is extending with AppCompatActivity
List of 3rd party library`s
https://github.com/wasabeef/awesome-android-ui
Use AppCompat (from android.support) and Design (from android.support)
These libraries are Google-official

Categories

Resources