did someone implement a ScrollView with horizontal scroll support?

by Derek » Thu, 12 Mar 2009 19:02:17 GMT

Sponsored Links

It looks like the standard ScrollView does not support horizontal
scroll. Has anyone implement a ScrollView with horizontal scroll
support? It would be appreciated if you can share it.


Other Threads

1. Assistance with understanding LunarLander code

I have been working through the lunarlander example application, in
attempt to understand the source code. I have run into a couple of
problems, and would really appreciate if someone could space a couple
of minutes to assist in may understanding.

The onCreate method contains the following:

   protected void onCreate(Bundle savedInstanceState) {

        // turn off the window's title bar

        // tell system to use the layout defined in our XML file

        // get handles to the LunarView from XML, and its LunarThread
        mLunarView = (LunarView) findViewById(R.id.lunar);
        mLunarThread = mLunarView.getThread();

        // give the LunarView a handle to the TextView used for
        mLunarView.setTextView((TextView) findViewById(R.id.text));

        if (savedInstanceState == null) {
            // we were just launched: set up a new game
            Log.w(this.getClass().getName(), "SIS is null");
        } else {
            // we are being restored: resume a previous game
            Log.w(this.getClass().getName(), "SIS is nonnull");

I can see that we are performing the following:
        Turn off the title bar in the window
        Set the activity content to the lunar_layour layout file
        gets a reference to the 'lunar' layout
        gets a reference to the thread member of the LunarView class
        give the LunarView a reference to the textview for game
        we then set the state of the lunar thread to STATE_READY,
which also
outputs a bunch of status messages

The problem is that after executution of setState, the code seems to
end. I can see no sections of code that actually creates the
or LunarThread objects, which are required to start the game proper.
Obviously I am missing something here, I was wondering if anyone
assist! Thanks lots!


2. Receiving Alarms when the program is not running

Hey all,

I am trying to write a program that sets and alarm and has to display
a text when the alarm "goes off" . The problem is my program might not
be running when the alarm broadcast is sent so my program keeps
crashing. Is there a way I can code an alarm receiver that can display
an alert even if my program is not running?

Thanks in advance,


3. Service Launch problem

4. how to get menu handler/instance

5. Dynamically setting width of drawable

6. Anyone else seeing problems with the browser & Google Sites?

7. India Girls pictures,korea girls pictures,Indonesia Girls pictures,Thailand Girls pictures