summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorpommicket <leonardomtenenbaum@gmail.com>2016-06-20 15:27:48 -0400
committerpommicket <leonardomtenenbaum@gmail.com>2016-06-20 15:27:48 -0400
commitc2624b01a7a7f8d3d8985613a0cd9d150b0086bf (patch)
tree8edd989dd990cd54237ce19e4d580112bc331a0e /res
parenta6674e295f8497ad1a09e8a5d93154fa1a2b4a2a (diff)
Created BallBounceAndroid
Diffstat (limited to 'res')
-rw-r--r--res/layout/activity_game.xml16
-rw-r--r--res/layout/activity_menu.xml95
-rw-r--r--res/mipmap-hdpi/ic_launcher.pngbin0 -> 436 bytes
-rw-r--r--res/mipmap-mdpi/ic_launcher.pngbin0 -> 302 bytes
-rw-r--r--res/mipmap-xhdpi/ic_launcher.pngbin0 -> 678 bytes
-rw-r--r--res/mipmap-xxxhdpi/ic_launcher.pngbin0 -> 1563 bytes
-rw-r--r--res/values-w820dp/dimens.xml6
-rw-r--r--res/values/colors.xml6
-rw-r--r--res/values/dimens.xml5
-rw-r--r--res/values/strings.xml11
-rw-r--r--res/values/styles.xml17
11 files changed, 156 insertions, 0 deletions
diff --git a/res/layout/activity_game.xml b/res/layout/activity_game.xml
new file mode 100644
index 0000000..4de4334
--- /dev/null
+++ b/res/layout/activity_game.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="org.neocities.autoart.ballbounce.NormalMode">
+
+ <org.neocities.autoart.ballbounce.CanvasView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/canvas"
+ android:background="#ffffff"
+ />
+
+
+</RelativeLayout>
diff --git a/res/layout/activity_menu.xml b/res/layout/activity_menu.xml
new file mode 100644
index 0000000..381b6d7
--- /dev/null
+++ b/res/layout/activity_menu.xml
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingBottom="@dimen/activity_vertical_margin"
+ android:paddingLeft="@dimen/activity_horizontal_margin"
+ android:paddingRight="@dimen/activity_horizontal_margin"
+ android:paddingTop="@dimen/activity_vertical_margin"
+ tools:context="org.neocities.autoart.ballbounce.Menu">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/menu_title"
+ android:textSize="25sp"
+ android:layout_centerHorizontal="true"
+ android:textColor="#000000"
+ android:id="@+id/menu_title"
+ />
+
+ <Button
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/menu_title"
+ android:background="#b1e5ff"
+ android:text="@string/normal"
+ android:layout_marginTop="20sp"
+ android:id="@+id/normal_mode"
+ />
+
+
+ <Button
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/normal_mode"
+ android:background="#ffdfb1"
+ android:text="@string/crazy_gravity"
+ android:layout_marginTop="20sp"
+ android:id="@+id/crazy_gravity_mode"
+ />
+
+ <Button
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/crazy_gravity_mode"
+ android:background="#ebc4ff"
+ android:layout_marginTop="20sp"
+ android:text="@string/colour_changing"
+ android:id="@+id/colour_changing_mode"
+
+ />
+
+ <Button
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/colour_changing_mode"
+ android:background="#c7ffc4"
+ android:layout_marginTop="20sp"
+ android:text="@string/oscillation"
+ android:id="@+id/oscillation_mode"
+
+ />
+ <Button
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/oscillation_mode"
+ android:layout_marginTop="20sp"
+ android:text="@string/bw_mode"
+ android:background="#dadada"
+ android:id="@+id/bw_mode"
+ />
+
+ <Button
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/bw_mode"
+ android:layout_marginTop="20sp"
+ android:text="@string/flip_mode"
+ android:background="#faa0a1"
+ android:id="@+id/flip_mode"
+ />
+
+ <Button
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/flip_mode"
+ android:layout_marginTop="20sp"
+ android:text="@string/random_mode"
+ android:background="#faf7a0"
+ android:id="@+id/random_mode"
+ />
+
+
+</RelativeLayout>
diff --git a/res/mipmap-hdpi/ic_launcher.png b/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..e73144f
--- /dev/null
+++ b/res/mipmap-hdpi/ic_launcher.png
Binary files differ
diff --git a/res/mipmap-mdpi/ic_launcher.png b/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..5599d93
--- /dev/null
+++ b/res/mipmap-mdpi/ic_launcher.png
Binary files differ
diff --git a/res/mipmap-xhdpi/ic_launcher.png b/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..a094af8
--- /dev/null
+++ b/res/mipmap-xhdpi/ic_launcher.png
Binary files differ
diff --git a/res/mipmap-xxxhdpi/ic_launcher.png b/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..7be100a
--- /dev/null
+++ b/res/mipmap-xxxhdpi/ic_launcher.png
Binary files differ
diff --git a/res/values-w820dp/dimens.xml b/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+<resources>
+ <!-- Example customization of dimensions originally defined in res/values/dimens.xml
+ (such as screen margins) for screens with more than 820dp of available width. This
+ would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
+ <dimen name="activity_horizontal_margin">64dp</dimen>
+</resources>
diff --git a/res/values/colors.xml b/res/values/colors.xml
new file mode 100644
index 0000000..3ab3e9c
--- /dev/null
+++ b/res/values/colors.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="colorPrimary">#3F51B5</color>
+ <color name="colorPrimaryDark">#303F9F</color>
+ <color name="colorAccent">#FF4081</color>
+</resources>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/res/values/dimens.xml
@@ -0,0 +1,5 @@
+<resources>
+ <!-- Default screen margins, per the Android Design guidelines. -->
+ <dimen name="activity_horizontal_margin">16dp</dimen>
+ <dimen name="activity_vertical_margin">16dp</dimen>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
new file mode 100644
index 0000000..2c97fc5
--- /dev/null
+++ b/res/values/strings.xml
@@ -0,0 +1,11 @@
+<resources>
+ <string name="app_name">Ball Bounce</string>
+ <string name="menu_title">Main menu</string>
+ <string name="normal">Play normal mode</string>
+ <string name="crazy_gravity">Play crazy gravity mode</string>
+ <string name="colour_changing">Play colour changing mode</string>
+ <string name="oscillation">Play oscillation mode</string>
+ <string name="bw_mode">Play black &amp; white mode</string>
+ <string name="flip_mode">Play flip mode</string>
+ <string name="random_mode">Play a random mode!</string>
+</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
new file mode 100644
index 0000000..8898e0c
--- /dev/null
+++ b/res/values/styles.xml
@@ -0,0 +1,17 @@
+<resources>
+
+ <!-- Base application theme. -->
+ <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
+ <!-- Customize your theme here. -->
+ <item name="colorPrimary">@color/colorPrimary</item>
+ <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+ <item name="colorAccent">@color/colorAccent</item>
+ </style>
+
+ <style name="ThemeNoTitleBar" parent="Theme.AppCompat.Light.NoActionBar">
+ <item name="colorPrimary">@color/colorPrimary</item>
+ <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+ <item name="colorAccent">@color/colorAccent</item>
+ </style>
+
+</resources>