回答
它可能使用StaggeredGridView。看看下面回购在github上
https://github.com/maurycyw/StaggeredGridView
https://github.com/chrisjenx/StaggeredGridView/tree/master/demo
我不知道他们使用的到底是什么,但你可以实现与无论是GridLayout
或ListView
同样的效果。
我不认为这是可能的与列表视图 –
当然是 - 您可以在ListView中具有不同的项目类型。您可以显示一个只显示一个项目的视图和一个显示两个项目并交替显示的视图。 –
简单足以与LinearLayout中做到这一点:
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- Stack rows vertically -->
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<!-- First row, two items -->
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<!-- First item, 50% of width -->
<FooView android:id="@+id/foo1"
android:layout_width="0px"
android:layout_weight="1"
android:layout_height="wrap_content" >
<!-- Second item, 50% of width -->
<FooView android:id="@+id/foo2"
android:layout_width="0px"
android:layout_weight="1"
android:layout_height="wrap_content" >
</LinearLayout>
<!-- Next row, just one item -->
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<!-- Third item, 100% of width -->
<FooView android:id="@+id/foo2"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
</LinearLayout>
<!-- And so on... -->
</LinearLayout>
</ScrollView>
显然, “FooView” 的确切性质是你的,因为是装饰性边框,阴影等。实际上,您希望以编程方式执行此操作,但此静态xml布局会显示您所追求的内容。
GridLayout也可以工作,但它只能在4.0及以上版本中使用,除非您想开始使用兼容性库。由于LinearLayout将完成这项工作,这就是我将要使用的。 RelativeLayout可能也会起作用,但是我自己从来没有能够让这个该死的东西工作。
- 1. 的Android什么网格布局使用
- 2. 这种布局风格的名称是什么?
- 3. 什么是使用自动布局,网格视图等?
- 4. WPF删除网格布局子使用名称
- 5. 什么是最好的布局使用?
- 6. 网格状文章布局
- 7. 的GridView VS网格布局Android应用
- 8. 为什么Google和Twitter使用表格布局?
- 9. 什么是WPF更好的用户界面布局,使用一个网格或嵌套的网格
- 10. Google Play应用和AndroidPIT应用的软件包名称是什么?
- 11. Android下此布局的名称是什么?
- 12. Android上此菜单式布局项的名称是什么?
- 13. MySQL使用的默认日期格式的名称是什么?
- 14. 使用RelativeLayout的网格布局
- 15. 的Java问题使用网格布局
- 16. 使用Bootstrap 3.0的网格布局
- 17. 在SWT应用程序中布局的目的是什么?
- 18. Google Talk应用使用哪种布局?
- 19. reset_password_instructions.html.erb使用什么布局
- 20. 什么是网格布局的负值指示
- 21. Android应用程序中的布局充气器是什么?
- 22. Gridbag布局还是网格布局?
- 23. Android手机上Android Market应用程序中使用的布局是什么?
- 24. Google+ HTTP用户代理的名称是什么?
- 25. Java中的网格布局
- 26. CSS中的网格布局
- 27. SilverLight中的网格布局
- 28. Bootstrap中的网格布局
- 29. 什么是Google Play软件包名称?
- 30. 应用程序的名称属性 - 它是干什么用的?
你在寻找一个特定的布局**名称**或询问如何绘制这样的布局? – caiosm1005
布局名称 –
我很确定名称是CustomLayout之类的。 – Ridcully