First Android 5.0 Project

To create an Android 5.0 project, you must install the latest tools and SDK packages. Use the following steps to set up a Android project that targets Android 5.0:

Install Android tools 23.0.5 or later as shown below:

lollipop1

Also, install the latest Android 5.0 SDK packages (API 21 or later):

lollipop2

For more information about using the Android SDK Manager, see SDK Manager.

Now Create a new Android project. When you create an Android project, be sure to configure the version settings for Android 5.0, navigate to Project Options > Build > General and set Target framework to Android 5.0 (Lollipop) or later. Under Project Options > Build > Android Application, set minimum and target Android version to Automatic – use target framework version. Then configure an emulator or an Android device to test your app.

Now Lets talk about Material design. Material design is a comprehensive approach to visual, interaction and motion design for the multi-screen world. Android 5.0 Lollipop and the updated support libraries help you to create material UIs. Here’s a rundown of some of the major elements of material design and the APIs and widgets that you can use to implement them in your app. Typography is one of the method of using material design approach.

Android 5.0 updates the system font Roboto to beautifully and clearly display text no matter the display size. A new medium weight has been added and new TextAppearance styles implement the recommended typographic scale for balancing content density and reading comfort. For instance you can easily use the ‘Title’ style by setting android:textAppearance=”@android:style/TextAppearance.Material.Title”. These styles are available on older platforms through the AppCompat support library, e.g. “@style/TextAppearance.AppCompat.Title”.

For Example

1.) Create a Android project and name it FirstLollipopProject.
2.) Set the target and minimum API level 21.
3.) Now write following into your manifest:

 

 

 

4.) Write following into your main.xml:

 

 

 

5.) Write following into mainActivity.java:

 

 

 

MaterialLight