Usage of GridView

by Miracle » Tue, 14 Apr 2009 14:58:21 GMT

Sponsored Links
 Hi there,
  I want to implement UI using GridView to fulfill this case:

 1. The items are all in one row and all of them have the same height
and width.
 2. When click one of the item, the selected item can move up/down

 The first is easy to do.
 My issue is about the second. Do you guys know how to implement ?

thank you very much.


Other Threads

1. debugging for Android PC

I have android 2.1 installed on an Asus Eee machine, Everything is
working on it other than the phone.

Just wondering does anyone know how to debug my app, or get the
application log on the Android PC?
I know I can use Android SDK's tool adb or ddms, run logcat to debug
the apps running in the emulator from eclipse.

But I have no idea how to get the logs if I am making a PC becoming an
Android Emulator...

Any help is appreciated.



2. Dalvik SegFaults while using CMU Sphinx4

Hi all,

I am a part of a project that involves automatically offloading portions of
an application's execution to a cloud of servers. As such, we try to run
traditionally difficult algorithms on our Android phones, in particular,
speech recognition algorithms, namely the CMU Sphinx4 library.

The Sphinx4 library, itself, is open-source and written in Java, so I was
expecting a fairly simple porting, however I have run into a bit of trouble.
After ironing out most of the kinks and minor discrepancies between
Android's Java and J2SE, I have reached a point where Dalvik just dies on
me. The phone simply returns to the home screen without a warning or a
'Force Close' button and LogCat (attached) shows me that my process has
terminated with signal 11 (SIGSEGV).

When I try to debug the issue by stepping through the code line by line, I
can never pin point an exact place that consistently causes the crash, but
it does crash every time. I have tried this out on Android 1.6 with an HTC
Dream Phone, Android 2.1-update1 with a Motorola Droid, and Android 2.2 in
the emulator and it happens on all of them.

I am pretty much stumped. Has anyone seen anything like this happening
before? Are there any rules of thumb to circumvent or debug this sort of
issue? Should I report this as a bug in some bugtracker?

If it's useful, I can post some example code that will cause the crash.


Kind regards,

Luis D. Pedrosa


3. DDMS memory usage

4. Android Market Licensing: Now Circumvented!

5. Add CheckBox on buttonclick - Dynamic Mode

6. Memory usage profiling an openGL application?

7. does Google forbid orientation animation on purpose?