From 8fc2b131908e23d47db4f70a153611fc1014d233 Mon Sep 17 00:00:00 2001 From: zilmar Date: Fri, 8 Jul 2016 22:43:51 +1000 Subject: [PATCH] [Android] Add about window --- Android/AndroidManifest.xml | 6 +- Android/res/layout/about_activity.xml | 35 +++++++ Android/res/layout/about_licence.xml | 8 ++ Android/res/layout/about_main.xml | 89 +++++++++++++++++ Android/res/layout/gallery_activity.xml | 1 + Android/res/layout/list_item_menu.xml | 1 + Android/res/layout/tab_layout.xml | 8 ++ Android/res/menu/gallery_drawer.xml | 22 ++--- Android/res/values/strings.xml | 15 ++- Android/res/values/styles.xml | 2 +- Android/src/emu/project64/AboutActivity.java | 96 +++++++++++++++++++ .../src/emu/project64/AboutPagerAdapter.java | 79 +++++++++++++++ .../src/emu/project64/GalleryActivity.java | 5 +- .../emu/project64/Project64Application.java | 9 ++ .../src/emu/project64/jni/NativeExports.java | 1 + Android/src/emu/project64/util/Utility.java | 37 +++++++ Source/Android/Bridge/jniBridge.cpp | 5 + 17 files changed, 397 insertions(+), 22 deletions(-) create mode 100644 Android/res/layout/about_activity.xml create mode 100644 Android/res/layout/about_licence.xml create mode 100644 Android/res/layout/about_main.xml create mode 100644 Android/res/layout/tab_layout.xml create mode 100644 Android/src/emu/project64/AboutActivity.java create mode 100644 Android/src/emu/project64/AboutPagerAdapter.java diff --git a/Android/AndroidManifest.xml b/Android/AndroidManifest.xml index 18262eff5..73ce387e3 100644 --- a/Android/AndroidManifest.xml +++ b/Android/AndroidManifest.xml @@ -74,6 +74,8 @@ android:name="android.app.lib_name" android:value="xperia-touchpad" /> - - + + diff --git a/Android/res/layout/about_activity.xml b/Android/res/layout/about_activity.xml new file mode 100644 index 000000000..b0c4d2a10 --- /dev/null +++ b/Android/res/layout/about_activity.xml @@ -0,0 +1,35 @@ + + + + + + + + + + diff --git a/Android/res/layout/about_licence.xml b/Android/res/layout/about_licence.xml new file mode 100644 index 000000000..a718e1eff --- /dev/null +++ b/Android/res/layout/about_licence.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/Android/res/layout/about_main.xml b/Android/res/layout/about_main.xml new file mode 100644 index 000000000..88abf48cf --- /dev/null +++ b/Android/res/layout/about_main.xml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Android/res/layout/gallery_activity.xml b/Android/res/layout/gallery_activity.xml index 0ca11fbcd..945d9f79c 100644 --- a/Android/res/layout/gallery_activity.xml +++ b/Android/res/layout/gallery_activity.xml @@ -47,6 +47,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="?attr/actionBarSize" + android:background="?attr/background_gallerymenu" /> diff --git a/Android/res/layout/list_item_menu.xml b/Android/res/layout/list_item_menu.xml index 6d9141cc3..5f296a483 100644 --- a/Android/res/layout/list_item_menu.xml +++ b/Android/res/layout/list_item_menu.xml @@ -34,6 +34,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="?attr/textMenuColor" android:textIsSelectable="false" /> \ No newline at end of file diff --git a/Android/res/menu/gallery_drawer.xml b/Android/res/menu/gallery_drawer.xml index eea49f063..2f3bb21af 100644 --- a/Android/res/menu/gallery_drawer.xml +++ b/Android/res/menu/gallery_drawer.xml @@ -1,27 +1,17 @@ - + - + - - - - - - + android:title="@string/menuItem_about" /> \ No newline at end of file diff --git a/Android/res/values/strings.xml b/Android/res/values/strings.xml index 0c98540c5..ffd42386b 100644 --- a/Android/res/values/strings.xml +++ b/Android/res/values/strings.xml @@ -29,7 +29,8 @@ About App version Hardware info - + Help/Forum + @@ -48,6 +49,18 @@ Audio Data + + Information + Project64 for Android + License + Revision + About + Project64 for Androidâ„¢ is a port of the windows version of project64. The Androidâ„¢ version can play most N64 games. + Project64 Authors. + <a href="www.pj64-emu.com">www.pj64-emu.com</a> + Copyleft © 1998–2016 by Project64.\n + Zilmar, Jabo, Smiff, Gent, Jahra!n, Witten, RadeonUser, Trotterwatch, pixi, Azimer, Gonetz, cxd4, AmbientMalice, LegendOfDragoon, Nekokabu, Lithium64, death-droid, LuigiBlood, dsx. + Recently played Library diff --git a/Android/res/values/styles.xml b/Android/res/values/styles.xml index 00fa9f85d..e0da1ebfd 100644 --- a/Android/res/values/styles.xml +++ b/Android/res/values/styles.xml @@ -12,7 +12,7 @@ @android:color/black @android:color/black - +