Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Use Material Design in Android App?

I've gone to the Android Developer documentation to see how I can use material design, here:

https://developer.android.com/training/material/theme.html

and here:

https://developer.android.com/training/material/get-started.html

Essentially, I would like for someone to summarize how to set up/use material design, because I feel like there is a lot of information on the developer docs, and I can't seem to wrap my mind around it. If you'd rather give me a link to a guide created by someone else, that'd be helpful as well.

I'm also using API level 19 (target SDK version 19) and from what I can see, I'll need to use com.android.support:cardview-v7:21.0.+

I'm also using Android Studio, and not eclipse.

EDIT: I would like to be able to use material design for devices that are not running Android 5.0 Lollipop, because according to the Android distribution data, there are less than 0.1% of devices running Lollipop: Android Distribution Data

like image 918
freddiev4 Avatar asked Jan 09 '15 21:01

freddiev4


People also ask

What is Material Design in Android?

Material design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. To use material design in your Android apps, follow the guidelines defined in the material design specification and use the new components and styles available in the material design support library.

Can we use material UI in Android Studio?

In order to use Material Components for Android, and the latest versions of the Support Libraries, you will have to install Android Studio 3.5 or higher to build with Android 10, and update your app's compileSdkVersion to 29.

Should you use Material Design Android?

If the app is built mainly for Android devices, the answer is a no-brainer, Material Design is a good choice. Your app will feel like a native Google app, and users will have a sense of familiarity (and trust!) while using your app. Even if it isn't for Android, there are many use cases where it could work.


1 Answers

Install SDK platform of Android 5.0 SDK then update your Support Library and Support Repository to the latest version via the SDK-Manager.

Take a look at this link for creating material app

http://developer.android.com/training/material/index.html

With support libraries, you can provide similar behaviour on older devices like:

  • Using the Material Theme
  • Subset of UI widgets like
    • EditText
    • Spinner
    • RadioButton

Also take a look at android design support library.

More information :

  • https://chris.banes.me/2014/10/17/appcompat-v21/
  • http://android-developers.blogspot.co.uk/2014/10/appcompat-v21-material-design-for-pre.html
  • https://developer.android.com/training/material/compatibility.html

But for using some concepts like FloatingActionButton in your application you can use this library : https://github.com/makovkastar/FloatingActionButton

More libraries available here

https://android-arsenal.com/

like image 96
Saeed Masoumi Avatar answered Oct 10 '22 11:10

Saeed Masoumi