mirror of
https://github.com/jamessanford/kegs.git
synced 2025-01-23 22:31:05 +00:00
Use pure black background. Bitmap scale must be at least 1.
This commit is contained in:
parent
ab5f7bd39a
commit
3f106b9ce0
@ -11,7 +11,7 @@
|
||||
<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">
|
||||
<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>
|
||||
<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.
|
||||
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.
|
||||
scaleY = Math.min(scaleX, (height - 48) / 400.0f);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user