Dynamically extend the height of the ListView row background image?

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

Sponsored Links

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?



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. Question about on device-added-*

I'm trying to add the sections to my init.rc:

service ril-daemon /system/bin/rild
     socket rild stream 660 root radio
     socket rild-debug stream 660 radio system
     user root
     group radio cache inet misc audio

on device-added-/dev/ttyUSB0
    start ril-daemon

on device-removed-/dev/ttyUSB0
    stop ril-daemon

The on device-* syntax is described in the porting guide

When I insert a 3G modem usb dongle to
my dev board, the node /dev/ttyUSB0
is created. I expected the ril-daemon service
should start, as said in the init.rc.
But it did NOT.

I checked the code in system/core/init,
but I can't find any related code for the
on device-added-* syntax.
(I'm using Froyo branch).
I doubt whether if it works as described
in the porting guide.

Am I missing something?

unsubscribe: android-porting+unsubscr...@googlegroups.com

2. setSpeakerPhoneOn


I'm trying to figure out how to set the speaker phone to on when the phone call 
state changes. I have something like the following:

        class TelephoneListener extends PhoneStateListener {

                public void onCallStateChanged(int state, String incomingNumber)
                        super.onCallStateChanged(state, incomingNumber);
                        switch (state)
                        case TelephonyManager.CALL_STATE_OFFHOOK:
                                // Set audio to 0 and remove sound and vibrate
                                        AudioManager mAudioManager = 
(AudioManager) getSystemService(AUDIO_SERVICE);

I was wondering if this is possible or not. I don't have any errors, but I 
don't have any joy either... I have searched for setSpeakerPhoneOn and haven't 
come up with anything other than permissions which I have set up in my Manifest.



3. how do i launch google street view from app

4. Accessing XML Based Web Service

5. Autofill a website

6. Cannot add gmail account to Accounts & Sync Settings -- Eclipse 3.5.2, SDK Platform Android 2.2, API 8, revision 2

7. AsyncTask doesn't run sometimes despite state returning RUNNING?