简体   繁体   English

Android数据表:是否存在?

[英]Android Data table : does it exist?

Android design documentation tells about "Data tables", which offer a lot of interesting features ( https://material.google.com/components/data-tables.html ). Android设计文档介绍了“数据表”,其中提供了许多有趣的功能( https://material.google.com/components/data-tables.html )。 Unfortunately, in the latest version of Android studio as of 25:10:2016, "Data table" component is not implemented. 不幸的是,在截至25:10:2016的最新版本的Android Studio中,未实现“数据表”组件。 I read the StackOverflow answer (2015) that says to use something else. 我读了StackOverflow答案(2015),上面说要使用其他方法。 But I would like to know if this implementation exists somewhere in android studio in a place I dont know, or if it is not quite ready and will exist soon, or if it will never exist. 但是我想知道这个实现是否存在于我不知道的地方的android studio中,或者它还没有准备好并且很快就会存在,或者它永远不会存在。 In that case it would be better to strip off that "Data table" from the design documentation. 在这种情况下,最好从设计文档中删除该“数据表”。

Not all components described in the Material design specifications are directly mapped to a View provided in the SDK. 并非材料设计规范中描述的所有组件都直接映射到SDK中提供的View Most are just guidelines you should follow when creating the presentation layer of your app :-) 大多数只是在创建应用程序的表示层时应遵循的准则:-)

Providing a View makes sense for some of the components that are special or potentially memory heavy, such as CardView or the FloatingActionButton . 对于某些特殊的或可能占用大量内存的组件,提供View是有意义的,例如CardViewFloatingActionButton But it also limits the user, so in most cases the platform provides less specific tools you can use to build exactly the thing you want :-) 但这也限制了用户,因此在大多数情况下,该平台提供的特定工具较少,可用于完全构建所需的工具:-)

As for "data tables", this can be easily implemented using a RecyclerView with a specific adapter. 至于“数据表”,可以使用带有特定适配器的RecyclerView轻松实现。

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

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