Update menu items for rotary mode
In the reference layout:
1. Make item_switch a child of icon_container so that item_switch can
drawable a blue circle focus highlight
2. Introduce text_container with the default focus highlight, and make
item_text and item_text_with_icon children of it so that they can draw
blue box focus highlight
3. Set the background of item_switch, item_text and item_text_with_icon
to null to avoid double touch ripple
In Java:
1. Add conditional check to support both old layout and new layout
2. For new layout, register click listener on icon_container or
text_container instead of its parent
3. Avoid updating the visibility of icon_container or text_container twice
Fixes: 165718675
Bug: 166157612
Bug: 161484085
Test: manual
Change-Id: Ic8e2650530c442231923d9e57d8cabb35feec90a
6 files changed