简体   繁体   English

Android设计支持库

[英]Android Design Support Library

I have found this after a google search about the android design support library. 我在Google搜索有关android design support库后找到了这个

It states: "Android Design Support Library brings a number of material design components that are compatiable [sic] with all Android 2.1 or higher devices." 它指出:“ Android设计支持库带来了许多与所有Android 2.1或更高版本设备兼容的材料设计组件。”

I am wondering if this means that the android design support library should only be used with pre-lollipop devices or if it is the same thing as using material design in api-21 now. 我想知道这是否意味着android设计支持库仅应与棒棒糖之前的设备一起使用,或者是否与现在在api-21中使用材质设计相同。

Thanks for your help! 谢谢你的帮助!

The Design Support Library only provides some components introduced by Material Design. 设计支持库仅提供了Material Design引入的某些组件。

To use the Material Design theme, you have to use AppCompat Support Library (or set your minSdkVersion to 21 or higher). 要使用“材料设计”主题,您必须使用AppCompat支持库(或将minSdkVersion设置为21或更高)。

So even if you are developing for API 21+, you still won't have access to those components (Floating Action Button, Snackbar, NavigationView, ...), as they are not included in Android. 因此,即使您正在为API 21+开发,您仍将无法访问这些组件(浮动操作按钮,小吃栏,NavigationView等),因为它们未包含在Android中。

You can get more information about the Design Support Library in the official announcement . 您可以在官方公告中获得有关设计支持库的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM