summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2014-08-03 03:51:13 +0100
committerJoe Robinson <joe@lc8n.com>2014-08-03 03:51:13 +0100
commit3398c580fd742d785ce5cc90ba2d1c720874fb3f (patch)
tree23268d04efd62f0fb2954c76ecee63dcee7fd464 /app/src/main/res
parent848cfa51b7de694fbcef75b41818b33ed81b7359 (diff)
Created the home screen with a grid of images from blaupload
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_home_screen.xml19
-rw-r--r--app/src/main/res/layout/fragment_upload.xml13
-rw-r--r--app/src/main/res/layout/grid_item.xml33
-rw-r--r--app/src/main/res/values/strings.xml7
4 files changed, 69 insertions, 3 deletions
diff --git a/app/src/main/res/layout/fragment_home_screen.xml b/app/src/main/res/layout/fragment_home_screen.xml
index 3f50a40..884e98a 100644
--- a/app/src/main/res/layout/fragment_home_screen.xml
+++ b/app/src/main/res/layout/fragment_home_screen.xml
@@ -13,4 +13,23 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium"
+ android:text="Recent Images"
+ android:id="@+id/textView"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true" />
+
+ <GridView
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:numColumns="3"
+ android:id="@+id/gridView"
+ android:layout_below="@+id/section_label"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true" />
+
</RelativeLayout>
diff --git a/app/src/main/res/layout/fragment_upload.xml b/app/src/main/res/layout/fragment_upload.xml
new file mode 100644
index 0000000..01fe6e8
--- /dev/null
+++ b/app/src/main/res/layout/fragment_upload.xml
@@ -0,0 +1,13 @@
+<FrameLayout 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="uk.co.blatech.blaupload.UploadFragment">
+
+ <!-- TODO: Update blank fragment layout -->
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:text="@string/hello_blank_fragment" />
+
+</FrameLayout>
diff --git a/app/src/main/res/layout/grid_item.xml b/app/src/main/res/layout/grid_item.xml
new file mode 100644
index 0000000..1d8b860
--- /dev/null
+++ b/app/src/main/res/layout/grid_item.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="5dp"
+ android:orientation="vertical"
+ android:padding="5dp"
+ android:clickable="false"
+ android:focusable="false">
+
+ <ImageView
+ android:id="@+id/thumbimage"
+ android:layout_width="100dp"
+ android:layout_height="100dp"
+ android:clickable="false"
+ android:focusable="false"
+ android:focusableInTouchMode="false">
+ </ImageView>
+
+ <TextView
+ android:id="@+id/thumbtitle"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="5dp"
+ android:gravity="center"
+ android:textSize="12sp"
+ android:clickable="false"
+ android:focusable="false">
+ </TextView>
+
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index edcacd6..25d7732 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -2,12 +2,13 @@
<resources>
<string name="app_name">blaupload</string>
- <string name="title_section1">Section 1</string>
- <string name="title_section2">Section 2</string>
- <string name="title_section3">Section 3</string>
+ <string name="title_section1">Images</string>
+ <string name="title_section2">Upload</string>
+ <string name="title_section3">Locate</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
<string name="action_example">Example action</string>
<string name="action_settings">Settings</string>
+ <string name="hello_blank_fragment">Hello blank fragment</string>
</resources>