commit | c516dd33a62fbc618de08ada0b4bfb0d3d332499 | [log] [tgz] |
---|---|---|
author | Wenyi Wang <wenyiw@google.com> | Thu Apr 07 16:25:51 2016 -0700 |
committer | Wenyi Wang <wenyiw@google.com> | Thu Apr 07 16:28:12 2016 -0700 |
tree | ad07d365712c5202db123b01ebc4d5f2af291714 | |
parent | 5feee39de4f49d626ed7806dacc1f17dbb3d7f17 [diff] |
Add empty view to avoid hamburger menu getting initial focus Inspired by this: https://cs.corp.google.com/android/packages/apps/Contacts/res/layout/custom_action_bar.xml?dr&q=getting%5C+the%5C+initial%5C+focus&sq=file:%5Epackages/apps/Contacts/+package:%5Eandroid$&l=1 Bug 28074283 Bug 27687799 Change-Id: Ia7e7436f1e7e7ba3e7afd75596566e04ba971677
diff --git a/res/layout/people_activity.xml b/res/layout/people_activity.xml index 8282e91..8b4dc18 100644 --- a/res/layout/people_activity.xml +++ b/res/layout/people_activity.xml
@@ -24,6 +24,15 @@ android:fitsSystemWindows="true" tools:openDrawer="start"> + <!-- To prevent hamburger menu from getting the initial focus. --> + <View + android:focusable="true" + android:focusableInTouchMode="true" + android:layout_width="1px" + android:layout_height="1px" > + <requestFocus/> + </View> + <RelativeLayout android:id="@+id/list_container" android:layout_width="match_parent"