diff options
author | pommicket <leonardomtenenbaum@gmail.com> | 2016-02-28 15:34:54 -0500 |
---|---|---|
committer | pommicket <leonardomtenenbaum@gmail.com> | 2016-02-28 15:34:54 -0500 |
commit | 24fd48bee4dc7c1a3d43bcedaf0f7e97247b325e (patch) | |
tree | 10e1310581f26bc8ce25687a6f992038a143c244 /src/res | |
parent | 858177061afc14af133f8d699b8671ecda384904 (diff) |
Created AutoArtAndroid
Diffstat (limited to 'src/res')
-rw-r--r-- | src/res/layout/activity_auto_art.xml | 58 | ||||
-rw-r--r-- | src/res/mipmap-hdpi/ic_launcher.png | bin | 0 -> 3418 bytes | |||
-rw-r--r-- | src/res/mipmap-mdpi/ic_launcher.png | bin | 0 -> 2206 bytes | |||
-rw-r--r-- | src/res/mipmap-xhdpi/ic_launcher.png | bin | 0 -> 4842 bytes | |||
-rw-r--r-- | src/res/mipmap-xxhdpi/ic_launcher.png | bin | 0 -> 7718 bytes | |||
-rw-r--r-- | src/res/mipmap-xxxhdpi/ic_launcher.png | bin | 0 -> 10486 bytes | |||
-rw-r--r-- | src/res/values-w820dp/dimens.xml | 6 | ||||
-rw-r--r-- | src/res/values/colors.xml | 6 | ||||
-rw-r--r-- | src/res/values/dimens.xml | 5 | ||||
-rw-r--r-- | src/res/values/strings.xml | 6 | ||||
-rw-r--r-- | src/res/values/styles.xml | 11 |
11 files changed, 92 insertions, 0 deletions
diff --git a/src/res/layout/activity_auto_art.xml b/src/res/layout/activity_auto_art.xml new file mode 100644 index 0000000..760a1df --- /dev/null +++ b/src/res/layout/activity_auto_art.xml @@ -0,0 +1,58 @@ +<?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:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingRight="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" + android:paddingBottom="@dimen/activity_vertical_margin" + tools:context="org.neocities.autoart.autoart.AutoArt"> + + <TextView + android:text="@string/width_text" + android:textSize="20sp" + android:textColor="#000000" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + <EditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="number" + android:id="@+id/image_width_edit" + android:layout_marginTop="20sp" + /> + <TextView + android:text="@string/height_text" + android:textSize="20sp" + android:textColor="#000000" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/image_width_edit" + android:id="@+id/image_height_text" + /> + <EditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="number" + android:id="@+id/image_height_edit" + android:layout_below="@id/image_height_text" + /> + <Button + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/create_button" + android:text="@string/create_button_text" + android:layout_below="@id/image_height_edit" + android:background="#beffbe" + /> + + <ImageView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_below="@id/create_button" + android:id="@+id/image_view" + /> + +</RelativeLayout> diff --git a/src/res/mipmap-hdpi/ic_launcher.png b/src/res/mipmap-hdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..cde69bc --- /dev/null +++ b/src/res/mipmap-hdpi/ic_launcher.png diff --git a/src/res/mipmap-mdpi/ic_launcher.png b/src/res/mipmap-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..c133a0c --- /dev/null +++ b/src/res/mipmap-mdpi/ic_launcher.png diff --git a/src/res/mipmap-xhdpi/ic_launcher.png b/src/res/mipmap-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..bfa42f0 --- /dev/null +++ b/src/res/mipmap-xhdpi/ic_launcher.png diff --git a/src/res/mipmap-xxhdpi/ic_launcher.png b/src/res/mipmap-xxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..324e72c --- /dev/null +++ b/src/res/mipmap-xxhdpi/ic_launcher.png diff --git a/src/res/mipmap-xxxhdpi/ic_launcher.png b/src/res/mipmap-xxxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..aee44e1 --- /dev/null +++ b/src/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/src/res/values-w820dp/dimens.xml b/src/res/values-w820dp/dimens.xml new file mode 100644 index 0000000..63fc816 --- /dev/null +++ b/src/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/src/res/values/colors.xml b/src/res/values/colors.xml new file mode 100644 index 0000000..3ab3e9c --- /dev/null +++ b/src/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/src/res/values/dimens.xml b/src/res/values/dimens.xml new file mode 100644 index 0000000..47c8224 --- /dev/null +++ b/src/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/src/res/values/strings.xml b/src/res/values/strings.xml new file mode 100644 index 0000000..f3e4529 --- /dev/null +++ b/src/res/values/strings.xml @@ -0,0 +1,6 @@ +<resources> + <string name="app_name">AutoArt</string> + <string name="width_text">Image width:</string> + <string name="height_text">Image height:</string> + <string name="create_button_text">Create image</string> +</resources> diff --git a/src/res/values/styles.xml b/src/res/values/styles.xml new file mode 100644 index 0000000..5885930 --- /dev/null +++ b/src/res/values/styles.xml @@ -0,0 +1,11 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> |