Oct 18 | 7:25 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Oct 18 | 7:30 PM |
soli | has entered the room |
Mark M. |
howdy, soli!
|
soli |
Hi Mark!
|
Mark M. |
how can I help you today?
|
soli |
View paste
|
Mark M. |
well, all else being equal, you may as well start with CursorAdapter
|
Mark M. |
after all, your DB query results will be in the form of a Cursor, right?
|
soli |
i guess you're right:).. wasn't sure
|
Oct 18 | 7:35 PM |
soli |
thanks!
|
Mark M. |
happy to help!
|
soli |
have a good night (going to sleep now. 1.30 am here)
|
Mark M. |
goodnight!
|
Oct 18 | 7:50 PM |
soli | has left the room |
Oct 18 | 8:00 PM |
Aeounst | has entered the room |
Aeounst |
Hey Mark
|
Mark M. |
howdy, Aeounst!
|
Mark M. |
how can I help you today?
|
Aeounst |
I've got an interesting interaction scenario on a large screen
|
Aeounst |
i've got a listview in a smaller portion within my larger interface
|
Aeounst |
it's totally big enough to fling through and interact via touch
|
Aeounst |
but in d-pad only navigation, there's no way to scroll the list
|
Oct 18 | 8:05 PM |
Mark M. |
you mean the d-pad doesn't allow navigation to give the ListView the focus?
|
Mark M. |
what has the focus?
|
Aeounst |
you can focus over the listview, but when you press down, it moves the focus to the next item down (as it should)
|
Aeounst |
i'd like to be able to use the select button on the d-pad to put focus *inside* the list
|
Aeounst |
so that up and down control the list
|
Mark M. |
add android:nextFocusDown to the thing above it
|
Mark M. | |
Mark M. |
the value is the ID of the widget that should get the focus when a d-pad down event happens
|
Aeounst |
ah i don't think i was being clear...
|
Aeounst |
a normal scenario has the user navigating through the controls from top to bottom
|
Aeounst |
in the middle is a listview containing N comments
|
Aeounst |
oftentimes there are more comments than to show in
the size of the listview, so it has to scroll (fair enough in a touch
environment)
|
Aeounst |
but in a d-pad only environment, is there a way to
"select" the listview such that up and down scroll the list (Rather
than navigate between the controls as it normally does)?
|
Mark M. |
well, two things
|
Mark M. |
first, it should do that automatically, once it has the focus
|
Mark M. |
second, you probably should rethink your UI design
|
Mark M. |
you are running into the same sort of navigation issue that they warn you about for Google TV
|
Aeounst |
hmmm yeah
|
Aeounst |
where is that warning? would be good to nkow
|
Oct 18 | 8:10 PM |
Mark M. |
having the ListView at the bottom would be OK, but not the middle, as they'll never get to the stuff below it
|
Mark M. |
should be in https://developers.google.com/tv/android/d…
|
Aeounst |
ah okay
|
Aeounst |
but even if at the bottom, you would have to scroll all the way back to the top of the list view to go to the control above it?
|
Mark M. |
yes, go most of the way down that page to "D-pad interaction traps"
|
Aeounst |
almost like it needs to be "Stashed" on the left or right side
|
Mark M. |
that too
|
Mark M. |
right
|
Mark M. |
that's what they recommend for TVs
|
Aeounst |
ahhh great
|
Aeounst |
that's good
|
Aeounst |
thanks
|
Mark M. |
and for larger screens in landscape, it's usually doable too
|
Mark M. |
portrait might get problematic
|
Aeounst |
right
|
Aeounst |
it's mainly for a TV interface in fact
|
Mark M. |
oh, well, definitely follow the Google TV guidance -- good stuff there
|
Aeounst |
awesome.... thanks!
|
Aeounst | has left the room |
Oct 18 | 8:30 PM |
Mark M. | turned off guest access |