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

208 lines
8.8 KiB
XML
Raw Normal View History

2019-03-30 20:14:34 +01:00
<?xml version="1.0" encoding="utf-8"?><!--
Copyright 2017 Thomas Schneider
2019-05-18 11:10:30 +02:00
This file is a part of Fedilab
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.
2019-05-18 11:10:30 +02:00
Fedilab 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.
2019-05-18 11:10:30 +02:00
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
2019-03-30 20:14:34 +01:00
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-30 20:14:34 +01:00
android:orientation="vertical"
android:paddingLeft="@dimen/fab_margin"
2019-03-30 20:31:43 +01:00
android:paddingTop="@dimen/fab_margin"
android:paddingRight="@dimen/fab_margin"
2019-03-30 20:31:43 +01:00
android:paddingBottom="@dimen/fab_margin">
2019-03-30 20:14:34 +01:00
<EditText
android:id="@+id/toot_cw_content"
2019-03-30 20:14:34 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:animateLayoutChanges="true"
android:hint="@string/toot_cw_placeholder"
2019-03-30 20:14:34 +01:00
android:visibility="gone" />
2019-05-18 11:10:30 +02:00
<app.fedilab.android.helper.MastalabAutoCompleteTextView
android:id="@+id/toot_content"
android:layout_width="match_parent"
2019-03-30 20:14:34 +01:00
android:layout_height="0dp"
android:layout_marginTop="10dp"
2019-03-30 20:31:43 +01:00
android:layout_marginBottom="10dp"
android:layout_weight="1"
2019-03-30 20:14:34 +01:00
android:gravity="top|start"
android:hint="@string/toot_placeholder"
android:inputType="textMultiLine|textCapSentences"
android:minLines="4" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2019-03-30 20:14:34 +01:00
<RelativeLayout
android:id="@+id/progress_bar_container"
android:layout_width="match_parent"
2019-03-30 20:14:34 +01:00
android:layout_height="wrap_content"
android:visibility="gone">
<ProgressBar
android:id="@+id/upload_progress"
2019-03-30 20:14:34 +01:00
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-30 20:14:34 +01:00
android:indeterminate="false"
android:max="100"
android:progress="0" />
<TextView
android:id="@+id/toolbar_text"
android:layout_width="match_parent"
2019-03-30 20:14:34 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center"
2019-03-30 20:14:34 +01:00
android:gravity="center"
android:textColor="@color/dark_text"
android:textSize="12sp" />
</RelativeLayout>
2019-03-30 20:14:34 +01:00
<HorizontalScrollView
android:id="@+id/picture_scrollview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-30 20:14:34 +01:00
android:visibility="gone">
<LinearLayout
android:id="@+id/toot_picture_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
2019-03-30 20:14:34 +01:00
android:maxHeight="100dp"
android:orientation="horizontal"
2019-03-30 20:14:34 +01:00
android:padding="5dp"></LinearLayout>
</HorizontalScrollView>
2019-03-30 20:14:34 +01:00
<LinearLayout
android:layout_width="match_parent"
2019-03-30 20:14:34 +01:00
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageButton
android:id="@+id/toot_picture"
2019-03-30 20:14:34 +01:00
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginEnd="5dp"
android:layout_marginRight="5dp"
android:background="@color/transparent"
2019-03-30 20:14:34 +01:00
android:contentDescription="@string/toot_select_image"
android:gravity="center"
android:scaleType="centerCrop"
android:src="@drawable/ic_insert_photo" />
2019-03-24 19:06:03 +01:00
<ImageButton
android:id="@+id/poll_action"
2019-03-30 20:14:34 +01:00
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginStart="5dp"
android:layout_marginLeft="5dp"
android:layout_marginEnd="5dp"
android:layout_marginRight="5dp"
android:background="@color/transparent"
2019-03-30 20:14:34 +01:00
android:contentDescription="@string/poll"
android:scaleType="centerCrop"
2019-03-30 20:31:43 +01:00
android:src="@drawable/ic_view_list_poll"
android:visibility="gone"/>
2019-03-30 20:14:34 +01:00
<ImageButton
android:id="@+id/toot_visibility"
2019-03-30 20:14:34 +01:00
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginStart="5dp"
android:layout_marginLeft="5dp"
android:layout_marginEnd="5dp"
android:layout_marginRight="5dp"
android:background="@color/transparent"
2019-03-30 20:14:34 +01:00
android:contentDescription="@string/toot_visibility_tilte"
android:scaleType="centerCrop"
android:src="@drawable/ic_public" />
<Button
android:id="@+id/toot_cw"
2019-03-30 20:14:34 +01:00
android:layout_width="50dp"
android:layout_height="40dp"
android:layout_gravity="center"
2019-03-30 06:11:56 +01:00
android:layout_marginStart="5dp"
2019-03-30 20:14:34 +01:00
android:layout_marginLeft="5dp"
android:layout_marginEnd="5dp"
android:layout_marginRight="5dp"
2019-03-30 06:56:46 +01:00
android:adjustViewBounds="true"
android:background="@color/transparent"
2019-03-30 20:14:34 +01:00
android:scaleType="centerCrop"
android:text="@string/cw"
android:textSize="25sp" />
<ImageButton
android:id="@+id/toot_emoji"
2019-03-30 20:14:34 +01:00
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginStart="5dp"
android:layout_marginLeft="5dp"
android:layout_marginEnd="5dp"
android:layout_marginRight="5dp"
android:background="@color/transparent"
2019-03-30 20:14:34 +01:00
android:contentDescription="@string/emoji_picker"
android:minWidth="0dp"
android:minHeight="0dp"
2019-03-30 06:11:56 +01:00
android:scaleType="centerCrop"
2019-03-30 20:14:34 +01:00
android:src="@drawable/ic_insert_emoticon" />
<TextView
android:id="@+id/toot_space_left"
android:layout_width="0dp"
2019-03-30 20:14:34 +01:00
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_weight="1"
android:gravity="center"
2019-03-30 20:14:34 +01:00
android:textColor="?colorAccent" />
<Button
android:id="@+id/toot_it"
style="@style/Base.Widget.AppCompat.Button.Colored"
android:layout_width="wrap_content"
2019-03-30 20:14:34 +01:00
android:layout_height="50dp"
android:layout_gravity="center"
android:gravity="center"
android:text="@string/toot_it"
android:textSize="18sp" />
</LinearLayout>
2019-03-30 20:14:34 +01:00
<CheckBox
android:id="@+id/toot_sensitive"
android:layout_width="match_parent"
2019-03-30 20:14:34 +01:00
android:layout_height="wrap_content"
android:text="@string/toot_sensitive"
android:visibility="gone" />
</LinearLayout>
</LinearLayout>
</ScrollView>