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);