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. Determine what's the active package or activity running?

That begs the question, what is "the messaging app"?

Generally I can't think of much that you can do robustly based on knowing
"what" is currently running in the foreground, since except for your own app
actually finger out what that "what" is can't be very robust.

For figuring out if your own app's activities are running in the foreground,
you can just have a gobal variable that you set that the service checks.










-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

2. How do I write file:// URLs to access the SD card

Hi,

url to access sdcard = *"file:///sdcard/**html/index.html"*
make use of your "*adb shell*" command, then "*ls /sdcard*" will give you
your sdcard's directories ...

Regards,
Avatar Ng





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

3. How To Delete An Item In ListView

4. Determine what's the active package or activity running?

5. uploading an apk from my computer

6. can not debug application

7. Nigerian letter or?