简体   繁体   English

如何创建垂直动态列表视图?

[英]How to create vertical dynamic listview?

I have to create 1 xml which contains我必须创建 1 个 xml 其中包含

ImageView ImageView ImageView ImageView ImageView ImageView

TextView TextView TextView TextView TextView TextView

Pls help me with xml code请帮助我使用 xml 代码

Thanks谢谢

Use droiddraw to create your application layout and generate xml file.使用droiddraw创建您的应用程序布局并生成 xml 文件。

To get source code of list view with image view click here要获取带有图像视图的列表视图的源代码, 请单击此处

You can use droiddraw to create XML.您可以使用 droiddraw 创建 XML。 You can download droiddraw from here Its very easy to use.您可以从这里下载 droiddraw 它非常易于使用。

Thanks Deepak谢谢迪帕克

use droiddraw to create your xml.使用 droiddraw 创建您的 xml。 here's a link for that Droiddraw这是那个Droiddraw的链接

Use a relativelayout and position your children as you wish.根据需要使用相对布局和 position 您的孩子。 Using RelativeLayout is preferred while building complex layout.在构建复杂布局时,首选使用 RelativeLayout。 This ViewGroup avoids unnecessary overhead xml structures, similiar to the old standard这个 ViewGroup 避免了不必要的开销 xml 结构,类似于旧标准

<table>

in html.在 html 中。 Check out this tutorial: http://developer.android.com/resources/tutorials/views/hello-relativelayout.html查看本教程: http://developer.android.com/resources/tutorials/views/hello-relativelayout.html

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

相关问题 如何在Flutter中创建水平滚动垂直列表视图? - how to create horizontally scrollable vertical listview in Flutter? 如何在 AndroidStudio 中创建动态 ListView - How to create a dynamic ListView in AndroidStudio 如何在android中的垂直listview中创建Horizo​​ntal Listview - How to create Horizontal Listview inside vertical listview in android 如何在 android.. 的垂直 Listview 中创建水平图像画廊列表? - How to create list of horizontal image galleries in a vertical Listview in android..? 如何在Android中创建Dynamic Gird / Listview - How to create Dynamic Gird/Listview in android 如何创建动态列表视图并设置Textview的可见性 - how to create dynamic listview and set visibility of Textview 如何在运行时使用自定义(水平和垂直)分隔符创建动态TableLayout - How to create dynamic TableLayout in runtime with custom (horizontal and vertical) dividers Android-创建带有水平可滚动行的垂直ListView - Android - Create a Vertical ListView with Horizontal scrollable row 如何在Android中使用动态多个子视图创建可扩展列表视图 - How to create Expandable listview with dynamic multiple child view in android 如何与ListView并排创建动态ImageView - How do I Create a Dynamic ImageView side by side with a ListView
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM