Material Design Components Site - android

Today I was Googling for "material design components" I ended up at this site:
https://material.io/components/
As I remember, I've never seen it before.
In the Android section there are instruction to use the components and ok, it seems to be the well-known Android Design Support Library:
But what intrigues me is that there are components there that are not in the design library, such as:
Back Layer Layout, Material Card and Material Button.
The docs for these classes seems to be not ready yet and the links points to nowhere, like: material button doc.
There is something in the github site.
Sorry for ignorance, but what is the purpose of this site? Is it something future or something left behind?

The Android Design Support Library was the precursor of the Material Design Components. As of the Support Library 28.0.0-alpha1 release, the Design Library now contains all of the new components introduced in the Material Design Components:
We’ve introduced a new application theme, Theme.MaterialComponents, with new attributes and updated styles for components.
We’ve added the following components:
BottomAppBar
Chip
ChipGroup
MaterialButton
MaterialCardView
While the 28.0.0-alpha1 release does contain all of the new classes, the documentation on developer.android.com does not yet contain the updates from the Design Library (keeping the docs effectively on what was publically available previously), but they are definitely there if you use that dependency.

The support libraries are now available through Google's Maven repository. We no longer support downloading the libraries through the SDK Manager, and that functionality will be removed soon..
as the Support Library Setup says. And this repository and material library within it will be offical to use.
Latest dependencies to use material components is:
com.google.android.material:material:1.0.0-alpha1
Getting started with Material Components for Android will help you to setup your project.

Related

AndroidX and Android Jetpack

As per my knowledge Androidx is itself a library, and android jetpack is a set of libraries. Does androidx is a library in Android jetpack ? Iam little bit confused about androidx and android jetpack. Can anyone explain me clearly
As per the AndroidX FAQ doc:
How are androidx and AndroidX related to Jetpack?
They are all the same thing! In a sentence, androidx is the packaging and AndroidX is the development workflow for all components in Jetpack. Jetpack is the external branding for libraries within androidx.
In more detail, Jetpack is the external branding for the set of components, tools, and guidance that improve the developer experience on Android. AndroidX is the open-source development project that defines the workflow, versioning, and release policies for ALL libraries included in Jetpack. All libraries within the androidx Java package follow a consistent set of API design guidelines, conform to SemVer and alpha/beta revision cycles, and use the Android issue tracker for bugs and feature requests.
androidx.* has been replacing the old android.support.* and android.arch.* set of libraries.
It also includes support to all the older libraries (except for the deprecated one, of course).
Android Jetpack is a suite of tools developed by Google to write applications that follow certain standards as well as ease the job of developers like us.
Part of the Android Jetpack "universe" is Room (a library that facilitates the writing of an SQL database), DataStore (currently still in beta, but soon it will replace SharedPreference for the persistence of settings when for example we set Dark mode in the app, we close it, and we expect to still have Dark mode ON when we open it back), LiveData (for asynchronous data stream), ......and others.
All this goes hand in hand with the continuous development of the Kotlin language and the never-ending usefulness of COROUTINES, just to mention one.
I hope this overview was of use to the readers.

NativeScript: Instructions on how to use Material Design on Android <5

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..

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.

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