diff --git a/.gitignore b/.gitignore index de30b37..9ab267a 100755 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,9 @@ build_win/ # CLion .idea/ + +# Built apk +android/app/app-release.apk + +# Keystore +android/keystore.jks diff --git a/android/app/src/main/java/game/openrayman/GameChooserActivity.java b/android/app/src/main/java/game/openrayman/GameChooserActivity.java index 272bd09..f3b2879 100644 --- a/android/app/src/main/java/game/openrayman/GameChooserActivity.java +++ b/android/app/src/main/java/game/openrayman/GameChooserActivity.java @@ -22,7 +22,7 @@ public class GameChooserActivity extends AppCompatActivity { fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { - Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) + Snackbar.make(view, "TODO: this is the part when the game should be added (list of supported games or autodetection?!?)", Snackbar.LENGTH_LONG) .setAction("Action", null).show(); } }); diff --git a/android/app/src/main/res/drawable-hdpi/ic_add_black_24dp.png b/android/app/src/main/res/drawable-hdpi/ic_add_black_24dp.png new file mode 100644 index 0000000..c04b523 Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/ic_add_black_24dp.png differ diff --git a/android/app/src/main/res/drawable-hdpi/ic_add_white_24dp.png b/android/app/src/main/res/drawable-hdpi/ic_add_white_24dp.png new file mode 100644 index 0000000..694179b Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/ic_add_white_24dp.png differ diff --git a/android/app/src/main/res/drawable-mdpi/ic_add_black_24dp.png b/android/app/src/main/res/drawable-mdpi/ic_add_black_24dp.png new file mode 100644 index 0000000..23bf119 Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/ic_add_black_24dp.png differ diff --git a/android/app/src/main/res/drawable-mdpi/ic_add_white_24dp.png b/android/app/src/main/res/drawable-mdpi/ic_add_white_24dp.png new file mode 100644 index 0000000..3856041 Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/ic_add_white_24dp.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/ic_add_black_24dp.png b/android/app/src/main/res/drawable-xhdpi/ic_add_black_24dp.png new file mode 100644 index 0000000..3191d52 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/ic_add_black_24dp.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/ic_add_white_24dp.png b/android/app/src/main/res/drawable-xhdpi/ic_add_white_24dp.png new file mode 100644 index 0000000..67bb598 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/ic_add_white_24dp.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_add_black_24dp.png b/android/app/src/main/res/drawable-xxhdpi/ic_add_black_24dp.png new file mode 100644 index 0000000..a84106b Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/ic_add_black_24dp.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_add_white_24dp.png b/android/app/src/main/res/drawable-xxhdpi/ic_add_white_24dp.png new file mode 100644 index 0000000..0fdced8 Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/ic_add_white_24dp.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_add_black_24dp.png b/android/app/src/main/res/drawable-xxxhdpi/ic_add_black_24dp.png new file mode 100644 index 0000000..3cb1092 Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/ic_add_black_24dp.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_add_white_24dp.png b/android/app/src/main/res/drawable-xxxhdpi/ic_add_white_24dp.png new file mode 100644 index 0000000..d64c22e Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/ic_add_white_24dp.png differ diff --git a/android/app/src/main/res/drawable/ray_ico_def_nz.png b/android/app/src/main/res/drawable/ray_ico_def_nz.png new file mode 100644 index 0000000..bb31d90 Binary files /dev/null and b/android/app/src/main/res/drawable/ray_ico_def_nz.png differ diff --git a/android/app/src/main/res/drawable/ray_ico_sad_nz.png b/android/app/src/main/res/drawable/ray_ico_sad_nz.png new file mode 100644 index 0000000..0b9c08c Binary files /dev/null and b/android/app/src/main/res/drawable/ray_ico_sad_nz.png differ diff --git a/android/app/src/main/res/layout/activity_game_chooser.xml b/android/app/src/main/res/layout/activity_game_chooser.xml index f7a0d84..4614e02 100644 --- a/android/app/src/main/res/layout/activity_game_chooser.xml +++ b/android/app/src/main/res/layout/activity_game_chooser.xml @@ -29,6 +29,6 @@ android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" - android:src="@android:drawable/ic_dialog_email" /> + android:src="@drawable/ic_add_white_24dp" /> diff --git a/android/app/src/main/res/layout/content_game_chooser.xml b/android/app/src/main/res/layout/content_game_chooser.xml index 84f8a4a..358a6a1 100644 --- a/android/app/src/main/res/layout/content_game_chooser.xml +++ b/android/app/src/main/res/layout/content_game_chooser.xml @@ -12,8 +12,45 @@ tools:context="game.openrayman.GameChooserActivity" tools:showIn="@layout/activity_game_chooser"> - + + + + + + + + android:id="@+id/listView" + android:layout_centerHorizontal="true" + tools:listitem="@android:layout/simple_list_item_1" + android:layout_below="@+id/linearLayout" /> + diff --git a/android/app/src/main/res/values-v21/styles.xml b/android/app/src/main/res/values-v21/styles.xml index dbbdd40..89d1c85 100644 --- a/android/app/src/main/res/values-v21/styles.xml +++ b/android/app/src/main/res/values-v21/styles.xml @@ -1,9 +1,7 @@ - diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml index 6cd0c39..d1720dd 100644 --- a/android/app/src/main/res/values/colors.xml +++ b/android/app/src/main/res/values/colors.xml @@ -1,6 +1,6 @@ - #ffcc00 - #e6b800 - #00b300 + #FF9800 + #F57C00 + #FFC107