this question has answer here:
i trying create simple android project has organisation (of activity xml)
|image | button | button |
|listview row(image + text + image) |
| button |
the samples have seen extend listactivity , override getview method. problem see activity have list , not other things have shown in organisation.
it extending listview... not able find solution.
can guys please help..
thanks ton.
just follow these steps
- get listview xml using findviewbyid
- now set adapter in using listview.setadapter(new customadapter());
- create adapter extending baseadapter , override know getview method
in getview method inflate xml (the 1 need showas arow)
inflation getsystemservice(context.layout_inflator_service);
use inflate method...this returns xml reference view object use object , use findviewbyid on view set properties of imageview , textview inside row xml file.
Comments
Post a Comment