我是一位尝试学习Dart-Polymer的Android开发人员(对于HTML开发人员,我也是相当陌生的人)。我尝试了聚合物教程中的自定义卡片示例,并且作为扩展,我想在矩形网格中显示多张卡片。我看到Polymer中有水平和垂直布局,我想知道Polymer是否有Android中的GridView之类的东西。有人可以建议如何进行吗?
我想实现的是左侧的网格:
The core-card is on the right. I can see that element in the designer (please see the panel in right under core). But I am unable to find the core-card in Polymer libraries. That's why I am going with custom card (from the tutorial mentioned above). I would like to use core-card if available.
After posting this question, I found out about core-layout-grid - I am not sure how to use it, and if that's what I need.
Polymer has excellent handling to ease the use of CSS FlexBox. Using the various layout
,horizontal
,vertical
, wrap
, and flex
attributes it is very easy to make very flexible and responsive layouts, including grids.
您可以从“聚合物版面属性”页面上了解有关版面属性及其用途的更多信息,包括各种路线属性。尤其要注意“包装”部分,因为它有助于创建将根据显示宽度进行适当调整的响应式网格。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句