【问题标题】:What is the best way to display an image without card when using GridViewPager使用 GridViewPager 时显示无卡图像的最佳方法是什么
【发布时间】:2014-08-14 00:35:44
【问题描述】:

所以我有一个GridViewPager,当前显示一个 3xN 网格,N 是列表中的项目数。我在所有卡片的背景中都有一张图片,但对于最右边的一列,我想显示前面没有卡片的图片。

我使用FragmentGridPagerAdaptergetBackground 作为背景图片。

【问题讨论】:

    标签: wear-os


    【解决方案1】:

    您是否使用 SDK 中的示例应用程序为适配器中的每个页面设置卡片片段?如果是这样,您可以只使用自己的片段,它不必是卡片,在您的情况下,它可能是没有任何视图的片段。

    【讨论】:

      猜你喜欢
      • 2014-05-16
      • 2011-12-24
      • 2013-05-23
      • 1970-01-01
      • 2014-06-07
      • 1970-01-01
      • 1970-01-01
      • 2020-02-05
      • 1970-01-01
      相关资源
      最近更新 更多