From 649684189468206b46778bbc18d8bb47e66f7be1 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Mon, 4 Dec 2017 22:33:46 +0100 Subject: [PATCH] Android support (still not useable, just a test) --- res/drawable-v24/ic_launcher_foreground.xml | 34 +++++ res/drawable/ic_launcher_background.xml | 74 ++++++++++ res/layout/activity_main.xml | 61 ++++++++ res/layout/activity_say_it.xml | 16 +++ res/layout/fragment_android_reader_book.xml | 41 ++++++ res/layout/fragment_android_reader_group.xml | 15 ++ res/mipmap-anydpi-v26/ic_launcher.xml | 5 + res/mipmap-anydpi-v26/ic_launcher_round.xml | 5 + res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 14004 bytes res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 14004 bytes res/mipmap-ldpi/ic_launcher.png | Bin 0 -> 6009 bytes res/mipmap-ldpi/ic_launcher_round.png | Bin 0 -> 6009 bytes res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 7956 bytes res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 7956 bytes res/mipmap-tvdpi/ic_launcher.png | Bin 0 -> 11698 bytes res/mipmap-tvdpi/ic_launcher_round.png | Bin 0 -> 11698 bytes res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 21288 bytes res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 21288 bytes res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 42125 bytes res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 42125 bytes res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 68587 bytes res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 68587 bytes res/values/colors.xml | 6 + res/values/strings.xml | 8 ++ res/values/styles.xml | 8 ++ src/AndroidManifest.xml | 24 ++++ .../fanfix/reader/android/AndroidReader.java | 62 ++++++++ .../reader/android/AndroidReaderActivity.java | 135 ++++++++++++++++++ .../reader/android/AndroidReaderBook.java | 118 +++++++++++++++ .../reader/android/AndroidReaderGroup.java | 82 +++++++++++ .../nikiroo/fanfix/reader/android/SayIt.java | 25 ++++ 31 files changed, 719 insertions(+) create mode 100644 res/drawable-v24/ic_launcher_foreground.xml create mode 100644 res/drawable/ic_launcher_background.xml create mode 100644 res/layout/activity_main.xml create mode 100644 res/layout/activity_say_it.xml create mode 100644 res/layout/fragment_android_reader_book.xml create mode 100644 res/layout/fragment_android_reader_group.xml create mode 100644 res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 res/mipmap-hdpi/ic_launcher.png create mode 100644 res/mipmap-hdpi/ic_launcher_round.png create mode 100644 res/mipmap-ldpi/ic_launcher.png create mode 100644 res/mipmap-ldpi/ic_launcher_round.png create mode 100644 res/mipmap-mdpi/ic_launcher.png create mode 100644 res/mipmap-mdpi/ic_launcher_round.png create mode 100644 res/mipmap-tvdpi/ic_launcher.png create mode 100644 res/mipmap-tvdpi/ic_launcher_round.png create mode 100644 res/mipmap-xhdpi/ic_launcher.png create mode 100644 res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 res/mipmap-xxhdpi/ic_launcher.png create mode 100644 res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 res/values/colors.xml create mode 100644 res/values/strings.xml create mode 100644 res/values/styles.xml create mode 100644 src/AndroidManifest.xml create mode 100644 src/be/nikiroo/fanfix/reader/android/AndroidReader.java create mode 100644 src/be/nikiroo/fanfix/reader/android/AndroidReaderActivity.java create mode 100644 src/be/nikiroo/fanfix/reader/android/AndroidReaderBook.java create mode 100644 src/be/nikiroo/fanfix/reader/android/AndroidReaderGroup.java create mode 100644 src/be/nikiroo/fanfix/reader/android/SayIt.java diff --git a/res/drawable-v24/ic_launcher_foreground.xml b/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..c7bd21db --- /dev/null +++ b/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/res/drawable/ic_launcher_background.xml b/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..01f0af0a --- /dev/null +++ b/res/drawable/ic_launcher_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml new file mode 100644 index 00000000..6187f32d --- /dev/null +++ b/res/layout/activity_main.xml @@ -0,0 +1,61 @@ + + + + + +