fedilab-Android-App/app/src/main/res/layout/activity_toot.xml

152 lines
6.6 KiB
XML
Raw Normal View History

2017-05-05 16:36:04 +02:00
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017 Thomas Schneider
2017-07-10 10:33:24 +02:00
This file is a part of Mastalab
2017-05-05 16:36:04 +02:00
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.
2017-07-10 10:33:24 +02:00
Mastalab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
2017-05-05 16:36:04 +02:00
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
2017-08-04 11:11:27 +02:00
You should have received a copy of the GNU General Public License along with Mastalab; if not,
2017-05-05 16:36:04 +02:00
see <http://www.gnu.org/licenses>.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2017-08-02 12:17:43 +02:00
xmlns:tools="http://schemas.android.com/tools"
android:fillViewport="true"
2017-05-05 16:36:04 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
>
2017-05-05 16:36:04 +02:00
<LinearLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
2017-05-05 16:36:04 +02:00
android:layout_height="wrap_content"
android:paddingTop="20dp"
android:paddingBottom="20dp"
android:paddingLeft="@dimen/toot_padding"
android:paddingRight="@dimen/toot_padding"
2017-05-05 16:36:04 +02:00
android:orientation="vertical">
<EditText
android:id="@+id/toot_cw_content"
android:layout_marginTop="20dp"
android:animateLayoutChanges="true"
android:visibility="gone"
android:hint="@string/toot_cw_placeholder"
2017-05-05 16:36:04 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2017-08-02 17:44:36 +02:00
<AutoCompleteTextView
android:layout_marginTop="10dp"
android:id="@+id/toot_content"
android:gravity="top|start"
android:inputType="textMultiLine|textCapSentences"
android:hint="@string/toot_placeholder"
android:layout_width="match_parent"
android:minLines="4"
android:layout_weight="1"
android:layout_height="0dp" />
2017-08-02 17:44:36 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-08-02 17:44:36 +02:00
android:orientation="vertical">
2017-10-29 16:53:32 +01:00
<RelativeLayout
android:visibility="gone"
android:id="@+id/progress_bar_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ProgressBar
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
android:indeterminate="false"
android:id="@+id/upload_progress"
android:layout_width="match_parent"
android:max="100"
android:progress="0"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/toolbar_text"
android:layout_width="match_parent"
android:textColor="@color/dark_text"
android:gravity="center"
android:textSize="12sp"
android:layout_gravity="center"
android:layout_height="wrap_content" />
</RelativeLayout>
2017-08-02 17:44:36 +02:00
<HorizontalScrollView
android:id="@+id/picture_scrollview"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
2017-08-02 17:44:36 +02:00
<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"
>
</LinearLayout>
</HorizontalScrollView>
<LinearLayout
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="wrap_content">
<ImageButton
android:id="@+id/toot_picture"
2017-10-14 17:17:29 +02:00
android:layout_width="50dp"
android:layout_height="wrap_content"
style="@style/Base.Widget.AppCompat.Button.Colored"
2017-10-11 14:09:28 +02:00
android:src="@drawable/ic_insert_photo"
2017-08-02 17:44:36 +02:00
tools:ignore="ContentDescription" />
<ImageButton
android:layout_marginLeft="5dp"
android:layout_marginStart="5dp"
android:id="@+id/toot_visibility"
2017-10-14 17:17:29 +02:00
android:layout_width="50dp"
android:layout_height="wrap_content"
style="@style/Base.Widget.AppCompat.Button.Colored"
2017-10-28 14:32:18 +02:00
android:src="@drawable/ic_public"
2017-08-02 17:44:36 +02:00
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"
2017-08-18 16:54:43 +02:00
android:textColor="@color/mastodonC4"
2017-08-02 17:44:36 +02:00
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" />
2017-08-02 12:17:43 +02:00
2017-08-02 17:44:36 +02:00
</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>
2017-05-05 16:36:04 +02:00
</LinearLayout>
</ScrollView>