diff --git a/app/src/main/java/helium314/keyboard/latin/suggestions/SuggestionStripView.java b/app/src/main/java/helium314/keyboard/latin/suggestions/SuggestionStripView.java index 860759831..58dacf660 100644 --- a/app/src/main/java/helium314/keyboard/latin/suggestions/SuggestionStripView.java +++ b/app/src/main/java/helium314/keyboard/latin/suggestions/SuggestionStripView.java @@ -216,8 +216,6 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick colors.setColor(mToolbarExpandKey, ColorType.TOOL_BAR_EXPAND_KEY); mToolbarExpandKey.setBackground(new ShapeDrawable(new OvalShape())); // ShapeDrawable color is black, need src_atop filter mToolbarExpandKey.getBackground().setColorFilter(colors.get(ColorType.TOOL_BAR_EXPAND_KEY_BACKGROUND), PorterDuff.Mode.SRC_ATOP); - mToolbarExpandKey.getLayoutParams().height *= 0.82; // shrink the whole key a little (drawable not affected) - mToolbarExpandKey.getLayoutParams().width *= 0.82; for (final ToolbarKey pinnedKey : ToolbarUtilsKt.getPinnedToolbarKeys(prefs)) { final ImageButton button = createToolbarKey(context, iconsSet, pinnedKey); diff --git a/app/src/main/res/layout/suggestions_strip.xml b/app/src/main/res/layout/suggestions_strip.xml index ab2d27777..0995072aa 100644 --- a/app/src/main/res/layout/suggestions_strip.xml +++ b/app/src/main/res/layout/suggestions_strip.xml @@ -24,6 +24,8 @@ android:layout_gravity="center_vertical" android:layout_weight="0" android:layout_marginStart="4dp" + android:scaleType="centerCrop" + android:padding="2dp" style="?attr/suggestionWordStyle" android:contentDescription="@string/more_keys_strip_description" />