abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/EmojiGridView.java
diff options
context:
space:
mode:
authorJules Aguillon2021-12-28 19:12:50 +0100
committerJules Aguillon2021-12-28 19:12:50 +0100
commit40b1ec63a932606fb432ee81801acf147e9ee70e (patch)
tree8215f0203f449be7b1d2f06199f4ae726e3edd6c /srcs/juloo.keyboard2/EmojiGridView.java
parent93704cca0ace3bff31dea5d3841ba185ad89398a (diff)
downloadunexpected-keyboard-40b1ec63a932606fb432ee81801acf147e9ee70e.tar.gz
unexpected-keyboard-40b1ec63a932606fb432ee81801acf147e9ee70e.zip
Use the themes abstraction
Themes replace 'colors.xml' and soon will replace 'dimens.xml'.
Diffstat (limited to 'srcs/juloo.keyboard2/EmojiGridView.java')
-rw-r--r--srcs/juloo.keyboard2/EmojiGridView.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/srcs/juloo.keyboard2/EmojiGridView.java b/srcs/juloo.keyboard2/EmojiGridView.java
index 9fc08be..eb2d6df 100644
--- a/srcs/juloo.keyboard2/EmojiGridView.java
+++ b/srcs/juloo.keyboard2/EmojiGridView.java
@@ -24,7 +24,6 @@ public class EmojiGridView extends GridView
public static final int GROUP_LAST_USE = -1;
public static final int COLUMN_WIDTH = 192;
- public static final float EMOJI_SIZE = 32.f;
private static final String LAST_USE_PREF = "emoji_last_use";
@@ -120,10 +119,8 @@ public class EmojiGridView extends GridView
public EmojiView(Context context)
{
super(context);
- setTextSize(EMOJI_SIZE);
+ setTextAppearance(context, R.style.emojiGridButton);
setGravity(Gravity.CENTER);
- setBackgroundColor(0x0);
- setTextColor(getResources().getColor(R.color.emoji_color));
setLayoutParams(new GridView.LayoutParams(GridView.LayoutParams.WRAP_CONTENT, GridView.LayoutParams.WRAP_CONTENT));
}