diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/fragment_home_screen.xml | 19 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_upload.xml | 13 | ||||
-rw-r--r-- | app/src/main/res/layout/grid_item.xml | 33 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 7 |
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> |