What is the best way to implement material design in pre-lollipop devices? [closed]

岁酱吖の 提交于 2019-11-30 20:16:55

问题


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"

This dependency like here.

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


回答1:


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.

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.

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.

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




回答2:


I have used the support design library, for ripple effects and other good features use rey material library, you can also see navasmdc




回答3:


Easy way to implement material design is to use open source libraries that supports all pre-lollipop devices.

Have a look at this and this.

There are many other libraries as well. You can google it.



来源:https://stackoverflow.com/questions/31428138/what-is-the-best-way-to-implement-material-design-in-pre-lollipop-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!