feat: modification de l'affichage vers le plein ecran ajout de permission pour vibration, internet ...
This commit is contained in:
parent
97529e6de7
commit
d85c5316ba
|
@ -5,6 +5,10 @@
|
||||||
android:versionName="1.0" >
|
android:versionName="1.0" >
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="21" />
|
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="21" />
|
||||||
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
|
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||||
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||||
|
<uses-permission android:name="android.permission.CAMERA"/>
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
|
|
|
@ -4,6 +4,7 @@ com.badlogic.gdx.graphics.Color: {
|
||||||
green: { a: 1, b: 0, g: 1, r: 0 },
|
green: { a: 1, b: 0, g: 1, r: 0 },
|
||||||
white: { a: 1, b: 1, g: 1, r: 1 },
|
white: { a: 1, b: 1, g: 1, r: 1 },
|
||||||
red: { a: 1, b: 0, g: 0, r: 1 },
|
red: { a: 1, b: 0, g: 0, r: 1 },
|
||||||
|
grey: { a: 1, b: 0.75, g: 0.75, r: 0.75 },
|
||||||
black: { a: 1, b: 0, g: 0, r: 0 }
|
black: { a: 1, b: 0, g: 0, r: 0 }
|
||||||
},
|
},
|
||||||
com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: {
|
com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: {
|
||||||
|
@ -42,6 +43,7 @@ com.badlogic.gdx.scenes.scene2d.ui.Slider$SliderStyle: {
|
||||||
},
|
},
|
||||||
com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle: {
|
com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle: {
|
||||||
default: { font: default-font, fontColor: white }
|
default: { font: default-font, fontColor: white }
|
||||||
|
grey: { font: default-font, fontColor: grey }
|
||||||
},
|
},
|
||||||
com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle: {
|
com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle: {
|
||||||
default: { selection: selection, background: textfield, font: default-font, fontColor: white, cursor: cursor }
|
default: { selection: selection, background: textfield, font: default-font, fontColor: white, cursor: cursor }
|
||||||
|
@ -50,7 +52,7 @@ com.badlogic.gdx.scenes.scene2d.ui.CheckBox$CheckBoxStyle: {
|
||||||
default: { checkboxOn: check-on, checkboxOff: check-off, font: default-font, fontColor: white }
|
default: { checkboxOn: check-on, checkboxOff: check-off, font: default-font, fontColor: white }
|
||||||
},
|
},
|
||||||
com.badlogic.gdx.scenes.scene2d.ui.List$ListStyle: {
|
com.badlogic.gdx.scenes.scene2d.ui.List$ListStyle: {
|
||||||
default: { fontColorUnselected: white, selection: default-rect-pad, fontColorSelected: white, font: default-font }
|
default: { fontColorUnselected: white, selection: default-rect-pad, fontColorSelected: white, font: default-font, background: default-window }
|
||||||
},
|
},
|
||||||
com.badlogic.gdx.scenes.scene2d.ui.Touchpad$TouchpadStyle: {
|
com.badlogic.gdx.scenes.scene2d.ui.Touchpad$TouchpadStyle: {
|
||||||
default: { background: default-pane, knob: default-round-large }
|
default: { background: default-pane, knob: default-round-large }
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
package fr.evolving.game.android;
|
package fr.evolving.game.android;
|
||||||
|
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.view.View;
|
||||||
|
import android.view.Window;
|
||||||
|
import android.view.WindowManager;
|
||||||
|
|
||||||
import com.badlogic.gdx.backends.android.AndroidApplication;
|
import com.badlogic.gdx.backends.android.AndroidApplication;
|
||||||
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
|
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
|
||||||
|
@ -10,7 +14,16 @@ public class AndroidLauncher extends AndroidApplication {
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate (Bundle savedInstanceState) {
|
protected void onCreate (Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||||
|
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
|
||||||
|
WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||||
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
||||||
|
config.useImmersiveMode = true;
|
||||||
|
//cfg.hideStatusBar = true; //set to true by default
|
||||||
|
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){
|
||||||
|
getWindow().getDecorView().setSystemUiVisibility(View.STATUS_BAR_VISIBLE);
|
||||||
|
getWindow().getDecorView().setSystemUiVisibility(View.STATUS_BAR_HIDDEN);
|
||||||
|
}
|
||||||
initialize(new main(), config);
|
initialize(new main(), config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue