mirror of
https://github.com/jwinterm/grim.git
synced 2026-11-15 18:23:55 +01:00
game-activity depends on egui-winit example
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package mw.gri.android;
|
||||
|
||||
import android.app.NativeActivity;
|
||||
import android.os.Bundle;
|
||||
import android.system.ErrnoException;
|
||||
import android.system.Os;
|
||||
import android.view.WindowManager;
|
||||
import androidx.core.view.WindowCompat;
|
||||
import com.google.androidgamesdk.GameActivity;
|
||||
|
||||
public class MainActivity extends NativeActivity {
|
||||
public class MainActivity extends GameActivity {
|
||||
|
||||
static {
|
||||
System.loadLibrary("grin_android");
|
||||
@@ -19,6 +19,7 @@ public class MainActivity extends NativeActivity {
|
||||
} catch (ErrnoException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
WindowCompat.setDecorFitsSystemWindows(getWindow(), true);
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.Main" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<style name="Theme.Main" parent="Theme.MaterialComponents.DayNight.NoActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/purple_200</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
|
||||
Reference in New Issue
Block a user