展会信息港展会大全

如何制作非对齐样式的gridview
来源:互联网   发布日期:2016-01-14 11:29:44   浏览:2309次  

导读:com.etsy.android.grid.StaggeredGridView xmlns:android=http://schemas.android.com/apk/res/android xmlns:app=http://schemas.android.com/apk/res-auto android:id=@+id/grid_view android:layout_width=match_parent android:layout_height=match_pare...

<com.etsy.android.grid.StaggeredGridView

xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:app="http://schemas.android.com/apk/res-auto"

android:id="@+id/grid_view"

android:layout_width="match_parent"

android:layout_height="match_parent"

app:item_margin="8dp"

app:column_count="@integer/column_count" />

dependencies {

compile 'com.etsy.android.grid:library:x.x.x'

}

StaggeredGridView gridView = (StaggeredGridView) findViewById(R.id.grid_view);

gridView.setAdapter(adapter);

赞助本站

人工智能实验室

相关热词: android开发 android教程

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港