2019-03-30 20:14:34 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
2017-05-05 16:36:04 +02:00
|
|
|
Copyright 2017 Thomas Schneider
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
This file is a part of Fedilab
|
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.
|
|
|
|
|
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
|
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.
|
|
|
|
|
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,
|
2017-05-05 16:36:04 +02:00
|
|
|
see <http://www.gnu.org/licenses>.
|
|
|
|
-->
|
2017-07-23 09:45:08 +02:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:layout_height="match_parent"
|
2019-07-20 15:15:47 +02:00
|
|
|
xmlns:app="http://schemas.android.com/tools"
|
2019-09-21 16:29:33 +02:00
|
|
|
android:fillViewport="true"
|
|
|
|
app:ignore="NamespaceTypo">
|
2019-03-30 20:14:34 +01:00
|
|
|
|
2019-06-10 06:00:44 +02:00
|
|
|
<RelativeLayout
|
2017-07-23 09:45:08 +02:00
|
|
|
android:id="@+id/drawer_layout"
|
|
|
|
android:layout_width="match_parent"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:orientation="vertical"
|
2017-07-23 09:45:08 +02:00
|
|
|
android:paddingLeft="@dimen/toot_padding"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:paddingTop="@dimen/toot_padding"
|
2017-07-23 09:45:08 +02:00
|
|
|
android:paddingRight="@dimen/toot_padding"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:paddingBottom="@dimen/toot_padding">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-06-28 14:40:33 +02:00
|
|
|
<TextView
|
|
|
|
android:visibility="gone"
|
|
|
|
android:id="@+id/warning_message"
|
|
|
|
android:text="@string/reply_might_be_useless"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:background="@drawable/red_border"
|
|
|
|
android:textColor="@color/red_1"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-07-23 09:45:08 +02:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/toot_cw_content"
|
2019-06-28 14:40:33 +02:00
|
|
|
android:layout_below="@+id/warning_message"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-07-23 09:45:08 +02:00
|
|
|
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-06-10 06:00:44 +02:00
|
|
|
<ScrollView
|
2019-07-20 10:02:44 +02:00
|
|
|
android:id="@+id/composer_container"
|
2019-06-16 17:59:24 +02:00
|
|
|
android:layout_below="@+id/toot_cw_content"
|
2017-07-23 09:45:08 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-06-10 06:00:44 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_above="@+id/bottom_bar_tooting"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginEnd="0dp"
|
|
|
|
android:layout_marginLeft="0dp"
|
|
|
|
android:layout_marginRight="0dp"
|
|
|
|
android:layout_marginBottom="0dp"
|
|
|
|
android:fillViewport="true">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-06-10 06:00:44 +02:00
|
|
|
<app.fedilab.android.helper.MastalabAutoCompleteTextView
|
|
|
|
android:id="@+id/toot_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:gravity="top|start"
|
|
|
|
android:hint="@string/toot_placeholder"
|
|
|
|
android:inputType="textMultiLine|textCapSentences"
|
|
|
|
android:minLines="4" />
|
|
|
|
</ScrollView>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
|
|
|
<HorizontalScrollView
|
|
|
|
android:id="@+id/toolbar_scrollview"
|
2019-07-20 15:15:47 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="#e6e6e6"
|
|
|
|
android:scrollbars="none">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-07-20 15:15:47 +02:00
|
|
|
<include layout="@layout/editor_toolbar_linearlayout_horizontal" />
|
|
|
|
</HorizontalScrollView>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-07-20 10:02:44 +02:00
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/wysiwyg_container"
|
2019-07-20 18:44:57 +02:00
|
|
|
android:visibility="gone"
|
2019-08-02 18:35:49 +02:00
|
|
|
android:layout_below="@+id/toolbar_scrollview"
|
2019-07-20 10:02:44 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-07-20 15:15:47 +02:00
|
|
|
android:layout_above="@+id/bottom_bar_tooting"
|
2019-07-20 10:02:44 +02:00
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginEnd="0dp"
|
|
|
|
android:layout_marginLeft="0dp"
|
|
|
|
android:layout_marginRight="0dp"
|
|
|
|
android:layout_marginBottom="0dp"
|
|
|
|
android:fillViewport="true">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-07-20 15:15:47 +02:00
|
|
|
<com.github.irshulx.Editor
|
2019-07-20 10:02:44 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-07-20 15:15:47 +02:00
|
|
|
android:id="@+id/editor"
|
|
|
|
app:render_type="Editor"
|
|
|
|
android:hint="@string/toot_placeholder"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:layout_height="wrap_content"
|
2019-09-06 17:55:14 +02:00
|
|
|
android:paddingBottom="100dp" />
|
2019-07-20 10:02:44 +02:00
|
|
|
</ScrollView>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-07-20 15:15:47 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2019-07-20 10:02:44 +02:00
|
|
|
android:visibility="gone"
|
2019-07-20 15:15:47 +02:00
|
|
|
android:id="@+id/suggestions"
|
|
|
|
android:layout_width="wrap_content"
|
2019-09-06 17:55:14 +02:00
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
2017-08-02 17:44:36 +02:00
|
|
|
<LinearLayout
|
2019-06-10 06:00:44 +02:00
|
|
|
android:id="@+id/bottom_bar_tooting"
|
2017-07-23 09:45:08 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-07-02 15:20:58 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-06-10 06:00:44 +02:00
|
|
|
android:layout_alignParentBottom="true"
|
2017-08-02 17:44:36 +02:00
|
|
|
android:orientation="vertical">
|
2019-03-30 13:27:16 +01:00
|
|
|
|
2017-10-29 16:53:32 +01:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/progress_bar_container"
|
|
|
|
android:layout_width="match_parent"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
2017-10-29 16:53:32 +01:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/upload_progress"
|
2019-03-30 13:27:16 +01:00
|
|
|
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
|
2017-10-29 16:53:32 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:indeterminate="false"
|
|
|
|
android:max="100"
|
|
|
|
android:progress="0" />
|
|
|
|
|
2017-10-29 16:53:32 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/toolbar_text"
|
|
|
|
android:layout_width="match_parent"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-10-29 16:53:32 +01:00
|
|
|
android:layout_gravity="center"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:gravity="center"
|
|
|
|
android:textColor="@color/dark_text"
|
|
|
|
android:textSize="12sp" />
|
2017-10-29 16:53:32 +01:00
|
|
|
</RelativeLayout>
|
|
|
|
|
2017-08-02 17:44:36 +02:00
|
|
|
<HorizontalScrollView
|
|
|
|
android:id="@+id/picture_scrollview"
|
|
|
|
android:layout_width="match_parent"
|
2017-07-23 09:45:08 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:visibility="gone">
|
|
|
|
|
2017-08-02 17:44:36 +02:00
|
|
|
<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 13:27:16 +01:00
|
|
|
android:maxHeight="100dp"
|
2017-08-02 17:44:36 +02:00
|
|
|
android:orientation="horizontal"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:padding="5dp"></LinearLayout>
|
2017-08-02 17:44:36 +02:00
|
|
|
</HorizontalScrollView>
|
2019-03-30 13:27:16 +01:00
|
|
|
|
2019-09-21 16:29:33 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:id="@+id/compression_loader"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/activity_vertical_margin"
|
|
|
|
android:layout_marginEnd="@dimen/activity_vertical_margin"
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<ProgressBar
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_width="10dp"
|
|
|
|
android:layout_height="10dp"/>
|
|
|
|
<TextView
|
|
|
|
android:layout_gravity="center_vertical"
|
2019-11-07 17:52:12 +01:00
|
|
|
android:textColor="?colorAccent"
|
2019-09-21 16:29:33 +02:00
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:text="@string/please_wait_compression"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-08-02 17:44:36 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2019-03-30 06:11:56 +01:00
|
|
|
|
2019-03-30 13:27:16 +01:00
|
|
|
<ImageButton
|
2017-08-02 17:44:36 +02:00
|
|
|
android:id="@+id/toot_picture"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:layout_width="28dp"
|
|
|
|
android:layout_height="28dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginEnd="5dp"
|
2019-06-10 06:00:44 +02:00
|
|
|
android:layout_marginRight="5dp"
|
2019-03-30 06:11:56 +01:00
|
|
|
android:adjustViewBounds="true"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:background="@color/transparent"
|
2019-03-30 06:56:46 +01:00
|
|
|
android:contentDescription="@string/toot_select_image"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:scaleType="centerCrop"
|
2019-03-30 06:11:56 +01:00
|
|
|
android:src="@drawable/ic_insert_photo" />
|
2019-03-30 13:27:16 +01:00
|
|
|
|
|
|
|
<ImageButton
|
2019-03-24 19:06:03 +01:00
|
|
|
android:id="@+id/poll_action"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:layout_width="28dp"
|
|
|
|
android:layout_height="28dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
2019-03-30 06:56:46 +01:00
|
|
|
android:adjustViewBounds="true"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:background="@color/transparent"
|
|
|
|
android:contentDescription="@string/poll"
|
2019-03-30 06:11:56 +01:00
|
|
|
android:scaleType="centerCrop"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:src="@drawable/ic_view_list_poll"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<ImageButton
|
2017-08-02 17:44:36 +02:00
|
|
|
android:id="@+id/toot_visibility"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:layout_width="28dp"
|
|
|
|
android:layout_height="28dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
2019-03-30 06:56:46 +01:00
|
|
|
android:adjustViewBounds="true"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:background="@color/transparent"
|
|
|
|
android:contentDescription="@string/toot_visibility_tilte"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:src="@drawable/ic_public" />
|
2019-03-29 08:25:59 +01:00
|
|
|
|
2019-03-30 13:27:16 +01:00
|
|
|
<Button
|
2017-08-02 17:44:36 +02:00
|
|
|
android:id="@+id/toot_cw"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:layout_width="40dp"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:layout_height="28dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
2019-03-30 06:56:46 +01:00
|
|
|
android:adjustViewBounds="true"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:background="@color/transparent"
|
|
|
|
android:text="@string/cw"
|
|
|
|
android:textSize="20sp" />
|
2019-03-27 10:54:07 +01:00
|
|
|
|
2019-03-30 13:27:16 +01:00
|
|
|
<ImageButton
|
2018-10-24 14:52:08 +02:00
|
|
|
android:id="@+id/toot_emoji"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:layout_width="28dp"
|
|
|
|
android:layout_height="28dp"
|
2018-10-24 14:52:08 +02:00
|
|
|
android:layout_gravity="center"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
2019-03-30 06:56:46 +01:00
|
|
|
android:adjustViewBounds="true"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:background="@color/transparent"
|
2018-12-10 09:22:50 +01:00
|
|
|
android:contentDescription="@string/emoji_picker"
|
2019-03-27 10:54:07 +01:00
|
|
|
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" />
|
2019-03-30 13:27:16 +01:00
|
|
|
|
2017-08-02 17:44:36 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/toot_space_left"
|
|
|
|
android:layout_width="0dp"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_gravity="center"
|
2017-08-02 17:44:36 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center"
|
2019-11-07 17:52:12 +01:00
|
|
|
android:textColor="?colorAccent" />
|
2019-03-27 10:54:07 +01:00
|
|
|
|
2017-08-02 17:44:36 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/toot_it"
|
2019-03-29 08:25:59 +01:00
|
|
|
style="@style/Widget.AppCompat.Button.Colored"
|
2019-03-27 10:54:07 +01:00
|
|
|
android:layout_width="wrap_content"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:layout_height="45dp"
|
2017-08-02 17:44:36 +02:00
|
|
|
android:layout_gravity="end"
|
|
|
|
android:gravity="center"
|
2019-03-30 20:14:34 +01:00
|
|
|
android:padding="0dp"
|
2019-03-27 10:54:07 +01:00
|
|
|
android:text="@string/toot_it" />
|
2017-08-02 12:17:43 +02:00
|
|
|
|
2017-08-02 17:44:36 +02:00
|
|
|
</LinearLayout>
|
2019-03-30 13:27:16 +01:00
|
|
|
|
2017-08-02 17:44:36 +02:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/toot_sensitive"
|
|
|
|
android:layout_width="match_parent"
|
2019-03-30 13:27:16 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/toot_sensitive"
|
|
|
|
android:visibility="gone" />
|
2017-07-23 09:45:08 +02:00
|
|
|
</LinearLayout>
|
2019-06-10 06:00:44 +02:00
|
|
|
</RelativeLayout>
|
2017-07-23 09:45:08 +02:00
|
|
|
</ScrollView>
|