Dynamically extend the height of the ListView row background image?

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


Sponsored Links
 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.

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


Regards
Sunil

--



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. how to load the related Bitmap according to input

hi,

I have met an issue.
There are some pics in the res/drawable named as pic_1.png, pic_2.png,
pic_3.png, pic_4.png.... I want to load someone according to the
input.
For instance, if I input 2, I want to load pic_2.png. If input 3, will
load the pic_3.png....
How to achieve? Need your expert help here...

--~--~---------~--~----~------------~-------~--~----~

2. Does StreetView work in Android?

Hi gang:

StreetView just released for Canada this week. I am interested in
using it to augment one of my apps set in downtown Montreal.

Now the mapview method called something like setStreetView(true) does
highlight the streets where streetview imagery is available, but that
seems to be all it does.

I don't believe that phones run Flash which seems to be a necessity
for using Streetview. Am I missing something? That is, is there any
way I can zoom into a Streetview image in one of my location-based
Android apps just by providing the lat/long?

If this isn't already available. I'm sure it is coming soon
--~--~---------~--~----~------------~-------~--~----~

3. Should I use Canvas or SurfaceView for a chess game?

4. Need to place Childe view starting from left side

5. Archos WVGA/720p Tablet and Google Android Apps

6. A competitor to Motorola CLIQ

7. hape android