Office Hours — Today, June 21

Tuesday, June 19

Jun 21
7:25 PM
Mark M.
has entered the room
Mark M.
turned on guest access
Jeff D.
has entered the room
Mark M.
howdy, Jeff!
how can I help you today?
7:40 PM
Jeff D.
has left the room
7:45 PM
Yash
has entered the room
Yash
Hello Mark!
Mark M.
howdy, Yash!
how can I help you?
Yash
Have you worked with D-pad navigation on Google TV?
Mark M.
not much and not recently
Yash
This question is related to focus more than navaigation
Mark M.
feel free to ask, but I don't put high odds that I'll be able to help
7:50 PM
Yash
My question is how can you change focus between a List Fragment & Grid Fragment? This is my scenario: I have a list fragment on the left populated by some list items. When I click on any list item, the Grid Fragment on the right gets populated but I want the focus to remain on the list item selected/clicked.
When I hit right while on the list fragment, focus should move to Grid Fragment. Somehow, this does not work.
Mark M.
have you called setNextFocusRight() on the ListView in the ListFragment, to tell it to move focus to the GridView?
Yash
I have set in the xml
android:nextFocusRight = "@id/...."
Mark M.
then I have no idea why it would not work
what did you set the android:nextFocusRight on? the ListView? or the ListFragment?
7:55 PM
Yash
on the Fragment
Mark M.
you might need to actually set it on the ListView, by means of setNextFocusRight()
I don't know if android:nextFocusRight will cascade down from the <fragment> to the ListView
Yash
Hmm, that could possibly be the problem
I'll try it out, thanks!
8:00 PM
Mark M.
if you have another question, chime in
8:10 PM
Yash
Your tip helped! Thank you!
Mark M.
ah, cool
Yash
I also found out another view (not the Grid View) was gaining focus
I don't have any more questions, thank you!
8:15 PM
Mark M.
you are very welcome
8:30 PM
Mark M.
well that's it for today's chat
next one is Tuesday, 4pm Eastenr
er, Eastern
have a pleasant day!
Yash
has left the room
Mark M.
turned off guest access

Tuesday, June 19

 

Office Hours

People in this transcript

  • Jeff DePiazza
  • Mark Murphy
  • Yash