Trackball button highlighting?

by Sundog » Fri, 31 Oct 2008 00:34:15 GMT


Sponsored Links
 Hello all, I'm the author of Nitoware Mahjongg Solitaire. The game
uses many small ImageButtons, and I expected the trackball to "just
work" as an alternative to touching them, but although it SEEMS to be
working, the user can't see any feedback that lets them know where the
trackball is so they can use it.

Does anyone know a way around this?

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



Trackball button highlighting?

by zl25drexel » Fri, 31 Oct 2008 04:54:48 GMT


 You are looking for onFocused(), I believe there's a onFocuseListener
you can set.



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


Sponsored Links


Trackball button highlighting?

by Sundog » Fri, 31 Oct 2008 23:23:39 GMT


 Thank you very much. I should have seen that myself.





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



Other Threads

1. TableLyaout getting invalidated

HI,

I am using a TableLayout in my activity but because of some reason it is
getting Invalidated (columns of table layout are falling towards one side of
the screen) and I have to call table.requestlayout()
to make it look fine again and again.

I found a scenario in which my TableLayout is getting invalidated,
scenario::

Let A is a activity with a tablelayout (with 3 columns and 3 rows) which
support only portrait mode.
And B is a activity which support portrait and landscape mode and can be
called from A only.

Steps to reproduce ::
1. Run the activity A whose default orientation is Portrait.
2. Change the orientation of the activity A to landscape mode.
3. Go to activity B from activity A.
4. Change the orientation of activity B from landscape to portrait.
5. Go back to activity A by just finishing the activity B.
6. Activity A will be opened in Portrait mode and the columns of the Table
will get fell on the right side of the screen (i.e the space between the
columns is getting removed).

Has anybody faced the same problem, please suggest a solution.

Any help would be appreciable.

Regards,
Astegic

-- 

2. SKIA Bitmap loading ??

Hi all,

I'm starting to implement a lazy image loader for the listview in my
new project so I was gathering informations and came across Romain Guy
full featured implementation in the project Android Shelves :
http://code.google.com/p/shelves/source/browse/trunk/Shelves/src/org/curiouscreature/android/shelves/util/ImageUtilities.java

While reading I found this piece of code I cannot understand
(FLAG_DECODE_BITMAP_WITH_SKIA is set to false above in the code) :

                    if (FLAG_DECODE_BITMAP_WITH_SKIA) {
                        expiring.bitmap =
BitmapFactory.decodeStream(in);
                    } else {
                        final ByteArrayOutputStream dataStream = new
ByteArrayOutputStream();
                        out = new BufferedOutputStream(dataStream,
IOUtilities.IO_BUFFER_SIZE);
                        IOUtilities.copy(in, out);
                        out.flush();

                        final byte[] data = dataStream.toByteArray();
                        expiring.bitmap =
BitmapFactory.decodeByteArray(data, 0, data.length);
                    }

I think SKIA is the Image library written by google, at least used by
google.

What I don't get is why is he doing a test here and what is the
difference between the two types of loading ? They both are decoded by
BitmapFactory. Why would the result be different ?

Any insight ?

-- 

3. porting Android 2.2 with TSC2005 and a resistive touchscreen

4. Facebook = Done ; Twitter = Pending ; Developers please guide

5. Problem passing array from vertex to pixel shaders

6. SIP Demo and Android 2.3 problem

7. how to disable the "Clear data" Button (Froyo)