1

To be very honest, I am very new to android development. I really want to learn it. I'm facing problem in UI design. I want to make something like the picture given below.

Android Interface I'm trying to acheive

Now my question is the that the list of person is dynamic (received from a web service). Now how can I achieve that.

I'm guessing I have to make a XML layout of one and then load it in the layout using code?

i've done something as explained here.. but that is not enough. :( Please help!

**** EDIT **** I want this

enter image description here

to be dynamic. I have successfully created the above image strip in a separate XML. now can it be used in the main layout dynamically like we used to do in case of User Controls in .NET?

Community
  • 1
  • 1
Kumar Ravi
  • 429
  • 2
  • 20
  • 1
    I can create the ui for you if you provide the icons used here – orchidrudra Apr 22 '12 at 16:20
  • Thanks mate. But will that be dynamic (based on the data webservice returns). for example if the webservice returns "3", then 3 strips gets loaded and so on? – Kumar Ravi Apr 22 '12 at 16:26
  • Yes of-course, this is what list-view is used for. If you need a dynamic list, where list contents will change dynamically, then you should use a listview. – orchidrudra Apr 22 '12 at 16:38
  • here are the icons, http://www.mediafire.com/?qg7as2v8wz4sr14 please explain me also. Thanks. – Kumar Ravi Apr 22 '12 at 16:41
  • Put this as your answer. :) Btw, I'm studying Customized ListView in greater detail so that it's easy for me to understand. Thanks a ton again. – Kumar Ravi Apr 22 '12 at 16:48
  • Working on it, need some time. – orchidrudra Apr 22 '12 at 17:34
  • 1
    -1 this question shows no attempt to research or do your own work. This question should have been closed – Moog Sep 05 '12 at 07:21

3 Answers3

5

You have to work with ListViews. Just watch the Google I/O ListView video for a good introduction. The actual layout of cells will be done in a separate layout XML file.

Moog
  • 10,193
  • 2
  • 40
  • 66
alex
  • 2,464
  • 23
  • 32
2

here is important for you..following link provide how to adjust image along with two item. refere this

Community
  • 1
  • 1
Sandip Armal Patil
  • 6,241
  • 21
  • 93
  • 160
  • 2
    thanks a lot for the link. But that link solves only halfway of my problem which I have already done. I need to replicate the UI (in that post) dynamically based on a webservice's callback. I cannot use the XML tag as i need this to be from the code (dynamic). :( – Kumar Ravi Apr 22 '12 at 15:51
  • -1 this could be posted as a comment, doesn't warrant an answer. – Moog Sep 05 '12 at 07:19
0

Here is the project file. For simplicity I used a SimpleAdapter. You can create your custom adapter to meet your requirements. Hope you like this ui... :)

orchidrudra
  • 1,172
  • 1
  • 12
  • 30
  • 1
    -1 While I'm sure this answer helps the OP it is susceptible to [linkrot](http://en.wikipedia.org/wiki/Link_rot) and makes no explanation here on SO, therefore unlikely to help future users. Please avoid "coding for free". – Moog Sep 05 '12 at 07:21