OSDN Git Service

Fix material style errors in suggestion popup window.
authorSeigo Nonaka <nona@google.com>
Tue, 19 Jan 2016 04:54:59 +0000 (13:54 +0900)
committerSeigo Nonaka <nona@google.com>
Wed, 20 Jan 2016 04:45:00 +0000 (13:45 +0900)
commit3ed1b39f407fb7028115eb25d1adf44d5f5d95bb
tree86a1f0519202fd4d73ac0e9ae33d800524ebee0a
parenta0b16caf88f06189daaf4ded007c46db0dae5fe5
Fix material style errors in suggestion popup window.

This CL addresses the material style errors from UX team.

- Corners should have a radius of 2dp.
To use the same way with floating toolbar, make the popup window transparent and
set floatingToolbarPopupBackgroundDrawable as the layout background. By this
change, TextSuggestionsPopupWindow style is no longer necessary, removed it.

- Background color for both sections should be #FFFFFF.
It turned out that the window default background is not white. By addressing
above item, this issue is fixed too.

- Divider line alpha=.12
This is fixed by using attr/listDivider instead of attr/dividerHorizontal.

- Remove 8dp padding below last suggestion
Removed 8dip paddingBottom from ListView.

Bug: 15347319

Change-Id: I579c0cc5b7f0dd337bff54af77828b8af25b13d2
core/java/android/widget/Editor.java
core/res/res/layout/text_edit_suggestion_container.xml
core/res/res/layout/text_edit_suggestion_container_material.xml
core/res/res/values/styles.xml
core/res/res/values/styles_device_defaults.xml
core/res/res/values/styles_holo.xml
core/res/res/values/styles_material.xml
core/res/res/values/themes_device_defaults.xml
core/res/res/values/themes_holo.xml
core/res/res/values/themes_material.xml