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. Missing .apk file

Forgot to mention that I am trying to make this file in Eclipse. If I try to
build it using the ant command, it gives me no errors.





-- 

2. How to work with ContactsContract.Contacts.CONTENT_VCARD_URI

I can successfully retrieve a  FileInputStream with this uri
as follows

        Uri myPerson = Uri.withAppendedPath
(ContactsContract.Contacts.CONTENT_VCARD_URI, iLookKey);
        AssetFileDescriptor afd =this.getContentResolver
().openAssetFileDescriptor(myPerson, "r");


        FileInputStream fis = afd.createInputStream();


However, when I wanna input a vcard to change the content of a
contact
as follows

        Uri myPerson = Uri.withAppendedPath
(ContactsContract.Contacts.CONTENT_VCARD_URI, iLookKey);
        AssetFileDescriptor afd =       this.getContentResolver
().openAssetFileDescriptor(myPerson, "w");
FileOutputStream fos = afd.createOutputStream();

IOException is caught in the line of "FileOutputStream fos =
afd.createOutputStream();".
and it said that "unable to seek"

I believe that that's no problem about Lookup key .
Could anyone tell me what's wrong with the exception caught???
I need to restore some vcard in codes yet I dun wanna breakdown the
content of vcard by categorys.
Thank You~~

-- 

3. motally analytics for Android

4. Informed Build Targeting, what information is out there?

5. Kepikiran

6. Setting permissions on radio (chmod /dev/ttyUSB1) in init.rc

7. HTC Bravo