Office Hours — Today, October 18

Tuesday, October 16

Oct 18
7:25 PM
Mark M.
has entered the room
Mark M.
turned on guest access
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
i want to create a gridview which shows images from my app's db
(contains the uri of images that the user chose).
Which adapter should i extend? BaseAdapter(with a cursor) or CursorAdapter?
Mark M.
well, all else being equal, you may as well start with CursorAdapter
after all, your DB query results will be in the form of a Cursor, right?
soli
i guess you're right:).. wasn't sure
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!
7:50 PM
soli
has left the room
8:00 PM
Aeounst
has entered the room
Aeounst
Hey Mark
Mark M.
howdy, Aeounst!
how can I help you today?
Aeounst
I've got an interesting interaction scenario on a large screen
i've got a listview in a smaller portion within my larger interface
it's totally big enough to fling through and interact via touch
but in d-pad only navigation, there's no way to scroll the list
8:05 PM
Mark M.
you mean the d-pad doesn't allow navigation to give the ListView the focus?
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)
i'd like to be able to use the select button on the d-pad to put focus *inside* the list
so that up and down control the list
Mark M.
add android:nextFocusDown to the thing above it
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...
a normal scenario has the user navigating through the controls from top to bottom
in the middle is a listview containing N comments
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)
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
first, it should do that automatically, once it has the focus
second, you probably should rethink your UI design
you are running into the same sort of navigation issue that they warn you about for Google TV
Aeounst
hmmm yeah
where is that warning? would be good to nkow
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
Aeounst
ah okay
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
right
that's what they recommend for TVs
Aeounst
ahhh great
that's good
thanks
Mark M.
and for larger screens in landscape, it's usually doable too
portrait might get problematic
Aeounst
right
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
8:30 PM
Mark M.
turned off guest access

Tuesday, October 16

 

Office Hours

People in this transcript

  • Aeounst
  • Mark Murphy
  • soli