在预棒棒糖设备中实施材料设计的最佳方法是什么? [英] What is the best way to implement material design in pre-lollipop devices?

查看:57
本文介绍了在预棒棒糖设备中实施材料设计的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在材料设计上充分利用我的应用程序.它也应该支持棒棒糖之前的设备.我尝试使用一个在此处找到支持库.

I have to make my app fully in material design. It should support pre-lollipop devices as well. I tried with one support library found here.

它可以正常工作,但在像涟漪效应之类的效果看来却很慢.在某些文章中,我发现我们可以使用

It works fine, but seems to be slow in effects like ripple effects. In some articles, I found we can use

compile "com.android.support:appcompat-v7:21.0.+1"

此依赖项像这里.

在旧设备上实施材料设计的正确方法是什么? 我想使用诸如浮动动作"按钮之类的重要物品.

What is the right way to implement material design on older devices? I want to use material items, like Floating action button and all.

推荐答案

MaterialDesignLibrary似乎已被报废,报告了150多个问题.它还以与其他库的冲突,缺乏支持和不良的窗口小部件实现而闻名.

MaterialDesignLibrary by navasmdc seems to be forgoten with 150+ issues reported. It's also known for its conflicts with other libraries, lack of support and poor widget implementation.

基本上,这取决于您想要实现的目标.大多数材料功能过于沉重,无法在较旧的平台上使用.如果您希望使用FloatingActionButton,工具栏,RecyclerView和主题,可以使用设计支持库和Google的AppCompat.

Basically it depends on what would you like to achieve. Most of material features is too heavy to be used on older platforms. If you wish to have FloatingActionButton, Toolbar, RecyclerView and theming, you can use the Design Support Library and AppCompat from Google.

如果您希望有阴影,涟漪和其他阴影,则应寻找开放源代码库. Ray的lib 是一个很好的例子.查看 awesome-android Android阿森纳.两者都有一个很好的材料库列表.

If you wish to have shadows, ripples and others, you should look for open-source libraries. Ray's lib is a very good example. Check out awesome-android and Android Arsenal. Both have a good list of material libraries.

我也有自己的图书馆.它被称为 Carbon ,并将大多数实质性功能向后移植到Android 2.2 +.

I have my own library as well. It's called Carbon and it backports most of material features to Android 2.2+.

这篇关于在预棒棒糖设备中实施材料设计的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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