如何在Android App中使用Material Design? [英] How to Use Material Design in Android App?
问题描述
我已经查看了Android Developer文档,以了解如何使用材质设计:
I've gone to the Android Developer documentation to see how I can use material design, here:
https://developer.android.com/training/material/theme.html >
在这里:
https://developer.android.com/training/material/get-started.html
从本质上讲,我想让某人总结一下如何设置/使用材质设计,因为我觉得开发人员文档中有很多信息,而且我似乎无法全神贯注于此. 如果您想给我一个其他人创建的指南的链接,那也将有所帮助.
Essentially, I would like for someone to summarize how to set up/use material design, because I feel like there is a lot of information on the developer docs, and I can't seem to wrap my mind around it. If you'd rather give me a link to a guide created by someone else, that'd be helpful as well.
我还在使用API级别19(目标SDK版本19),从我所看到的情况中,我将需要使用com.android.support:cardview-v7:21.0.+
I'm also using API level 19 (target SDK version 19) and from what I can see, I'll need to use com.android.support:cardview-v7:21.0.+
我也在使用Android Studio,而不是日食.
I'm also using Android Studio, and not eclipse.
我希望能够为未运行Android 5.0 Lollipop的设备使用材料设计,因为根据Android分布数据,运行Lollipop的设备不到0.1%:
I would like to be able to use material design for devices that are not running Android 5.0 Lollipop, because according to the Android distribution data, there are less than 0.1% of devices running Lollipop: Android Distribution Data
推荐答案
安装Android 5.0 SDK
的SDK平台,然后通过SDK-Manager将支持库和支持存储库更新为最新版本.
Install SDK platform of Android 5.0 SDK
then update your Support Library and Support Repository to the latest version via the SDK-Manager.
查看此用于创建重要应用程序的链接
Take a look at this link for creating material app
http://developer.android.com/training/material/index.html
借助支持库,您可以在较旧的设备上提供类似的行为,例如:
With support libraries, you can provide similar behaviour on older devices like:
- 使用材质主题
- UI小部件的子集,例如
-
EditText
-
Spinner
-
RadioButton
- Using the Material Theme
- Subset of UI widgets like
EditText
Spinner
RadioButton
还请参见 Android设计支持库.
更多信息:
- https://chris.banes.me/2014/10/17 /appcompat-v21/
- http://android-developers.blogspot.co.uk/2014/10/appcompat-v21-material-design-for-pre.html
- https://developer.android.com/training/material/compatibility.html
- https://chris.banes.me/2014/10/17/appcompat-v21/
- http://android-developers.blogspot.co.uk/2014/10/appcompat-v21-material-design-for-pre.html
- https://developer.android.com/training/material/compatibility.html
但是要在应用程序中使用诸如
FloatingActionButton
之类的概念,可以使用以下库: https://github.com/makovkastar/FloatingActionButtonBut for using some concepts like
FloatingActionButton
in your application you can use this library : https://github.com/makovkastar/FloatingActionButton更多可用的库
这篇关于如何在Android App中使用Material Design?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
-