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. AndFTP Intent - Activitynotfound exception

I am trying to consume AndFTP intent to upload file through ftp. I've
installed AndFTP in my Android Virtual device and used below code and
ended up with activitynotfoundexception.

Am i missing anything. Do i need to include anything in the xml file.
Please let me know. Any help would be greatly appreciated.


Intent intent = new Intent();
intent.setAction(Intent.ACTION_PICK);
// FTP URL (Starts with ftp://, sftp:// or ftps:// followed by
hostname and port).
Uri ftpUri = Uri.parse("ftp://yourftpserver.com:21");
intent.setDataAndType(ftpUri, "vnd.android.cursor.dir/
lysesoft.andftp.uri");
// FTP credentials (optional)
intent.putExtra("ftp_username", "anonymous");
intent.putExtra("ftp_password", "someth...@somewhere.com");
//intent.putExtra("ftp_keyfile", "/sdcard/dsakey.txt");
//intent.putExtra("ftp_keypass", "optionalkeypassword");
// FTP settings (optional)
intent.putExtra("ftp_pasv", "true");
//intent.putExtra("ftp_resume", "true");
//intent.putExtra("ftp_encoding", "UTF8");
// Upload
intent.putExtra("command_type", "upload");
// Activity title
intent.putExtra("progress_title", "Uploading files ...");
intent.putExtra("local_file1", "/sdcard/subfolder1/file1.zip");
intent.putExtra("local_file2", "/sdcard/subfolder2/file2.zip");
// Optional initial remote folder (it must exist before upload)
intent.putExtra("remote_folder", "remotefolder/subfolder");
startActivityForResult(intent, 1);


Thanks

-- 

2. skia font rendering engine

Hi, I want to add my own font rendering engine and my font data(not
truetype) in the android source,Is it possible?
How can I do?
Thanks.

-- 

3. View.post looper exiting problem

4. Running Android compatible exectuable on Android emulator

5. Sending especial caracters (pause = ,) when calling with ACTION_CALL

6. How to avoid PlayerDriver "invalid percentage value" error?

7. Layout File (tabs/maps)