Dynamically extend the height of the ListView row background image?

by javame_android » Fri, 23 Apr 2010 18:14:21 GMT


Sponsored Links
 Hi,

I am loading a listview dynamically. I have set a .9.png image as row
background image. The main purpose of using .9.png image was to extend
the height of the image dynamically according to the contents of the
listview.

But, the image is not getting extended. The contents which can be
displayed within the height of the row are being displayed and the
rest are being cut.

Can someone let me know a proper way of doing this?


Regards
Sunil

--



Other Threads

1. Content Providers and Network Requests

Hello,
As per the subject, i am making an app that is dependent on data that
comes from a network request.
I was using the UserTask class (Made by Mr. Romain Guy) to make the
network calls and get my data and everything worked.

But now, i want the data from this app to be available to other apps
as well and thus, the only way that data could be shared between
applications is by using a content provider (thats what i have read so
far).

My question was: Is it possible to use a thread or the UserTask class
inside a Content Provider and if yes, then since the request to the
server can take a long time, how do we change the query method of the
content provider to handle such a delay as it is suppose to return a
Cursor object.

In my initial approach, i was using a listener that took care of
updating the Application when the data was available but i am not
aware of a way to use a listener with a Content Provider.

Any help or ideas would be helpful.

Thanks

- Kavik
--~--~---------~--~----~------------~-------~--~----~

2. network monitoring information access

Hello,

I am trying to find the exact location of networking event related
information on an Android based device.

I accessed the emulator (./adb shell), and changed to the dev
directory (cd /dev).

I thought this would be the right place to start. However, it does not
appear to be the case, or I am using the wrong path in my application
where I use the code listed below to access files in /dev.

I would appreciate it if someone could help me identify the files
containing networking related information, and their full path.

Thanks.

Alex Donnini

         FileReader fstream = null;
         try
         {
                 fstream = new FileReader("/dev/log/main");
         }
         catch (FileNotFoundException e)
         {
                e.printStackTrace();
         }

         try
         {
                 BufferedReader in = new BufferedReader(fstream, 500);
                 String line = null;
                 while ((line = in.readLine()) != null)
                 {
                         netTrafficDev.add(line);
                 }
         }
         catch (Exception e)
         {
                e.printStackTrace();
         }

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

3. Providers Network Status In Persentage..Is It Possible??

4. Cannot connect to Wireless (wifi) unless Settings for Network set to Channel 1!

5. UK G1 Update available

6. WiFi within of emulator

7. Before publish: "Deactivate any calls to Log methods in the source code" - How ?