1

在此处输入图像描述.

我想为 Android 创建一个类似于上面示例的屏幕。我怎样才能在边缘留下空白?以及如何在所有句子的末尾添加“>”符号?

4

3 回答 3

2

Use "Custom Listview" for that and see below 2 link for custom listview example, it may help you.

Arrow Image to the Right of a ListView

Building a Custom Fancy ListView in Android

Android Custom ListView with Image and Text

于 2012-07-26T06:26:21.573 回答
1

You have to create Custom List view for this and set the adapter for the listview which will inflate the layout having two image views and textview.'>' you are asking about is the imageview kept at the right side(gravity) of the layout and nothing else.

To understand clearly see this Custom Listview link which help you to create this.

于 2012-07-26T06:26:03.360 回答
0

The "blank" you are talking about is padding. You are going to have to use a ListView and create an adapter of controls

You then create a control for each element in the list: with two images and a textview. You would probably use a RelativeLayout. You add the icon imageview first (padding it on the left and right) to make the "blanks". Then you add the TextView, and then you add the last ImageView which contains the picture of the ">" and align it to the right. (The first two components will be left aligned).

Then you just create an adapter with the desired items you want, changing the icon image and TextView text for each element.

http://www.vogella.com/articles/AndroidListView/article.html

于 2012-07-26T06:25:18.870 回答