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>.
|
|
|
|
-->
|
2017-10-29 09:30:08 +01:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/main_container"
|
2017-11-04 12:43:15 +01:00
|
|
|
android:divider="?android:dividerHorizontal"
|
|
|
|
android:showDividers="end"
|
2017-11-06 18:36:00 +01:00
|
|
|
android:paddingTop="5dp"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
2017-05-25 18:34:20 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:baselineAligned="false">
|
2017-05-05 16:36:04 +02:00
|
|
|
<LinearLayout
|
2017-05-25 18:34:20 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_width="60dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
>
|
|
|
|
<RelativeLayout
|
2017-07-07 19:26:26 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_width="match_parent"
|
2017-07-07 19:26:26 +02:00
|
|
|
>
|
2017-06-28 17:42:33 +02:00
|
|
|
<ImageView
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
2017-07-07 19:26:26 +02:00
|
|
|
android:layout_marginTop="5dp"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:id="@+id/status_account_profile"
|
2017-09-08 18:30:49 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
2017-10-29 09:30:08 +01:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="45dp"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerHorizontal="true"
|
2017-09-14 18:54:13 +02:00
|
|
|
android:visibility="gone"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_account_profile_boost"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_account_profile_boost_by"
|
2017-09-14 18:54:13 +02:00
|
|
|
android:layout_height="30dp"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_marginTop="25dp"
|
2018-10-14 10:16:53 +02:00
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
style="?attr/shapeBorder"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:id="@+id/new_element"
|
|
|
|
android:visibility="gone"
|
2017-12-21 15:14:48 +01:00
|
|
|
android:src="@drawable/ic_fiber_new"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:ignore="ContentDescription" />
|
2018-09-26 14:53:41 +02:00
|
|
|
<ImageButton
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_translate"
|
2018-09-26 14:53:41 +02:00
|
|
|
android:gravity="center"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Borderless"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_translate"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_marginTop="10dp"
|
2018-02-15 11:18:40 +01:00
|
|
|
android:layout_gravity="center_horizontal"
|
2018-09-26 14:53:41 +02:00
|
|
|
/>
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/status_bookmark"
|
|
|
|
android:gravity="center"
|
|
|
|
android:tint="@android:color/white"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Borderless"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_bookmark_border"
|
2018-02-15 11:18:40 +01:00
|
|
|
android:layout_marginTop="10dp"
|
2018-09-26 14:53:41 +02:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
/>
|
2017-10-29 09:30:08 +01:00
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_account_displayname"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:drawablePadding="2dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:id="@+id/status_account_username"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
|
|
android:layout_marginStart="2dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:id="@+id/status_toot_date"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:gravity="end"
|
|
|
|
android:layout_height="wrap_content" />
|
2017-10-15 11:57:03 +02:00
|
|
|
</LinearLayout>
|
2017-10-29 09:30:08 +01:00
|
|
|
|
2017-05-25 18:34:20 +02:00
|
|
|
<LinearLayout
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_spoiler_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_height="wrap_content">
|
2018-05-12 10:46:16 +02:00
|
|
|
<fr.gouv.etalab.mastodon.helper.CustomTextView
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_spoiler"
|
|
|
|
android:layout_marginTop="10dp"
|
2018-01-25 13:47:34 +01:00
|
|
|
android:textIsSelectable="true"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<Button
|
|
|
|
android:id="@+id/status_spoiler_button"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
android:drawableLeft="@drawable/ic_remove_red_eye"
|
|
|
|
android:drawableStart="@drawable/ic_remove_red_eye"
|
|
|
|
android:gravity="center"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
2017-10-15 10:47:41 +02:00
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="wrap_content"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-11-02 14:15:13 +01:00
|
|
|
style="@style/Base.Widget.AppCompat.Button.Borderless"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:text="@string/load_attachment_spoiler" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/status_content_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_height="wrap_content">
|
2018-05-12 10:46:16 +02:00
|
|
|
<fr.gouv.etalab.mastodon.helper.CustomTextView
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_content"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_width="match_parent"
|
2017-10-15 10:47:41 +02:00
|
|
|
android:layout_height="wrap_content" />
|
2018-04-25 11:19:25 +02:00
|
|
|
<TextView
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:id="@+id/status_toot_app"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:gravity="end"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:textStyle="italic"
|
|
|
|
/>
|
2017-06-28 17:42:33 +02:00
|
|
|
<LinearLayout
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_content_translated_container"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginTop="10dp"
|
2017-06-28 17:42:33 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
2017-06-28 17:42:33 +02:00
|
|
|
<TextView
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_content_translated"
|
|
|
|
android:layout_width="match_parent"
|
2017-06-28 17:42:33 +02:00
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/yandex_translate"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:padding="2dp"
|
2017-10-15 10:47:41 +02:00
|
|
|
android:gravity="end"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:text="Powered by Yandex.Translate"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:ignore="HardcodedText" />
|
2017-06-28 17:42:33 +02:00
|
|
|
</LinearLayout>
|
2017-10-29 09:30:08 +01:00
|
|
|
|
2017-12-20 13:57:28 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/status_cardview"
|
2017-12-25 18:23:01 +01:00
|
|
|
android:padding="5dp"
|
2018-10-14 10:16:53 +02:00
|
|
|
android:layout_marginTop="10dp"
|
2017-12-21 15:14:48 +01:00
|
|
|
android:layout_marginBottom="5dp"
|
2017-12-20 13:57:28 +01:00
|
|
|
android:visibility="gone"
|
|
|
|
android:background="@drawable/card_border"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:id="@+id/status_cardview_image"
|
2017-12-25 18:23:01 +01:00
|
|
|
android:layout_width="80dp"
|
2017-12-20 13:57:28 +01:00
|
|
|
android:gravity="center"
|
2017-12-25 18:23:01 +01:00
|
|
|
android:layout_height="80dp"
|
2017-12-20 13:57:28 +01:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="0dp"
|
2017-12-25 18:23:01 +01:00
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginStart="2dp"
|
2017-12-20 13:57:28 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:id="@+id/status_cardview_title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:id="@+id/status_cardview_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:maxLines="4"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_cardview_url"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:textStyle="italic"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2017-12-26 09:09:51 +01:00
|
|
|
<FrameLayout
|
|
|
|
android:visibility="gone"
|
2017-12-26 10:06:22 +01:00
|
|
|
android:layout_gravity="center"
|
2017-12-26 09:09:51 +01:00
|
|
|
android:id="@+id/status_cardview_video"
|
2017-12-26 10:06:22 +01:00
|
|
|
android:layout_width="300dp"
|
|
|
|
android:layout_height="220dp"
|
2017-12-26 10:26:28 +01:00
|
|
|
>
|
2017-12-26 09:09:51 +01:00
|
|
|
<WebView
|
|
|
|
android:id="@+id/status_cardview_webview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"/>
|
|
|
|
</FrameLayout>
|
2017-12-20 13:57:28 +01:00
|
|
|
|
2018-04-28 12:27:49 +02:00
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/status_horizontal_document_container"
|
|
|
|
android:visibility="gone"
|
2018-10-14 10:16:53 +02:00
|
|
|
android:layout_marginTop="20dp"
|
2018-04-28 12:27:49 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_height="wrap_content">
|
2018-04-28 12:27:49 +02:00
|
|
|
|
2018-09-23 11:56:53 +02:00
|
|
|
<LinearLayout
|
2018-04-28 12:27:49 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2018-04-28 12:27:49 +02:00
|
|
|
>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
2018-09-23 11:56:53 +02:00
|
|
|
android:baselineAligned="false">
|
2018-04-28 12:27:49 +02:00
|
|
|
<RelativeLayout
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
2018-04-28 12:27:49 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
>
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev1_h"
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-04-28 12:27:49 +02:00
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev1_play_h"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:src="@drawable/ic_play_arrow"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
2018-04-28 12:27:49 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginLeft="1dp"
|
|
|
|
android:layout_marginStart="1dp"
|
|
|
|
>
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev2_h"
|
|
|
|
android:scaleType="fitCenter"
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-04-28 12:27:49 +02:00
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev2_play_h"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:src="@drawable/ic_play_arrow"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</RelativeLayout>
|
2018-09-23 11:56:53 +02:00
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginTop="1dp"
|
|
|
|
android:baselineAligned="false">
|
2018-04-28 12:27:49 +02:00
|
|
|
<RelativeLayout
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
2018-04-28 12:27:49 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
>
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev3_h"
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-04-28 12:27:49 +02:00
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:adjustViewBounds="true"
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_height="match_parent"
|
2018-04-28 12:27:49 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev3_play_h"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:src="@drawable/ic_play_arrow"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="match_parent"
|
2018-04-28 12:27:49 +02:00
|
|
|
android:layout_marginLeft="1dp"
|
|
|
|
android:layout_marginStart="1dp"
|
|
|
|
>
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev4_h"
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-04-28 12:27:49 +02:00
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:adjustViewBounds="true"
|
2018-09-23 11:56:53 +02:00
|
|
|
android:layout_height="match_parent"
|
2018-04-28 12:27:49 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev4_play_h"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:src="@drawable/ic_play_arrow"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
2018-09-23 11:56:53 +02:00
|
|
|
</LinearLayout>
|
2018-04-28 12:27:49 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/hide_preview_h"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:src="@drawable/ic_remove_red_eye"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</RelativeLayout>
|
2017-06-28 17:42:33 +02:00
|
|
|
<LinearLayout
|
2018-02-10 12:11:24 +01:00
|
|
|
android:visibility="gone"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_document_container"
|
|
|
|
android:orientation="horizontal"
|
2018-10-14 10:16:53 +02:00
|
|
|
android:layout_marginTop="20dp"
|
2017-06-28 17:42:33 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_height="200dp"
|
|
|
|
android:baselineAligned="false">
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
>
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev1"
|
2017-08-28 12:12:41 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev1_play"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_width="20dp"
|
2017-12-21 15:14:48 +01:00
|
|
|
android:src="@drawable/ic_play_arrow"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_height="20dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
2018-04-01 11:31:10 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/hide_preview"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:src="@drawable/ic_remove_red_eye"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:ignore="ContentDescription" />
|
2017-10-29 09:30:08 +01:00
|
|
|
</RelativeLayout>
|
2017-05-25 18:34:20 +02:00
|
|
|
<LinearLayout
|
2017-10-29 09:30:08 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginStart="2dp"
|
|
|
|
android:id="@+id/status_container2"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="match_parent">
|
2017-06-16 19:23:41 +02:00
|
|
|
<RelativeLayout
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1">
|
2017-06-16 19:23:41 +02:00
|
|
|
<ImageView
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_prev2"
|
2017-06-16 19:23:41 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
|
|
android:visibility="gone"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_prev2_play"
|
2017-06-16 19:23:41 +02:00
|
|
|
android:layout_centerInParent="true"
|
2017-06-17 07:49:47 +02:00
|
|
|
android:layout_width="20dp"
|
2017-12-21 15:14:48 +01:00
|
|
|
android:src="@drawable/ic_play_arrow"
|
2017-06-17 07:49:47 +02:00
|
|
|
android:layout_height="20dp"
|
2017-06-16 19:23:41 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</RelativeLayout>
|
2017-10-29 09:30:08 +01:00
|
|
|
|
2017-06-07 16:52:53 +02:00
|
|
|
<LinearLayout
|
2017-05-25 18:34:20 +02:00
|
|
|
android:layout_weight="1"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:id="@+id/status_container3"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:baselineAligned="false">
|
2017-06-16 19:23:41 +02:00
|
|
|
<RelativeLayout
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content">
|
2017-06-16 19:23:41 +02:00
|
|
|
<ImageView
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_prev3"
|
2017-06-16 19:23:41 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_prev3_play"
|
2017-06-16 19:23:41 +02:00
|
|
|
android:layout_centerInParent="true"
|
2017-06-17 07:49:47 +02:00
|
|
|
android:layout_width="20dp"
|
2017-12-21 15:14:48 +01:00
|
|
|
android:src="@drawable/ic_play_arrow"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:visibility="gone"
|
2017-06-17 07:49:47 +02:00
|
|
|
android:layout_height="20dp"
|
2017-06-16 19:23:41 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</RelativeLayout>
|
2017-10-29 09:30:08 +01:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginStart="2dp"
|
2017-06-28 17:42:33 +02:00
|
|
|
android:layout_weight="1"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:id="@+id/status_prev4_container"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev4"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_prev4_play"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_width="20dp"
|
2017-12-21 15:14:48 +01:00
|
|
|
android:src="@drawable/ic_play_arrow"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_height="20dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</RelativeLayout>
|
2017-06-28 17:42:33 +02:00
|
|
|
|
2017-06-07 16:52:53 +02:00
|
|
|
</LinearLayout>
|
2017-05-25 18:34:20 +02:00
|
|
|
</LinearLayout>
|
2017-05-05 16:36:04 +02:00
|
|
|
</LinearLayout>
|
2017-10-29 09:30:08 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/status_show_more"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
android:drawableLeft="@drawable/ic_photo"
|
|
|
|
android:drawableStart="@drawable/ic_photo"
|
|
|
|
android:gravity="center"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-11-02 14:15:13 +01:00
|
|
|
style="@style/Base.Widget.AppCompat.Button.Borderless"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:text="@string/load_attachment" />
|
2017-06-28 17:42:33 +02:00
|
|
|
</LinearLayout>
|
2017-12-13 14:48:18 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/status_spoiler_mention_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_mention_spoiler"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
2017-05-05 16:36:04 +02:00
|
|
|
</LinearLayout>
|
2017-12-13 14:48:18 +01:00
|
|
|
|
2017-10-29 09:30:08 +01:00
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/status_action_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:padding="@dimen/drawer_padding"
|
|
|
|
android:layout_marginStart="@dimen/activity_vertical_margin"
|
|
|
|
android:layout_marginLeft="@dimen/activity_vertical_margin"
|
|
|
|
android:layout_marginEnd="@dimen/activity_vertical_margin"
|
|
|
|
android:layout_marginRight="@dimen/activity_vertical_margin"
|
|
|
|
android:orientation="horizontal">
|
2018-09-09 14:19:24 +02:00
|
|
|
<TextView
|
|
|
|
android:drawablePadding="2dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:id="@+id/status_reply"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:layout_width="wrap_content"
|
2018-09-09 14:19:24 +02:00
|
|
|
android:layout_height="wrap_content" />
|
2017-10-29 09:30:08 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:drawablePadding="2dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:id="@+id/status_reblog_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:drawablePadding="2dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:id="@+id/status_favorite_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
2017-10-05 19:22:58 +02:00
|
|
|
|
2017-10-29 09:30:08 +01:00
|
|
|
<ImageView
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:id="@+id/status_pin"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
2017-12-21 15:14:48 +01:00
|
|
|
android:src="@drawable/ic_pin_drop"/>
|
2017-10-29 09:30:08 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:gravity="end"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
|
|
android:layout_marginRight="20dp"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:id="@+id/status_privacy"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_width="25dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
2017-09-13 00:54:30 +02:00
|
|
|
<ImageView
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginStart="20dp"
|
2017-10-29 09:30:08 +01:00
|
|
|
android:id="@+id/status_more"
|
|
|
|
android:layout_width="25dp"
|
|
|
|
android:layout_height="25dp"
|
2017-12-21 15:14:48 +01:00
|
|
|
android:src="@drawable/ic_more_horiz"
|
2017-10-29 09:30:08 +01:00
|
|
|
tools:ignore="ContentDescription" />
|
2017-05-05 16:36:04 +02:00
|
|
|
</LinearLayout>
|
2017-10-29 09:30:08 +01:00
|
|
|
</LinearLayout>
|
2017-12-06 16:45:07 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/fetch_more"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
android:drawableLeft="@drawable/ic_expand_more"
|
|
|
|
android:drawableStart="@drawable/ic_expand_more"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Borderless"
|
|
|
|
android:text="@string/fetch_more_toots" />
|
2017-10-29 09:30:08 +01:00
|
|
|
</LinearLayout>
|