how to set focus on the list

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


Sponsored Links
 Hi

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?

Thanks!

Cindy

--



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:
 http://android-developers.blogspot.com/2008/12/touch-mode.html 



>



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
Source)
    at org.ksoap2.transport.HttpTransport.call(Unknown Source)
    at infy.lbs.POILocator.onCreate(POILocator.java:40)
    at android.app.Instrumentation.callActivityOnCreate
(Instrumentation.java:1122)
    at android.app.ActivityThread.performLaunchActivity
(ActivityThread.java:2103)
    at android.app.ActivityThread.handleLaunchActivity
(ActivityThread.java:2156)
    at android.app.ActivityThread.access$1800(ActivityThread.java:112)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
1580)
    at android.os.Handler.dispatchMessage(Handler.java:88)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:3742)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
    at dalvik.system.NativeStart.main(Native Method)

Waiting 4 a quick reply.

Thanks
Ram

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

2. Change Tab Widget icon for currently active tab

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

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
                       }
                  });

Thanks
--~--~---------~--~----~------------~-------~--~----~

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. developer.android.com is not opening..