定制列表视图的一排 [英] Customising a row of listview

查看:168
本文介绍了定制列表视图的一排的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我到Android新手。
我想开发这个UI。这是列表视图中的一行。

I am a newbie to android. I am trying to develop this UI. This is a single row of listview.

我曾尝试差异的方法,但不能这样。

I have tried diff ways but not able to this.

下面这个图片,我知道如何设置的泡沫背景和使用ninepatch和自定义列表视图。
对我来说有什么挑战是我想按钮后,在这里显示一些文本。
在情况下,如果串长即要nextline比它应该继续下面的按钮。

Here in this pic, I know how to set that bubble background and use ninepatch and customise listview. What challenge for me is I want to display some text here after button. In case if the string is long i.e going to nextline than It should continue below the button.

请建议我如何前进。

我应该用两个textviews并检查第一TextView的充满不是进一步字符串应该在第二TextView的或其他任何方式进行显示。

Should I use two textviews and check if the first textview is filled than further string should be displayed in the second textview or any other way.

推荐答案

您可以使用ArrayAdapter或BaseAdapter。看看下面的链接

You can use ArrayAdapter or BaseAdapter. Check out the following links

最值得推荐的

链接

<一个href=\"http://androidexample.com/How_To_Create_A_Custom_Listview_-_Android_Example/index.php?view=article_discription&aid=67&aaid=92\"相对=nofollow>教程1

教程

<一个href=\"http://theopentutorials.com/tutorials/android/listview/android-custom-listview-with-image-and-text-using-arrayadapter/\"相对=nofollow> tuorial3

编辑:

使用单独的线性布局这两个观点。它应该做的伎俩

Use seperate Linear Layout for both the view. It should do the trick

这篇关于定制列表视图的一排的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆