Dynamically extend the height of the ListView row background image?

by javame_android » Fri, 23 Apr 2010 18:14:21 GMT

Sponsored Links

I am loading a listview dynamically. I have set a .9.png image as row
background image. The main purpose of using .9.png image was to extend
the height of the image dynamically according to the contents of the

But, the image is not getting extended. The contents which can be
displayed within the height of the row are being displayed and the
rest are being cut.

Can someone let me know a proper way of doing this?



Other Threads

1. Port x86 program to Android met error

Hi, all!

I'm recently trying to port a x86 linux application to Android
platform, using android-ndk 1.6 and ndk wrapper. When compiling the
codes I met the following problem:

My codes uses usleep() function defined in <unistd.h> and tries to get
its return value like this:

return usleep(microseconds * 1000);

However, <unistd.h> in x86 system defines usleep as

extern int usleep ( __useconds_t __useconds );

while <unistd.h> in Android NDK defines it as

extern void usleep(unsigned long);

Now I had to change my code as:

usleep( microseconds * 1000 );
return 0;

I'm not sure if it's safe to do so. Does anyone have some idea about
this? Or a better solution?

Thanks very much!



2. Wrapping horizontal list view?

I'm attempting to create a list view that shows clickable items that
wrap horizontally much like the To/From/CC/BCC fields in OS X and the
iPhone's Mail programs or like the TO field in Facebook's messages
(really like most mail programs). My questions are:

1. Is there a way to do this with a ListView? Everything I've seen and
experimented with is either horizontal scrolling or vertically
stacking, but not horizontal wrapping. If there's a way, would you
point me in the right direction as far as first steps to take to
implement it?

2. Is anyone aware of an existing app with available source that has a
view like this that I could look at as an example? The Google Mail/SMS
apps just have single strings that are not clickable for those fields.

3. Reminder IRC office hours today 5:00- 6:00 PST

4. Any way to go from an itermId to position in a ListView/Adapter

5. Expandable View

6. Needing an Android Developer