Android的材料设计上奇巧(或更低)的设备 [英] Android Material Design on KitKat (and lower) devices

查看:83
本文介绍了Android的材料设计上奇巧(或更低)的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要发展我校作为项目的Andr​​oid应用程序。

I'm going to develop an android application in our school as a project.

我要使用新的材料设计由谷歌,但我知道它仅适用于Android的L器件。 杰克·安德伍德近日发布了名为今天的日历的日历,这是在材质和风格上的奇巧和较低的设备上运行。

I want to use the new Material Design by Google but i know its only available on Android-L Devices. Jack Underwood has recently released the calendar called "Today Calendar", which is in the Material Style and running on Kitkat and lower Devices.

我知道,动作条的高度比老一个和抽屉式导航切换又有了新的风格有点大。因此一个人...

I know that the Actionbar height is a bit bigger than the older one and the navigation drawer toggle has a new style. And so one ...

我如何实施呢?

祝商祺!

推荐答案

目前在Android-L包含材料主题只有在Android-L释放它的工作原理。

Currently the Android-L contains the Material Theme which works only on Android-L release.

您可以建立一个材料样式没有这个主题。 例如:

You can build a Material Style without this Theme. For example:

  • 您可以使用自定义动作条(这是一个customView)用纯色,没有阴影和与navdrawer图标insted的标准图标的应用程序。

  • you can use a custom ActionBar (it is a customView) with a solid color, without shadow and with the navdrawer icon insted of standard icon app.

您可以建立与下面的动作条一的LinearLayout具有相同颜色的子标题栏。

You can build a subheader bar with a LinearLayout below the actionBar with the same color.

您可以使用一个浮圈浮动操作按钮(和PNG阴影)

You can build a Floating Action Button with a floating circle (and a shadow in png)

等等...

我们不知道什么是可行的旧版本。可能是一些作为新类的工具栏将在支持库可用(它将semplify的动作条)。 我建议你​​等待一个月的时间。

We don't know what will be available for older releases. May be something as the new class Toolbar will be available in support library (and it will semplify the actionbar). I suggest you waiting a month.

这篇关于Android的材料设计上奇巧(或更低)的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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