Skip to content Skip to sidebar Skip to footer

I Want Material Design In Pre 5.0 Device In Eclipse

I am have made an app and now i am trying to implement material design in my app. Problem is that i have made this app in eclipse. I have downloaded Android Studio too but its not

Solution 1:

First of all add appcompat_v7 support library in your project. Then use following application style:

AndroidManifest.xml

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/MyMaterialTheme" >
    ......
</application>

styles.xml

<stylename="MyMaterialTheme.Base"parent="Theme.AppCompat.Light.DarkActionBar"><itemname="android:windowNoTitle">true</item><itemname="windowActionBar">false</item><itemname="colorPrimary">@color/colorPrimary</item><itemname="colorPrimaryDark">@color/colorPrimaryDark</item><itemname="colorAccent">@color/colorAccent</item><itemname="windowNoTitle">true</item></style>

Here is my demo project for Material Design below 5.0 with Toolbar and Recycler view but its in Android Studio, you can use for reference: MaterialDesign_Part1

Hope it helps!!!

Solution 2:

You will have to use Support Material Design Library that were released 2 weeks ago.

Official documentation:

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

Here are the features of libs:

https://developer.android.com/tools/support-library/features.html

And here to install lib with eclipse:

How to add Android Support v7 libraries in eclipse?

Hope it helps!

Post a Comment for "I Want Material Design In Pre 5.0 Device In Eclipse"