From aa9f8421107c1101604636a1177831d699dc8486 Mon Sep 17 00:00:00 2001 From: TwistedUmbrella Date: Sun, 16 Feb 2014 18:18:55 -0500 Subject: [PATCH] Add a text outline to allow visibility when view matches text --- shell/android/res/values/styles.xml | 11 +++++++++++ .../src/com/reicast/emulator/emu/OnScreenMenu.java | 6 ++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/shell/android/res/values/styles.xml b/shell/android/res/values/styles.xml index a68a43f5f..f65b3b7c0 100644 --- a/shell/android/res/values/styles.xml +++ b/shell/android/res/values/styles.xml @@ -29,5 +29,16 @@ wrap_content center_vertical + + \ No newline at end of file diff --git a/shell/android/src/com/reicast/emulator/emu/OnScreenMenu.java b/shell/android/src/com/reicast/emulator/emu/OnScreenMenu.java index 5552b2bb1..27b15eef0 100644 --- a/shell/android/src/com/reicast/emulator/emu/OnScreenMenu.java +++ b/shell/android/src/com/reicast/emulator/emu/OnScreenMenu.java @@ -9,7 +9,6 @@ import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Color; import android.os.Environment; -import android.util.TypedValue; import android.view.Gravity; import android.view.View; import android.view.View.OnClickListener; @@ -74,9 +73,8 @@ public class OnScreenMenu { super(c); setBackgroundDrawable(null); fpsText = new TextView(mContext); - fpsText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 32); - fpsText.setTextColor(Color.YELLOW); - fpsText.setBackgroundColor(Color.TRANSPARENT); + fpsText.setTextAppearance(mContext, + R.style.fpsOverlayText); fpsText.setGravity(Gravity.CENTER); fpsText.setText("XX"); setContentView(fpsText);