Trackball doesn't give me click events, but touch screen does

by Romain Guy » Thu, 12 Mar 2009 09:05:10 GMT


Sponsored Links
 gt; I'm trying to get the same behavior as Alarm Clock, where tapping on a

Indeed it does. ListView is not ready to do things like this really
but a way to do it (much better than how it was done in AlarmClock) is
to use a TouchDelegate for the checkbox.




--
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support. All such questions should be posted on
public forums, where I and others can see and answer them

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



Trackball doesn't give me click events, but touch screen does

by Romain Guy » Thu, 12 Mar 2009 10:03:42 GMT


 BTW did you call setItemsCanFocus(true) on your ListView?









-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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


Sponsored Links


Other Threads

1. Views - Orientation Change

Do Views know changes in orientation? In my case, I create popups from
TextView and need to know when the orientation changes(porttrait<--

Thanks.
--~--~---------~--~----~------------~-------~--~----~

2. NumberFormat and comma as decimal separator

I have a program that allows users to enter decimal numbers. One user
noted that my program requires that he use a period as the decimal
separator even though in his country (Germany) they use the comma
instead. No problem, I looked at my code and realized I was
constructing a DecimalFormat directly instead of using
NumberFormat.getInstance() and changed my code as follows:

formatter = NumberFormat.getNumberInstance();
if (formatter instanceof DecimalFormat) {
    DecimalFormat format = (DecimalFormat)formatter;
    format.applyPattern(PATTERN);
}

I then was going to test it in the emulator and changed my locale to
German. While the language changed there was no change to the number
format and it still used the period as the decimal separator.
Iterating over NumberFormat.getAvailableLocales() I can see that only
English and Japan based countries are returned in the emulator and all
those countries use the period not the comma.

Any ideas on how can I test my changes to make sure they work? I can
override the decimal separator which works fine for testing the
display of numbers, unfortunately the keyboard won't allow me to enter
a comma in a numeric field to test the parsing. My personal Android
phone only supports English and French. I tried changing it to French
but still get the period as the separator, feeling kind of stumped
here.

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

3. Dynamic Image loading from Resources in ImageView

4. How to create new APN setting

5. Repairing the 1.6 install

6. Layout one horizontal line with two TextViews

7. MyLocationOverlay vs. Service with Locationlistener