我想材质设计pre在Eclipse 5.0的设备 [英] I want Material Design in Pre 5.0 device in eclipse

查看:189
本文介绍了我想材质设计pre在Eclipse 5.0的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我取得了一个应用程序,现在我想实现材料设计我的应用程序。
问题是,我取得了这个应用程序在Eclipse中。我下载了Android的工作室太多,但其并不熟悉,我用得蚀。

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 familiar and i am use too eclipse.

我的问题是如何在设备添加材料的设计主题低于5.0。我目前有4.3对我的Galaxy S3。

My question is how to add material design theme in device lower than 5.0. I have currently 4.3 on my Galaxy S3.

任何一个可以请指导我如何实现Eclipse版本材料设计20140702

Can any one please guide me on how to achieve material design in eclipse version 20140702

问候。

推荐答案

首先在你的项目中添加appcompat_v7支持库。然后用以下申请方式:

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

AndroidManifest.xml中

AndroidManifest.xml

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

styles.xml

styles.xml

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

下面是我对低于5.0与工具栏和回收站的看法,但材质设计示范项目,它的Andr​​oid Studio中,可以借鉴:
MaterialDesign_Part1

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

希望它可以帮助!

这篇关于我想材质设计pre在Eclipse 5.0的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆