diff options
author | Yabin Huang <yabinh@google.com> | 2020-05-16 00:19:20 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-05-16 00:19:20 +0000 |
commit | 26038d631c5e4a7fa99af86040ba109c1b6b5179 (patch) | |
tree | 0814cc3cb1bf92557de3809033edd3c1ba5c91fa /RotaryPlayground | |
parent | bc73757f1f9482fd697afcb5ca8a7054c248b88e (diff) | |
parent | d88710d7936f7fbc47847ad612286f90a9f56af9 (diff) | |
download | tests-26038d631c5e4a7fa99af86040ba109c1b6b5179.tar.gz |
Merge "Add a FocusParkingView" into rvc-dev
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" |