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

423 lines
20 KiB
XML
Raw Normal View History

2019-09-06 17:55:14 +02: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>.
-->
2019-11-15 16:32:25 +01:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-12-04 07:53:19 +01:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-11-15 16:32:25 +01:00
xmlns:card_view="http://schemas.android.com/tools"
android:id="@+id/card_status_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2019-09-06 17:55:14 +02:00
<LinearLayout
2019-11-06 15:52:39 +01:00
android:id="@+id/main_linear_container"
android:layout_width="match_parent"
2017-05-05 16:36:04 +02:00
android:layout_height="wrap_content"
2019-11-09 17:11:55 +01:00
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
2019-01-24 10:38:03 +01:00
android:divider="?android:dividerHorizontal"
2019-11-15 16:32:25 +01:00
android:orientation="vertical"
android:showDividers="end">
2019-09-06 17:55:14 +02:00
2017-07-30 11:21:55 +02:00
<LinearLayout
2019-11-15 16:32:25 +01:00
android:id="@+id/main_container"
android:layout_width="match_parent"
2017-07-30 11:21:55 +02:00
android:layout_height="wrap_content"
2017-08-27 16:36:18 +02:00
android:orientation="horizontal"
card_view:ignore="DisableBaselineAlignment">
2019-09-06 17:55:14 +02:00
<LinearLayout
2018-11-03 16:04:21 +01:00
android:layout_width="50dp"
android:layout_height="wrap_content"
android:orientation="vertical">
2019-09-06 17:55:14 +02:00
<ImageView
android:id="@+id/notification_account_profile"
android:layout_width="50dp"
2019-11-15 16:32:25 +01:00
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
2019-11-15 16:32:25 +01:00
android:layout_marginTop="5dp"
android:contentDescription="@string/profile_picture"
android:gravity="center_horizontal|top" />
</LinearLayout>
2019-09-06 17:55:14 +02:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_weight="1"
android:orientation="vertical">
2019-09-06 17:55:14 +02:00
<TextView
android:id="@+id/notification_type"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:padding="5dp"
android:textSize="14sp" />
2019-09-06 17:55:14 +02:00
<TextView
android:id="@+id/notification_account_username"
android:layout_width="wrap_content"
2020-07-06 11:59:47 +02:00
android:layout_marginStart="5dp"
android:layout_height="wrap_content" />
2019-09-06 17:55:14 +02:00
<TextView
android:id="@+id/status_date"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:layout_gravity="end"
2018-11-03 16:04:21 +01:00
android:layout_marginStart="2dp"
android:gravity="end"
2019-11-15 16:32:25 +01:00
android:textSize="12sp" />
2018-11-10 15:41:26 +01:00
</LinearLayout>
</LinearLayout>
2019-09-06 17:55:14 +02:00
2018-11-10 15:41:26 +01:00
<LinearLayout
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:orientation="horizontal">
2019-09-06 17:55:14 +02:00
2018-11-10 15:41:26 +01:00
<RelativeLayout
android:layout_width="50dp"
android:layout_height="wrap_content">
2019-09-06 17:55:14 +02:00
2018-11-10 15:41:26 +01:00
<ImageView
2019-11-15 16:32:25 +01:00
android:id="@+id/notification_delete"
android:layout_width="25dp"
android:layout_height="25dp"
2018-11-10 15:41:26 +01:00
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
2020-01-18 14:54:34 +01:00
android:contentDescription="@string/remove_notification"
2018-11-10 15:41:26 +01:00
android:src="@drawable/ic_delete"
2019-11-15 16:32:25 +01:00
android:tint="?attr/iconColor" />
2018-11-10 15:41:26 +01:00
</RelativeLayout>
2019-09-06 17:55:14 +02:00
2018-11-10 15:41:26 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2019-09-06 17:55:14 +02:00
<LinearLayout
android:id="@+id/status_spoiler_container"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:orientation="vertical"
2019-11-15 16:32:25 +01:00
android:visibility="gone">
2019-09-06 17:55:14 +02:00
2019-05-18 11:10:30 +02:00
<app.fedilab.android.helper.CustomTextView
android:id="@+id/status_spoiler"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:textIsSelectable="true" />
2019-09-06 17:55:14 +02:00
<Button
android:id="@+id/status_spoiler_button"
2019-11-15 16:32:25 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_remove_red_eye"
android:drawablePadding="5dp"
2019-11-15 16:32:25 +01:00
android:gravity="center"
android:paddingStart="10dp"
2019-11-15 16:32:25 +01:00
android:paddingLeft="10dp"
android:paddingTop="5dp"
2019-11-15 16:32:25 +01:00
android:paddingEnd="10dp"
android:paddingRight="10dp"
android:paddingBottom="5dp"
2020-05-16 20:00:45 +02:00
android:singleLine="true"
2019-11-15 16:32:25 +01:00
android:text="@string/load_attachment_spoiler"
android:textAllCaps="false" />
</LinearLayout>
2017-05-05 16:36:04 +02:00
<LinearLayout
android:id="@+id/notification_status_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2019-09-06 17:55:14 +02:00
2019-05-18 11:10:30 +02:00
<app.fedilab.android.helper.CustomTextView
android:id="@+id/notification_status_content"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:textIsSelectable="true" />
2019-09-06 17:55:14 +02:00
2017-08-04 14:38:18 +02:00
<LinearLayout
android:id="@+id/status_document_container"
android:layout_width="match_parent"
android:layout_height="200dp"
2019-11-15 16:32:25 +01:00
android:layout_marginBottom="10dp"
android:baselineAligned="false"
android:orientation="horizontal">
2019-09-06 17:55:14 +02:00
2017-08-04 14:38:18 +02:00
<RelativeLayout
android:layout_width="0dp"
2019-11-15 16:32:25 +01:00
android:layout_height="match_parent"
android:layout_weight="1">
2019-09-06 17:55:14 +02:00
2017-08-04 14:38:18 +02:00
<ImageView
android:id="@+id/status_prev1"
2017-08-04 14:38:18 +02:00
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="match_parent"
android:scaleType="centerCrop" />
2019-09-06 17:55:14 +02:00
2017-08-04 14:38:18 +02:00
<ImageView
android:id="@+id/status_prev1_play"
2017-08-04 14:38:18 +02:00
android:layout_width="20dp"
2019-11-15 16:32:25 +01:00
android:layout_height="20dp"
android:layout_centerInParent="true"
android:contentDescription="@string/play_video"
2017-12-21 15:14:48 +01:00
android:src="@drawable/ic_play_arrow"
2019-11-08 18:39:55 +01:00
android:tint="@color/white"
2019-11-15 16:32:25 +01:00
android:visibility="gone" />
2017-08-04 14:38:18 +02:00
</RelativeLayout>
2019-09-06 17:55:14 +02:00
2017-08-04 14:38:18 +02:00
<LinearLayout
2019-11-15 16:32:25 +01:00
android:id="@+id/status_container2"
android:layout_width="0dp"
2019-11-15 16:32:25 +01:00
android:layout_height="match_parent"
android:layout_marginStart="2dp"
2017-08-04 14:38:18 +02:00
android:layout_weight="1"
2019-11-15 16:32:25 +01:00
android:orientation="vertical">
2019-09-06 17:55:14 +02:00
2017-08-04 14:38:18 +02:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
2019-11-15 16:32:25 +01:00
android:layout_weight="1"
android:scaleType="centerCrop">
2019-09-06 17:55:14 +02:00
2017-08-04 14:38:18 +02:00
<ImageView
android:id="@+id/status_prev2"
2017-08-04 14:38:18 +02:00
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="match_parent"
android:scaleType="centerCrop" />
2019-09-06 17:55:14 +02:00
2017-08-04 14:38:18 +02:00
<ImageView
android:id="@+id/status_prev2_play"
2017-08-04 14:38:18 +02:00
android:layout_width="20dp"
2019-11-15 16:32:25 +01:00
android:layout_height="20dp"
android:layout_centerInParent="true"
android:contentDescription="@string/play_video"
2017-12-21 15:14:48 +01:00
android:src="@drawable/ic_play_arrow"
2019-11-08 18:39:55 +01:00
android:tint="@color/white"
2019-11-15 16:32:25 +01:00
android:visibility="gone" />
2017-08-04 14:38:18 +02:00
</RelativeLayout>
<LinearLayout
android:id="@+id/status_container3"
2019-11-15 16:32:25 +01:00
android:layout_width="match_parent"
android:layout_height="0dp"
2019-11-15 16:32:25 +01:00
android:layout_marginTop="2dp"
android:layout_weight="1"
android:baselineAligned="false"
android:orientation="horizontal">
2019-09-06 17:55:14 +02:00
<RelativeLayout
android:layout_width="0dp"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:layout_weight="1">
2019-09-06 17:55:14 +02:00
<ImageView
android:id="@+id/status_prev3"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="match_parent"
android:scaleType="centerCrop" />
2019-09-06 17:55:14 +02:00
<ImageView
android:id="@+id/status_prev3_play"
android:layout_width="20dp"
2019-11-15 16:32:25 +01:00
android:layout_height="20dp"
android:layout_centerInParent="true"
android:contentDescription="@string/play_video"
2017-12-21 15:14:48 +01:00
android:src="@drawable/ic_play_arrow"
2019-11-08 18:39:55 +01:00
android:tint="@color/white"
2019-11-15 16:32:25 +01:00
android:visibility="gone" />
</RelativeLayout>
2019-09-06 17:55:14 +02:00
<RelativeLayout
android:id="@+id/status_prev4_container"
2019-11-15 16:32:25 +01:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="2dp"
android:layout_weight="1">
2019-09-06 17:55:14 +02:00
<ImageView
android:id="@+id/status_prev4"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="match_parent"
android:scaleType="centerCrop" />
2019-09-06 17:55:14 +02:00
<ImageView
android:id="@+id/status_prev4_play"
android:layout_width="20dp"
2019-11-15 16:32:25 +01:00
android:layout_height="20dp"
android:layout_centerInParent="true"
android:contentDescription="@string/play_video"
2017-12-21 15:14:48 +01:00
android:src="@drawable/ic_play_arrow"
2019-11-08 18:39:55 +01:00
android:tint="@color/white"
2019-11-15 16:32:25 +01:00
android:visibility="gone" />
</RelativeLayout>
</LinearLayout>
2017-08-04 14:38:18 +02:00
</LinearLayout>
</LinearLayout>
2019-09-06 17:55:14 +02:00
<Button
android:id="@+id/status_show_more"
2019-11-15 16:32:25 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_photo"
android:drawablePadding="5dp"
2019-11-15 16:32:25 +01:00
android:gravity="center"
android:paddingStart="10dp"
2019-11-15 16:32:25 +01:00
android:paddingLeft="10dp"
android:paddingTop="5dp"
2019-11-15 16:32:25 +01:00
android:paddingEnd="10dp"
android:paddingRight="10dp"
android:paddingBottom="5dp"
2020-05-16 20:00:45 +02:00
android:singleLine="true"
2019-11-15 16:32:25 +01:00
android:text="@string/load_attachment"
android:textAllCaps="false"
android:visibility="gone" />
2017-05-05 16:36:04 +02:00
</LinearLayout>
2019-09-06 17:55:14 +02:00
<LinearLayout
android:id="@+id/status_spoiler_mention_container"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:orientation="vertical"
2019-11-15 16:32:25 +01:00
android:visibility="gone">
2019-09-06 17:55:14 +02:00
<TextView
android:id="@+id/status_mention_spoiler"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
</LinearLayout>
2019-03-24 19:49:17 +01:00
<include
2019-11-15 16:32:25 +01:00
layout="@layout/layout_poll"
2019-03-24 19:49:17 +01:00
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content" />
2019-06-11 13:16:49 +02:00
2019-06-11 19:38:26 +02:00
<androidx.constraintlayout.widget.ConstraintLayout
2018-11-03 16:04:21 +01:00
android:id="@+id/status_action_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:padding="@dimen/drawer_padding"
2019-11-15 16:32:25 +01:00
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent">
2019-06-11 13:16:49 +02:00
2019-06-16 17:38:15 +02:00
<ImageView
2018-11-03 16:04:21 +01:00
android:id="@+id/status_reply"
2019-06-16 17:38:15 +02:00
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/ic_reply"
2019-11-08 18:39:55 +01:00
android:tint="?attr/iconColor"
2019-06-16 17:38:15 +02:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/status_reply_count"
2018-11-03 16:04:21 +01:00
android:layout_width="wrap_content"
2019-06-11 13:16:49 +02:00
android:layout_height="wrap_content"
2019-06-16 17:38:15 +02:00
android:layout_marginStart="2dp"
2019-06-11 13:16:49 +02:00
app:layout_constraintBottom_toBottomOf="parent"
2019-06-16 17:38:15 +02:00
app:layout_constraintStart_toEndOf="@id/status_reply"
2019-06-11 13:16:49 +02:00
app:layout_constraintTop_toTopOf="parent" />
<com.varunest.sparkbutton.SparkButton
android:id="@+id/spark_button_reblog"
android:layout_width="30dp"
android:layout_height="30dp"
2018-11-03 16:04:21 +01:00
android:layout_marginStart="15dp"
2019-06-11 13:16:49 +02:00
app:layout_constraintBottom_toBottomOf="parent"
2019-06-16 17:38:15 +02:00
app:layout_constraintStart_toEndOf="@id/status_reply_count"
2019-06-11 13:16:49 +02:00
app:layout_constraintTop_toTopOf="parent"
app:sparkbutton_activeImage="@drawable/ic_repeat_boost"
app:sparkbutton_iconSize="20dp"
app:sparkbutton_inActiveImage="@drawable/ic_repeat" />
<TextView
android:id="@+id/status_reblog_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawablePadding="2dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/spark_button_reblog"
app:layout_constraintTop_toTopOf="parent" />
<com.varunest.sparkbutton.SparkButton
android:id="@+id/spark_button_fav"
android:layout_width="30dp"
android:layout_height="30dp"
2018-11-03 16:04:21 +01:00
android:layout_marginStart="15dp"
2019-06-11 13:16:49 +02:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/status_reblog_count"
app:layout_constraintTop_toTopOf="parent"
app:sparkbutton_activeImage="@drawable/ic_star"
app:sparkbutton_iconSize="20dp"
app:sparkbutton_inActiveImage="@drawable/ic_star_border" />
<TextView
android:id="@+id/status_favorite_count"
2018-11-03 16:04:21 +01:00
android:layout_width="wrap_content"
2019-06-11 13:16:49 +02:00
android:layout_height="wrap_content"
android:drawablePadding="2dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/spark_button_fav"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/status_privacy"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_marginEnd="15dp"
2019-11-15 16:32:25 +01:00
android:tint="?attr/iconColor"
2019-06-11 13:16:49 +02:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/status_more"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/status_more"
android:layout_width="25dp"
android:layout_height="25dp"
android:contentDescription="@string/display_toot_truncate"
android:src="@drawable/ic_more_horiz"
2019-11-08 18:39:55 +01:00
android:tint="?attr/iconColor"
2019-06-11 13:16:49 +02:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2019-06-11 19:38:26 +02:00
</androidx.constraintlayout.widget.ConstraintLayout>
2017-10-05 19:12:49 +02:00
2019-07-03 18:24:07 +02:00
<include
layout="@layout/layout_quick_reply"
2019-06-26 13:21:07 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-07-03 18:24:07 +02:00
android:layout_marginTop="10dp" />
2019-06-26 13:21:07 +02:00
</LinearLayout>
2018-11-10 15:41:26 +01:00
</LinearLayout>
2017-05-05 16:36:04 +02:00
</LinearLayout>
2019-09-06 17:55:14 +02:00
2017-10-30 10:50:53 +01:00
<RelativeLayout
2017-10-28 11:25:33 +02:00
android:id="@+id/container_trans"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="match_parent"
android:background="@color/black"
android:visibility="gone" />
2017-10-30 10:50:53 +01:00
</FrameLayout>