diff options
author | Yabin Huang <yabinh@google.com> | 2020-05-14 19:10:18 -0700 |
---|---|---|
committer | Yabin Huang <yabinh@google.com> | 2020-05-14 19:10:18 -0700 |
commit | d88710d7936f7fbc47847ad612286f90a9f56af9 (patch) | |
tree | cf34a2c9bba77e2d20f475a6de6e89a62c677baa /RotaryPlayground | |
parent | 2b23780eadb2a3d42ad2d2341bd5d7098671d183 (diff) | |
download | tests-d88710d7936f7fbc47847ad612286f90a9f56af9.tar.gz |
Add a FocusParkingView
Fixes: 156689453
Test: manual
Change-Id: I5e00181d908d301358ed14e2787c97d204abd1b1
Diffstat (limited to 'RotaryPlayground')
-rw-r--r-- | RotaryPlayground/res/layout/rotary_activity.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/RotaryPlayground/res/layout/rotary_activity.xml b/RotaryPlayground/res/layout/rotary_activity.xml index 2e63d6b..7086cb8 100644 --- a/RotaryPlayground/res/layout/rotary_activity.xml +++ b/RotaryPlayground/res/layout/rotary_activity.xml @@ -20,6 +20,15 @@ android:layout_width="match_parent" android:layout_height="match_parent"> + <!-- When not in touch mode, if we clear focus in current window, Android will re-focus the + first focusable view in the window automatically. Adding a FocusParkingView to the window + can fix this issue, because it can take focus, and it is transparent and its default focus + highlight is disabled, so it's invisible to the user no matter whether it's focused or not. + --> + <com.android.car.ui.FocusParkingView + android:layout_width="1dp" + android:layout_height="1dp"/> + <FrameLayout android:id="@+id/rotary_menu" android:layout_width="@dimen/menu_width" |