how to set focus on the list

by cindy » Mon, 12 Jul 2010 06:11:24 GMT

Sponsored Links

My application displays a list view. When it is first displayed, I
want to set the focus to the first listitem. How could I do it?




how to set focus on the list

by cindy » Thu, 09 Sep 2010 13:56:58 GMT

 I display a list on screen, how could I set focus on one list item?

It seems in touch mode, it is impossible to set focus. Am I correct?


Sponsored Links

how to set focus on the list

by Romain Guy » Thu, 09 Sep 2010 14:07:23 GMT

 Yes, you are correct. Pleas read this article to understand why: 


Other Threads

1. Webservices an Android.

Hi All,

While consuming webservice I am getting the following error. Can
somebody suggest me the cause.

java.lang.VerifyError: org.ksoap2.transport.ServiceConnectionMidp

    at org.ksoap2.transport.HttpTransport.getServiceConnection(Unknown
    at Source)
    at infy.lbs.POILocator.onCreate(
    at android.os.Handler.dispatchMessage(
    at android.os.Looper.loop(
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(
    at dalvik.system.NativeStart.main(Native Method)

Waiting 4 a quick reply.



2. Change Tab Widget icon for currently active tab

This is not so much a problem, more a question about how to achieve

I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an
exact copy but in grayscale.

What I want to do is have the coloured version of the icon displayed
when the tab is active i.e. being viewed. Otherwise I want the other
inactive tabs to show the grayscale version of their icon - and change
to the coloured version if they are clicked.

So I want a tab to show a coloured icon if active and a grayscale icon
if inactive...

Any ideas how to achieve this anyone?

I have played around with the TabHost onTabChangeListener but havent
been able to find a solution.

Ideally I need something like:

tabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {

                       public void onTabChanged(String arg0) {
                            int selectedTab = tabs.getCurrentTab();

                            // Update newly selected tab to display
colorful icon
                            // Update previously selected tab to
display greyscale icon


3. how to add other status to power-off menu

4. Viewing more details in list item using Listactivity and onListItemClick

5. ClassCastException if the same lib is used

6. Network Status API

7. is not opening..