如何创建有pre-棒棒糖奇巧的风格,和当地一个棒棒糖及以上的背景下选择? [英] How to create a background selector that has Kitkat style for pre-Lollipop, and native one for Lollipop and above?

查看:183
本文介绍了如何创建有pre-棒棒糖奇巧的风格,和当地一个棒棒糖及以上的背景下选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题是短暂的。

如何设置按钮和这样的背景下,将有本机外观和放大器; KitKat及棒棒堂(纹波等)的棒棒糖及以上的感觉,奇巧的风格低于

How do I set a background for buttons and such, that will have the native look&feel of Lollipop (ripple etc...) for Lollipop and above, and Kitkat style for Kitkat and below?

我问这个,使这个图书馆更好看:

I ask this to make this library look better:

https://github.com/AndroidDeveloperLB/Material$p$pferenceLibrary

推荐答案

我觉得这是在相应的价值的文件夹,宣布不同的风格成为可能。我想下面的链接可以帮助:

I think this is possible by declaring the different 'styles' in the corresponding 'values' folder. I think the following link can help:

http://developer.android.com/training/material/compatibility。 HTML#主题

这篇关于如何创建有pre-棒棒糖奇巧的风格,和当地一个棒棒糖及以上的背景下选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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