Skip to content

Commit d3871c5

Browse files
Gilles DebunneAndroid (Google) Code Review
authored andcommitted
Merge "New underline color for the Voice recognized suggestions"
2 parents b9e7e13 + c2deadc commit d3871c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/java/android/widget/TextView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9930,7 +9930,7 @@ private void updateSuggestions() {
99309930
// Fallback on the default highlight color when the first span does not provide one
99319931
mSuggestionRangeSpan.setBackgroundColor(mHighlightColor);
99329932
} else {
9933-
final float BACKGROUND_TRANSPARENCY = 0.3f;
9933+
final float BACKGROUND_TRANSPARENCY = 0.4f;
99349934
final int newAlpha = (int) (Color.alpha(underlineColor) * BACKGROUND_TRANSPARENCY);
99359935
mSuggestionRangeSpan.setBackgroundColor(
99369936
(underlineColor & 0x00FFFFFF) + (newAlpha << 24));

core/res/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ please see styles_device_defaults.xml.
250250
</style>
251251

252252
<style name="TextAppearance.EasyCorrectSuggestion" parent="TextAppearance.Suggestion">
253-
<item name="android:textUnderlineColor">#ff888888</item>
253+
<item name="android:textUnderlineColor">#ffC8C8C8</item>
254254
</style>
255255

256256
<style name="TextAppearance.MisspelledSuggestion" parent="TextAppearance.Suggestion">

0 commit comments

Comments
 (0)