summaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout-sw600dp/activity_toot.xml
diff options
context:
space:
mode:
authorPhotonQyv <shenstone.porter@gmail.com>2017-08-05 16:32:27 +0100
committerPhotonQyv <shenstone.porter@gmail.com>2017-08-05 16:32:27 +0100
commit65251201bf5a3daa972f52ecb418e668906b7f74 (patch)
tree6c7232e4d4737c38ae2380c49e3a26b873312197 /app/src/main/res/layout-sw600dp/activity_toot.xml
parent9e03f253932d85fa9646fa82ffc0e2753d8f19f4 (diff)
Added new sw600dp versions of 3 fragment layouts & 2 activity layouts in order to make the app look better on larger tablets.
Diffstat (limited to 'app/src/main/res/layout-sw600dp/activity_toot.xml')
-rw-r--r--app/src/main/res/layout-sw600dp/activity_toot.xml172
1 files changed, 172 insertions, 0 deletions
diff --git a/app/src/main/res/layout-sw600dp/activity_toot.xml b/app/src/main/res/layout-sw600dp/activity_toot.xml
new file mode 100644
index 000000000..1ee7fbc76
--- /dev/null
+++ b/app/src/main/res/layout-sw600dp/activity_toot.xml
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2017 Thomas Schneider
+
+ This file is a part of Mastalab
+
+ This program is free software; you can redistribute it and/or modify it under the terms of the
+ GNU General Public License as published by the Free Software Foundation; either version 3 of the
+ License, or (at your option) any later version.
+
+ Mastalab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+ Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with Mastalab; if not,
+ see <http://www.gnu.org/licenses>.
+-->
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:fillViewport="true"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ >
+ <LinearLayout
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/drawer_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingLeft="5dp"
+ android:paddingRight="5dp"
+ android:orientation="vertical">
+ <EditText
+ android:id="@+id/toot_cw_content"
+ android:layout_marginTop="20dp"
+ android:animateLayoutChanges="true"
+ android:visibility="gone"
+ android:maxLines="1"
+ android:hint="@string/toot_cw_placeholder"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+ <RelativeLayout
+ android:id="@+id/toot_reply_content_container"
+ android:visibility="gone"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ >
+ <TextView
+ android:id="@+id/toot_reply_content_title"
+ android:text="@string/toot_reply_content_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+ <TextView
+ android:layout_below="@+id/toot_reply_content_title"
+ android:id="@+id/toot_reply_content"
+ android:layout_marginTop="10dp"
+ android:gravity="top|start"
+ android:maxLines="4"
+ android:textStyle="italic"
+ android:autoLink="web"
+ android:textSize="12sp"
+ android:layout_marginEnd="40dp"
+ android:layout_marginRight="40dp"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+ <android.support.design.widget.FloatingActionButton
+ android:id="@+id/toot_close_reply"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true"
+ android:layout_width="30dp"
+ android:layout_height="30dp"
+ android:layout_gravity="center"
+ app:fabSize="mini"
+ android:layout_margin="5dp"
+ app:srcCompat="@drawable/ic_close" />
+ </RelativeLayout>
+ <AutoCompleteTextView
+ android:layout_marginTop="10dp"
+ android:id="@+id/toot_content"
+ android:gravity="top|start"
+ android:inputType="textMultiLine"
+ android:hint="@string/toot_placeholder"
+ android:layout_width="match_parent"
+ android:minLines="4"
+ android:layout_weight="1"
+ android:layout_height="0dp" />
+ <LinearLayout
+ android:id="@+id/bottom_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+ <HorizontalScrollView
+ android:id="@+id/picture_scrollview"
+ android:visibility="gone"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ >
+ <LinearLayout
+ android:padding="5dp"
+ android:id="@+id/toot_picture_container"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:maxHeight="100dp"
+ android:layout_gravity="center_vertical"
+ android:gravity="center_vertical"
+ android:orientation="horizontal"
+ >
+ <ProgressBar
+ android:id="@+id/loading_picture"
+ android:visibility="gone"
+ android:layout_width="50dp"
+ android:layout_height="50dp"
+ android:indeterminate="true" />
+ </LinearLayout>
+ </HorizontalScrollView>
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:orientation="horizontal"
+ android:layout_height="wrap_content">
+ <ImageButton
+ android:id="@+id/toot_picture"
+ android:padding="5dp"
+ android:layout_width="40dp"
+ android:layout_height="40dp"
+ android:src="@drawable/ic_action_camera"
+ tools:ignore="ContentDescription" />
+ <ImageButton
+ android:layout_marginLeft="5dp"
+ android:layout_marginStart="5dp"
+ android:id="@+id/toot_visibility"
+ android:padding="5dp"
+ android:layout_width="40dp"
+ android:layout_height="40dp"
+ android:src="@drawable/ic_action_globe"
+ tools:ignore="ContentDescription" />
+ <Button
+ android:id="@+id/toot_cw"
+ android:padding="5dp"
+ android:text="@string/cw"
+ style="@style/Base.Widget.AppCompat.Button.Borderless.Colored"
+ android:layout_width="40dp"
+ android:layout_height="40dp" />
+ <TextView
+ android:id="@+id/toot_space_left"
+ android:layout_width="0dp"
+ android:textColor="?attr/colorAccent"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:layout_gravity="center"
+ android:layout_height="40dp" />
+ <Button
+ android:id="@+id/toot_it"
+ android:padding="5dp"
+ android:text="@string/toot_it"
+ android:layout_gravity="end"
+ android:gravity="center"
+ style="@style/Base.Widget.AppCompat.Button.Colored"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ </LinearLayout>
+ <CheckBox
+ android:text="@string/toot_sensitive"
+ android:visibility="gone"
+ android:id="@+id/toot_sensitive"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+ </LinearLayout>
+ </LinearLayout>
+</ScrollView>