diff --git a/res/layout/settings_homepage_container.xml b/res/layout/settings_homepage_container.xml index d6c4aeff504..f210c542542 100644 --- a/res/layout/settings_homepage_container.xml +++ b/res/layout/settings_homepage_container.xml @@ -33,8 +33,7 @@ android:id="@+id/homepage_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical" - android:descendantFocusability="blocksDescendants"> + android:orientation="vertical"> + android:layout_height="wrap_content" + android:touchscreenBlocksFocus="false" + android:keyboardNavigationCluster="false"> diff --git a/src/com/android/settings/homepage/SettingsHomepageActivity.java b/src/com/android/settings/homepage/SettingsHomepageActivity.java index 5e6c54bb7c2..a8426437f57 100644 --- a/src/com/android/settings/homepage/SettingsHomepageActivity.java +++ b/src/com/android/settings/homepage/SettingsHomepageActivity.java @@ -90,5 +90,9 @@ public class SettingsHomepageActivity extends FragmentActivity { // The top padding is the height of action bar(48dp) + top/bottom margins(16dp) final int paddingTop = searchBarHeight + searchBarMargin * 2; view.setPadding(0 /* left */, paddingTop, 0 /* right */, 0 /* bottom */); + + // Prevent inner RecyclerView gets focus and invokes scrolling. + view.setFocusableInTouchMode(true); + view.requestFocus(); } -} \ No newline at end of file +}