Skip to content Skip to sidebar Skip to footer

How To Populate The Same Layout Inside A Liner Layout (android)

I need to create a list. The list will contain similar objects. each object will have some images, text and buttons. I can put those items in a table layout and arrange them (child

Solution 1:

This helped me a lot in designing custom views as part of a listview -

http://saigeethamn.blogspot.in/2010/04/custom-listview-android-developer.html

EDIT -

never tried may be where this is -

newString[] {"pen","price","contactid"},
newint[] {R.id.text1,R.id.text2}

replace text by imageviews in xml file

and then where this is

HashMap<String,String> tempnew = newHashMap<String,String>();
temp.put("pen",cur.getString(1).replace("+", " "));

repalce it with

HashMap<String,Image> tempnew = newHashMap<String,Image>();
temp.put("pen",Image1);

Image1 will be your image

Is this what you meant?

Post a Comment for "How To Populate The Same Layout Inside A Liner Layout (android)"