I have an application which is designed using Material Design 2. I have not submitted that to Playstore yet.
I am now trying to upgrade that application to Material Design 3. AFAIK, the themes etc present in Material Design 3 will not work on below Android 12 devices. So, I am not able to understand how to support Material Design 2(for below Android 12) and Material Design 3(for above Android 12) in my app.
I understand that this must be some basic question but I am not sure how to achieve this. Do I submit different APKs to Playstore with MD2 and MD3 or within code, do I somehow check the version and decide what to apply?
No, you don't need to submit different versions to Google Play. Take a look at migration article from material blog.
Related
I am a high school student developing an app for the SAT. Some questions will have answer choices that have only text, but some questions have answer choices that only have images. How would I solve this issue? I don't want to create an activity for each question.
Thank You so much!
Use the Design Support library.
The Design support library was created to facilitate the creation of applications that use components and behaviors characteristic of Material Design in a way compatible with versions of Android 2.1 and higher (API 7+). With it we can use components like Snackbar or FAB without having to worry (a lot) about users in older versions of Android because all the work has already been done by Google.
I am working on an android application. I am going to design User Interface and i have to use material design in it. I want to know what is the difference between Android Material Design UI and Android UI without material design ?
How should i use material design in my application.
You simply have to provide UI which fits the suggestions and rules from https://material.io/guidelines/
That resource does describe, for example, minimum sizes for UI elements, padding, margin, etc.
For the newest SDK versions of android most of these rules are already applied into default ui elements in Android Studio.
Material design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. See The documentation
Material Design can be used in API Level 21 (Android 5.0) and newer or via the v7 appcompat library, which is used on virtually all Android devices.
In Material Design lot of new things were introduced like Material Theme, new widgets, custom shadows, vector drawables and custom animations
For more information Go here
There are lot of UI libraries available which you can use in your application.Find out here
How to use Material Design on Android < 5? I added app.gradle to app/App_Resources/Android. This is what I have in there:
dependencies {
compile "com.android.support:appcompat-v7:21.0.+"
compile "com.android.support:design:23.2.1"
}
But still no luck getting Material Design slider and textfield. Could someone give precise instructions on how to add Material Design in NativeScript apps. Better a link to a repo with an example. Especially I'm interested in slider and textfield elements. Thanks.
Based on the guidance in developer.android.com here :
To use material design in your Android apps, follow the guidelines defined in the material design specification and use the new components and functionality available in Android 5.0 (API level 21) and above.
So basicly the native API is supporting Material design with version 5 and above so you can't implement it on lower versions.
Check also this link for further information about maintaining compatibility in different android versions.
EDIT: There are many plugins that are bringing material-design functionallity in NativeScript (for example cardview) - however notice that material design is more concept based on different rules so one technique can be considered material desing if used in place and anti-material if used wrong..
I want a clean action bar which support from api 10 - api 21 to implement in my app. I have gone through different tutorials, developer documents from google and some examples provided at the developer site. Do we have simple solution for a clean code and easy to follow method for enabling Actionbar in an android app, (preferably which can works well with material design and features in lollipop without affecting anything bad in earlier versions). Also I need to create a navigation tab in Actionbar, the sample code provided on the developer site is not working for me.
Any suggestions, writes ups, tutorial links are appreciated. Thanks.
One of the most useful official introductory posts is this one:
AppCompat v21 - Material Design for Pre-Lollipop Devices!
This shows you how to backport the new Toolbar all the way back to Gingerbread, as they have done with the Play Store app.
See also the Material Design on Android Checklist post which is also great.
And don't miss the How to upgrade your app’s design from Holo to Material Design article!
Love Material Design ....
Try using the Toolbar from the Android Support Libary v7.
Toolbar in Gingerbread
Considering Android Design Guidelines announcement what is the best way to make apps which are compliant with them on Android 2.x phones? E.g. what is the best way to implement the ActionBar pattern?
ActionbarSherlock is a starting point. It includes the compatibility libraries from Google and comes provided as a project rather than JAR offering greater flexibility, should you need to alter anything. Version 4 is on the way which will also include ICS stuff.
As far as I am aware I believe ABS is backward compatible to 1.6, and makes use of the minSdkVersion and targetSdkVersion. It uses an extended version of the holo theme to create a light and dark version that includes the extra ActionBar goodness, which in turn you can extend to style your app.
I recorded a tutorial on YouTube to get people started.
I think it's better to use the compatibilty libraries directly, instead of another library based on those. Additionally, refer to the Google I/O App as stated at the bottom of the first link I gave. You can find the best practices about implementing a UI for several devices with compatibility libraries.
I found ActionBarSherlock to be pretty good. It will emulate ActionBar on older devices and use the native one on modern ones. It's an extension to Android compatibility library - so you will also get fragments and other ICS stuff.