markwei fe345e5611 Implement custom Chip keyboard focus support.
Left/right can move focus to the chip and close icon, after which focus jumps outside the chip.
Up/down/tab moves the focus outside the chip.

Whenever focus is newly gained, always focus the chip first. This is true even if focus is coming from the right.

We have to handle the keyboard focus explicitly, instead of relying on the ExploreByTouchHelper.
The reason is that one of our logical sub-views is the special identifier HOST_ID, which corresponds to the entire chip.
ExploreByTouchHelper seems to only work when all the sub-views are virtual views instead.

PiperOrigin-RevId: 173362171
2017-11-14 14:01:54 -05:00
2017-11-14 13:41:35 -05:00
2017-04-19 16:56:46 -07:00
2016-12-12 16:01:31 -08:00
2017-05-08 16:48:53 -07:00
2017-09-22 15:15:51 -04:00
2017-05-09 13:01:29 -07:00

Build Status Chat

Material Components for Android

Material Components for Android (MDC-Android) help developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional Android apps.

Material Components for Android are based on Android’s Design support library (DesignLib) which will continue to be released as part of Android’s SDK.

Documentation

Description
Modular and customizable Material Design UI components for Android
Readme Apache-2.0 191 MiB
Languages
Java 99.9%
Kotlin 0.1%