setting max height of listview with initial height is wrap content(it may be empty)

by jalandar » Tue, 13 Jan 2009 20:50:32 GMT


Sponsored Links
 Hello everybody I want set initial height of list view with wrap
content, and later it will be expanded as per data added to specific
limit of height. I used wrap_content for height and android:maxHeight
="100px", but it is not working properly the list grows in height
beyond the maxHeight as the list item added.
Is there any other solution.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Copy protected app issue

I chose copy protection for my application on the android market.
There are some users complain they were not able to download the
software from the market and gave me only one star. I am wondering if
they are Dev phone users. If yes, could Google ban them even before
they start download? One user said he tried 10 times...

Another issue is, it seems the "rooted" G1 phone can download even
copy protected app. And the worse thing is the app apk file can be
published to anywhere and anyone can download it for free.

I am wondering if Google can do this: the Android Market can sign the
app with the device hardware id, so the app can only run on this
particular device. I have done this for Windows Mobile phone before
(Encrypt a seperate license file instead of sign the app).





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

2. About threads in a service process

Hi,

- What do the methods startThreadPool() and joinThreadPool() do during
the process of launching a service, e.g., mediaplayer service in the
file main_mediaserver.cpp?
int main(int argc, char** argv)
{
    sp<ProcessState> proc(ProcessState::self());
    sp<IServiceManager> sm = defaultServiceManager();
    LOGI("ServiceManager: %p", sm.get());
    AudioFlinger::instantiate();
    MediaPlayerService::instantiate();
    CameraService::instantiate();
    ProcessState::self()->startThreadPool();
    IPCThreadState::self()->joinThreadPool();
}

- I have a service that I am using and see multiple threads on the
server side. Below is a snippet of the log.
03-13 19:52:58.143    26    45 V IMyTest: BnMyTest::onTrasact ...
tid=45
03-13 19:52:58.143    26    44 V IMyTest: BnMyTest::onTrasact ...
tid=44
03-13 19:52:58.183    26    26 V IMyTest: BnMyTest::onTrasact ...
tid=26
03-13 19:52:58.213    26    45 V IMyTest: BnMyTest::onTrasact ...
tid=45
03-13 19:52:58.213    26    44 V IMyTest: BnMyTest::onTrasact ...
tid=44
03-13 19:52:58.233    26    45 V IMyTest: BnMyTest::onTrasact ...
tid=45
03-13 19:52:58.233    26    26 V IMyTest: BnMyTest::onTrasact ...
tid=26
03-13 19:52:58.233    26   184 V IMyTest: BnMyTest::onTrasact ...
tid=184

If I read this correctly, the service is running on a process with
pid=26. But, the "onTransact" calls happen on multiple threads. I did
verify that the "Transact" calls occur in all one thread (on the
application process). Though there appear to be multiple threads (ids)
running, it looks like the calls are serialized. How come there are
multiple threads? Is there a way to control the number of threads
running on the server process?


Thanks,
Ravi








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

3. How to create a Custom Clickable Area "Non-Standard Square" ?

4. Fedora 10 & Emulator

5. [Android framework protected API] Permission protection level definitio

6. Repo Client init problem ubuntu 8.10

7. Does one really need to have a data plan with G1 if you use Wifi + voice?