How to create an UI similar to the attached image?
I am trying to create an UI just like the attached image!
How do we create these types of UI? Is it a ListView
? And how do we get the arrow button on the right 开发者_Python百科hand side? How should I start with such kind of layouts?
You can achieve that with a LinearLayout
too.
Have that LinearLayout
s orientation be vertical
. Create such list items (it isn't related to ListView) using RelativeLayout
.
Have the icon be an ImageView
aligned to its parent left and vertically centered, the text would be a normal TextView
which is to the right of that icon and vertically centered as well and finally another ImageView
but this time aligned to its parents right and vertically centered.
These is the receipt.
It's a ListView, you should learn how to write your own ArrayAdapter and returns in the getView method the View you want to be each row of the ListView.
AnDroidDraw lets you create the layout online and then later download it on your device. http://www.droiddraw.org/
Create appropriate custom ArrayAdapter for this layout.
精彩评论