Dynamically extend the height of the ListView row background image?

by javame_android » Fri, 23 Apr 2010 18:57:07 GMT

Sponsored Links

Just to make it more clear, I want to have some text displayed at the
bottom of the image. An example of the view that I want is as below.

|  "Certain content goes here"                      |
|  "some text"                                                |

What I want is that image should extend itself if the content is more
than the height of the image. For this reason, I have used .9.png
image but no success. Also, the text at the bottom should always be at
the bottom.

First I was using "?android:attr/listPreferredItemHeight" this to set
the height of listview row. When I tried with wrap_content then the
height is increasing according to the contents but then the content
that I wish to have at the bottom don't remain at the bottom.

Can someone now let me know what may be the issue?



Dynamically extend the height of the ListView row background image?

by Kumar Bibek » Fri, 23 Apr 2010 20:01:24 GMT

 I think there's something wrong with your layout. Put some lines of
the xml and we will try to figure out your problem.

Thanks and Regards,
Kumar Bibek


Sponsored Links

Other Threads

1. Any Googlers on this board who work in Kirkland, WA?

Just a shout out to see how many people on this board work in the
Google Kirkland office?  I'm wanting to synch up for some developer
chat time off-hours...

You can catch me on Linked in as well.


Richard Schilling
Mobile Operating Systems Engineer
Root Wireless


2. getPressure vs. getSize for MotionEvent


Debugging on my G1 phone, I am trying to use
android.view.MotionEvent.getPressure() and MotionEvent.getSize().

For MotionEvent.getSize(), I always get 0 (the documentation says it
returns a value ranging from 0 to 1;

For MotionEvent.getPressure(), it seems to me this actually reflects
the real finger touch size, as opposed to "pressure"; for me, I get
values range from 0 - 0.63.

Am I missing anything or is it a known bug of the SDK?


3. Android App Promotions

4. Help with Spinner

5. gcc: error trying to exec 'cc1': execvp: No such file or directory

6. About Content Provider and SQLite Table design pattern

7. Pre-Order 3G[S] dan HTC Hero Android G2