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. Closed -> Help: hh saya mati...

Siiyaapp boss Renner,
terimakasih banyak ya boss dan biss semuanya.
Akhirnya nubie bisa tidur, hehehe...


2010/1/19 Renner Chen <rc.android...@gmail.com>


2. Watch Dvd Movies download games

Now Watch
English Movies Free Dvd Result
Indian movies
English Songs
Indian Songs
Downlaod Full PC Games like Wolf Team
Find True Friend and Chat With Friends.
Live T.V and many more

on Just one Site

3. boot KAMIO-1251 board equipped with a MIPS AU1250 CPU

4. Modal dialog

5. Scaling icons on MapActivity with zoom

6. SDK addon sample problem.

7. How to open home screen?