ListView and HorizontalScrollView on the screen

by nyuri » Fri, 18 Mar 2011 19:21:09 GMT


Sponsored Links
 hi~ I have a problem.
I have to develops on the android platform.
the function is as follows.

       <----        screen       ------>
                <----         scroll enable          ---->
       -----------------------------------------------------------
^       title1 | title2 | title3 | title 4| title 5 | title 6
|
|   ^   con1 | con2 | con3 | con4 | con5  | con6
|   |   con1 | con2 | con3 | con4 | con5  | con6
s s   con1 | con2 | con3 | con4 | con5  | con6
c c   con1 | con2 | con3 | con4 | con5  | con6
r  r    con1 | con2 | con3 | con4 | con5  | con6
e o   con1 | con2 | con3 | con4 | con5  | con6
e l    con1 | con2 | con3 | con4 | con5  | con6
n l    con1 | con2 | con3 | con4 | con5  | con6
|  |    con1 | con2 | con3 | con4 | con5  | con6
|  |    con1 | con2 | con3 | con4 | con5  | con6
v v    con1 | con2 | con3 | con4 | con5  | con6
       con1 | con2 | con3 | con4 | con5  | con6
       con1 | con2 | con3 | con4 | con5  | con6
       con1 | con2 | con3 | con4 | con5  | con6
       con1 | con2 | con3 | con4 | con5  | con6
       con1 | con2 | con3 | con4 | con5  | con6
I want to fix the title1 column  when the horizontal scroll.
I tried to use the horizontalScrollview and listview but i can't.
does anyone know?
I would be much grateful if anyone could help me

-- 



Re: ListView and HorizontalScrollView on the screen

by TreKing » Sat, 19 Mar 2011 10:08:00 GMT


 




You'd likely have to build your own layout, possibly extending from
TableLayout.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 


Sponsored Links


Other Threads

1. How to detect whenever any Textbox gains focus?

I want to be able to set up a listener that can determine when any
textbox in any application gains focus.  Is this possible?  Do I
create a service with some kind of onFocusChangeListener?

Thanks in advance

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

2. What happens to the Intent internally after startActivity ??? (especially to Google-Developers)

Hello.

I've created a Class that extends android.content.intent and called it
ExtIntent.
The reason was to give the Intent the possibility to hold a simple
Object. (just for testing)

In my calling Activity, I created an instance of ExtIntent and set it
up like the normal way for
an Intent. Althoug I added my Object in my overridden Constructor as
the third parameter.

=== CODE -> ExtIntent Class ===
...

public class ExtIntent extends Intent
{

  private Object object = null;

...

  public ExtIntent(String action, Uri uri, Context packageContext,
Class<?> cls)
  {
    super(action, uri, packageContext, cls);
    // TODO Auto-generated constructor stub
  }

  public ExtIntent(Context packageContext, Class<?> cls, Object o)
  {
    super(packageContext, cls);
    setObject(o);
  }

  public void setObject(Object object)
  {
    this.object = object;
  }

  public Object getObject()
  {
    return object;
  }
...

}
=== END ===

=== CODE -> Calling Activity ===
...
ExtIntent ei = new ExtIntent(CallingActivity.this,
RetrievingActivity.class, myObject);

startActivity(ei);
...
=== END ===

Now follows the line where I got a ClassCastException.

=== CODE -> Recieving Activity ===
...
ExtIntent ei = (ExtIntent)getIntent();
...
=== END ===

I guess that internally my ExtIntent has been casted to an Intent, but
I'm not sure.

If my assumption is true, there seems to be no way to extend the
Intent class.
How to work really object-oriented if there is no way to extend any
class???

Hopefully I look forward for an answer and/or a solution for that
problem.

Regards

OC

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

3. "geo fix # # #" command skews the entered coordinates

4. how to decompeler the .apk file and who can apply the source code of contacts

5. Andoird on Iphone

6. Location based search

7. Activity onKeyDown does NOT capture events; what am I missing?