Fixing focus in grid mode.

Test: There's an UI test:
KeyboardNavigationUiTest#testKeyboard_tabFocuses.
Bug: 34231190
Change-Id: I0f08659692b128d69644a7ad6495feb09fe41e91
(cherry picked from commit 1fdf448e3d7ea9c1890fd856a07fdd8f036211ea)
diff --git a/res/layout/item_dir_grid.xml b/res/layout/item_dir_grid.xml
index 917f3f0..94e741f 100644
--- a/res/layout/item_dir_grid.xml
+++ b/res/layout/item_dir_grid.xml
@@ -26,7 +26,8 @@
 
     <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:duplicateParentState="true">
 
         <!-- The height is 48px.
              paddingTop (9dp) + @dimen/check_icon_size (30dp) + paddingBottom (9dp) -->
diff --git a/res/layout/item_doc_grid.xml b/res/layout/item_doc_grid.xml
index 5b8ba30..53b29fc 100644
--- a/res/layout/item_doc_grid.xml
+++ b/res/layout/item_doc_grid.xml
@@ -25,7 +25,8 @@
 
     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:duplicateParentState="true">
 
         <!-- Main item thumbnail.  Comprised of two overlapping images, the
              visibility of which is controlled by code in