Skip to content
Commit 3f89c4ac authored by Jorge Gil's avatar Jorge Gil
Browse files

Use ImageButtons instead of Buttons in handle menu

Using <Button> + android:background to set the icon drawable
results in the android:padding attribute having no effect. That
meant that the touch target for handle menu windowing buttons
was effectively 32dp (its width/height).
By using an ImageButton + android:src, padding actually does take
effect, so the touch target is now 40dp (its width/height) and
the icon remains the same size (32dp) due to the 4dp padding.

Bug: 270412904
Test: manual - caption windowing buttons are same size, but click
target is slightly bigger

Change-Id: Ia1e77533fb65630e9eaf6108dce7cf5240c176f7
parent 2b9ee44d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment