mirror of
https://github.com/jamessanford/kegs.git
synced 2025-08-15 12:27:38 +00:00
Use pure black background. Bitmap scale must be at least 1.
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false"/>
|
<uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false"/>
|
||||||
|
|
||||||
<application android:icon="@drawable/icon" android:label="@string/app_name" android:description="@string/app_description" android:hardwareAccelerated="true">
|
<application android:icon="@drawable/icon" android:label="@string/app_name" android:description="@string/app_description" android:hardwareAccelerated="true">
|
||||||
<activity android:name="KegsMain" android:launchMode="singleInstance" android:configChanges="orientation|keyboard|keyboardHidden|screenSize" android:windowSoftInputMode="stateAlwaysVisible|adjustPan">
|
<activity android:name="KegsMain" android:launchMode="singleInstance" android:configChanges="orientation|keyboard|keyboardHidden|screenSize" android:theme="@style/Theme.BlackBackground">
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
9
res/values-v11/styles.xml
Normal file
9
res/values-v11/styles.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- For API level 11 and later, use a parent of Theme.Holo. -->
|
||||||
|
|
||||||
|
<resources>
|
||||||
|
<style name="Theme.BlackBackground" parent="android:Theme.Holo">
|
||||||
|
<item name="android:windowBackground">@drawable/screen_background_black</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
4
res/values/colors.xml
Normal file
4
res/values/colors.xml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<drawable name="screen_background_black">#ff000000</drawable>
|
||||||
|
</resources>
|
7
res/values/styles.xml
Normal file
7
res/values/styles.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<resources>
|
||||||
|
<style name="Theme.BlackBackground" parent="android:Theme">
|
||||||
|
<item name="android:windowBackground">@drawable/screen_background_black</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
@@ -85,6 +85,7 @@ class BitmapSize {
|
|||||||
|
|
||||||
// Force integer scaling on X axis.
|
// Force integer scaling on X axis.
|
||||||
scaleX = (float)Math.round((width * 0.9) / 640);
|
scaleX = (float)Math.round((width * 0.9) / 640);
|
||||||
|
scaleX = Math.max(1, scaleX);
|
||||||
// TODO: Fix '48' hack being used for system buttons or soft buttons.
|
// TODO: Fix '48' hack being used for system buttons or soft buttons.
|
||||||
scaleY = Math.min(scaleX, (height - 48) / 400.0f);
|
scaleY = Math.min(scaleX, (height - 48) / 400.0f);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user