views:

324

answers:

1

Hi,

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 listview.

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?

Regards

Sunil

A: 

Hi,

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.

alt 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?

Regards

Sunil

sunil