Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7919995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:03:28+00:00 2026-06-03T16:03:28+00:00

I have an activity in a Google TV app, that displays 4 columns. The

  • 0

I have an activity in a Google TV app, that displays 4 columns. The top-level widget in the layout is a horizontal LinearLayout, which contains the widgets that make up the columns. The 4 column widgets (from left to right) are: Vertical LinearLayout (containing buttons), ListFragment, ListFragment, Vertical LinearLayout (containing TextViews).

When populated with data, the 2 ListFragments are much taller than the visible height of the screen, and can be scrolled independently to move up/down on the list. This all works very well, except for some unwanted auto-scrolling on the ListFragments, when I move focus between columns.

For example, if I am focused at the top of the 2nd column (the left-most ListFragment) and I use the d-pad to move focus down to the middle of the visible screen, and then I push the right key on the d-pad (to move horizontally into the other ListFragment) the list item (in the 2nd ListFragment) that was alongside the focused item in the 1st ListFragment, receives focus (which is good) but at the same time the 2nd ListFragment auto-scrolls vertically, to push the newly focused item to the top of the visible screen (which is bad). Instead I want it to stay where it was (in the middle of the list).

The same problem happens if I move left from the middle of the 2nd ListFragment, back into the 1st one. It also happens if I move right from one of the buttons in the 1st column, into the middle of the 1st ListFragment.

I understand that this auto-scroll behavior may be desirable for some applications, but in my app its not really appropriate, and causes user confusion.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:03:29+00:00Added an answer on June 3, 2026 at 4:03 pm

    It seems like a bug in ListView d-pad navigation between parallel vertical fragments. Please try reproducing it on a tablet and file a bug in the Android issue tracker.

    Meanwhile you could use the following workaround:

      @Override
        public boolean onKeyDown(int keyCode, KeyEvent event) {
            // workaround to handle keyevent dpad-right from left list to right list, to 
            // to prevent default behavior of focused item on right list snapping to top.             
            if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) {
                if (left_list != null && right_list != null && left_list.isFocused()){
                    right_list.setSelection(right_list_selected_index);
                    right_list.requestFocus();
                    return true;
                }
            } 
            return super.onKeyDown(keyCode, event);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Android Activity that displays Google Maps through MapView control and extending
I have a very simple app for Android that displays a Google Maps view
in my app i have activity with XML layout, i want to build an
I've made a very simple app that just displays a Google map. However, it
I have an Android app that creates its own files in Google Drive with
I have a code in my app that prompts user to add Google account
In my Android Application I have a Google MapView Activity and I am facing
I am having trouble with my activity management. So I have activity A which
I have an activity that when users press share on a file it would
I have an Activity A that calls an Activity B using startActivityForResult() . Under

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.