replace some dividers with shape drawables, avoids them turning green depending on some display settings
|
@ -56,10 +56,6 @@ public class MoreKeysKeyboardView extends KeyboardView implements MoreKeysPanel
|
|||
final TypedArray moreKeysKeyboardViewAttr = context.obtainStyledAttributes(attrs,
|
||||
R.styleable.MoreKeysKeyboardView, defStyle, R.style.MoreKeysKeyboardView);
|
||||
mDivider = moreKeysKeyboardViewAttr.getDrawable(R.styleable.MoreKeysKeyboardView_divider);
|
||||
if (mDivider != null) {
|
||||
// TODO: Drawable itself should have an alpha value.
|
||||
mDivider.setAlpha(128);
|
||||
}
|
||||
moreKeysKeyboardViewAttr.recycle();
|
||||
mKeyDetector = new MoreKeysDetector(getResources().getDimension(
|
||||
R.dimen.config_more_keys_keyboard_slide_allowance));
|
||||
|
|
Before Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 73 B |
Before Width: | Height: | Size: 100 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 100 B |
Before Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 138 B |
Before Width: | Height: | Size: 100 B |
Before Width: | Height: | Size: 100 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 106 B |
Before Width: | Height: | Size: 110 B |
7
app/src/main/res/drawable/more_keys_divider.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetTop="4dp" android:insetBottom="3dp"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#77FFFFFF"/>
|
||||
<size android:width="1dp" android:height="30dp"/>
|
||||
</shape>
|
6
app/src/main/res/drawable/suggestions_strip_divider.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#26080B0B"/>
|
||||
<size android:width="1dp" android:height="24dp"/>
|
||||
</shape>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#33000000"/>
|
||||
<size android:width="1dp" android:height="32dp"/>
|
||||
</shape>
|
|
@ -123,7 +123,7 @@
|
|||
<item name="maxMoreSuggestionsRow">@integer/config_max_more_suggestions_row</item>
|
||||
<item name="minMoreSuggestionsWidth">@fraction/config_min_more_suggestions_width</item>
|
||||
<item name="android:background">@drawable/keyboard_background_lxx_base</item>
|
||||
<item name="android:src">@drawable/suggestions_strip_divider_lxx_light</item>
|
||||
<item name="android:src">@drawable/suggestions_strip_divider</item>
|
||||
<item name="suggestionStripOptions">autoCorrectBold|validTypedWordBold</item>
|
||||
<item name="colorValidTypedWord">@color/typed_word_color_lxx_light</item>
|
||||
<item name="colorTypedWord">@color/typed_word_color_lxx_light</item>
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
<item name="maxMoreSuggestionsRow">@integer/config_max_more_suggestions_row</item>
|
||||
<item name="minMoreSuggestionsWidth">@fraction/config_min_more_suggestions_width</item>
|
||||
<item name="android:background">@drawable/keyboard_background_lxx_base</item>
|
||||
<item name="android:src">@drawable/suggestions_strip_divider_lxx_light</item>
|
||||
<item name="android:src">@drawable/suggestions_strip_divider</item>
|
||||
<item name="suggestionStripOptions">autoCorrectBold|validTypedWordBold</item>
|
||||
<item name="colorValidTypedWord">@color/typed_word_color_lxx_light</item>
|
||||
<item name="colorTypedWord">@color/typed_word_color_lxx_light</item>
|
||||
|
|