2020-07-01 16:36:08 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
|
|
|
Copyright 2020 Thomas Schneider
|
2020-06-26 14:34:39 +02:00
|
|
|
|
2020-07-01 16:36:08 +02:00
|
|
|
This file is a part of TubeLab
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
TubeLab 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.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
|
|
|
see <http://www.gnu.org/licenses>.
|
|
|
|
-->
|
2020-06-26 14:34:39 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:keepScreenOn="true"
|
|
|
|
tools:context=".PeertubeActivity">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-11-17 17:47:10 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<RelativeLayout
|
2020-07-09 18:08:43 +02:00
|
|
|
android:id="@+id/video_container"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/main_media_frame"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="#000000"
|
2020-11-16 18:54:59 +01:00
|
|
|
android:animateLayoutChanges="true"
|
2020-06-26 14:34:39 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
2020-10-29 18:56:57 +01:00
|
|
|
<com.github.vkay94.dtpv.DoubleTapPlayerView
|
|
|
|
android:id="@+id/doubleTapPlayerView"
|
2020-11-16 18:54:59 +01:00
|
|
|
android:animateLayoutChanges="true"
|
2020-10-29 18:56:57 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
app:use_controller="true"
|
|
|
|
app:dtpv_controller="@+id/media_video" />
|
|
|
|
|
|
|
|
<com.github.vkay94.dtpv.youtube.YouTubeOverlay
|
2020-06-26 14:34:39 +02:00
|
|
|
android:id="@+id/media_video"
|
2020-10-13 16:35:51 +02:00
|
|
|
android:animateLayoutChanges="true"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-10-29 18:56:57 +01:00
|
|
|
android:visibility="invisible"
|
|
|
|
app:yt_playerView="@+id/doubleTapPlayerView"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:gravity="center" />
|
|
|
|
|
2020-06-26 18:17:17 +02:00
|
|
|
<app.fedilab.fedilabtube.webview.CustomWebview
|
2020-06-26 14:34:39 +02:00
|
|
|
android:id="@+id/webview_video"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<!-- Main Loader -->
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/loader"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
2020-10-04 17:25:08 +02:00
|
|
|
<com.github.ybq.android.spinkit.SpinKitView
|
|
|
|
style="@style/SpinKitView.DoubleBounce"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-04 17:25:08 +02:00
|
|
|
android:layout_gravity="center" />
|
2020-06-26 14:34:39 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2020-10-14 19:11:53 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2020-06-26 14:34:39 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-11-14 19:13:59 +01:00
|
|
|
android:id="@+id/bottom_video"
|
2020-09-03 18:56:48 +02:00
|
|
|
android:layout_height="0dp"
|
2020-10-14 19:11:53 +02:00
|
|
|
android:layout_weight="2"
|
2020-07-09 18:08:43 +02:00
|
|
|
android:layout_marginStart="@dimen/video_comment_margin"
|
|
|
|
android:layout_marginEnd="@dimen/video_comment_margin"
|
2020-10-14 19:11:53 +02:00
|
|
|
>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
android:id="@+id/peertube_information_container"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-10-14 19:11:53 +02:00
|
|
|
android:layout_height="match_parent">
|
2020-06-26 14:34:39 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-14 19:11:53 +02:00
|
|
|
android:orientation="vertical">
|
2020-06-26 14:34:39 +02:00
|
|
|
|
2020-11-19 12:00:39 +01:00
|
|
|
<androidx.cardview.widget.CardView
|
2020-10-14 19:11:53 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-11-19 12:00:39 +01:00
|
|
|
android:layout_height="wrap_content">
|
2020-10-14 19:11:53 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
2020-11-19 12:00:39 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-10-14 19:11:53 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-11-19 12:00:39 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp">
|
|
|
|
|
2020-11-24 13:50:06 +01:00
|
|
|
<LinearLayout
|
2020-11-19 12:00:39 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-26 14:16:44 +01:00
|
|
|
android:orientation="horizontal"
|
|
|
|
tools:ignore="UseCompoundDrawables">
|
2020-11-24 13:50:06 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/peertube_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/video_sensitive"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:contentDescription="@string/sensitive_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:src="@drawable/ic_sensitive_content"
|
|
|
|
android:visibility="invisible" />
|
|
|
|
</LinearLayout>
|
2020-11-19 12:00:39 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/pp_channel"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:contentDescription="@string/profile_picture" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/peertube_view_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:text="0"
|
|
|
|
app:drawableTopCompat="@drawable/ic_baseline_visibility_24"
|
|
|
|
tools:ignore="HardcodedText" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/peertube_like_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:text="0"
|
|
|
|
app:drawableTopCompat="@drawable/ic_baseline_thumb_up_alt_24"
|
|
|
|
tools:ignore="HardcodedText" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/peertube_dislike_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:text="0"
|
|
|
|
app:drawableTopCompat="@drawable/ic_baseline_thumb_down_alt_24"
|
|
|
|
tools:ignore="HardcodedText" />
|
|
|
|
|
|
|
|
|
2020-11-24 13:50:06 +01:00
|
|
|
<ImageView
|
2020-11-19 12:00:39 +01:00
|
|
|
android:id="@+id/peertube_playlist"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:gravity="center_horizontal"
|
2020-11-24 13:50:06 +01:00
|
|
|
android:contentDescription="@string/playlists"
|
2020-11-19 12:00:39 +01:00
|
|
|
android:visibility="gone"
|
2020-11-24 13:50:06 +01:00
|
|
|
android:src="@drawable/ic_baseline_list_24" />
|
2020-11-19 12:00:39 +01:00
|
|
|
|
2020-11-24 13:50:06 +01:00
|
|
|
<ImageView
|
2020-11-19 18:08:28 +01:00
|
|
|
android:id="@+id/video_information"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:gravity="center_horizontal"
|
2020-11-24 13:50:06 +01:00
|
|
|
android:contentDescription="@string/information"
|
|
|
|
android:src="@drawable/ic_baseline_info_24" />
|
|
|
|
|
2020-11-19 18:08:28 +01:00
|
|
|
|
2020-11-19 12:00:39 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
tools:ignore="UselessLeaf" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/more_actions"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:text=""
|
|
|
|
app:drawableTopCompat="@drawable/ic_baseline_more_vert_24" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/peertube_description"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:autoLink="web"
|
|
|
|
android:textIsSelectable="true" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/peertube_description_more"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:text="@string/show_more"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
2020-06-26 14:34:39 +02:00
|
|
|
|
2020-11-09 18:48:10 +01:00
|
|
|
<Button
|
|
|
|
android:layout_gravity="center"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
android:id="@+id/post_comment_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/add_public_comment"/>
|
2020-10-14 19:11:53 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2020-11-19 12:00:39 +01:00
|
|
|
android:layout_marginStart="10dp"
|
2020-10-14 19:11:53 +02:00
|
|
|
android:id="@+id/peertube_comments"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2020-06-26 14:34:39 +02:00
|
|
|
|
2020-10-14 19:11:53 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/no_action"
|
|
|
|
android:layout_width="match_parent"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-10-14 19:11:53 +02:00
|
|
|
android:visibility="gone">
|
2020-09-20 11:07:28 +02:00
|
|
|
|
2020-10-14 19:11:53 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/no_action_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:text="@string/no_comments"
|
|
|
|
android:textSize="25sp" />
|
|
|
|
</RelativeLayout>
|
2020-06-26 14:34:39 +02:00
|
|
|
</LinearLayout>
|
2020-10-14 19:11:53 +02:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2020-06-26 14:34:39 +02:00
|
|
|
|
2020-10-14 19:11:53 +02:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2020-10-15 15:16:41 +02:00
|
|
|
android:background="?android:colorBackground"
|
2020-10-14 19:11:53 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
android:id="@+id/reply_thread"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
2020-06-26 14:34:39 +02:00
|
|
|
<LinearLayout
|
2020-10-14 19:11:53 +02:00
|
|
|
android:id="@+id/main_container"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-14 19:11:53 +02:00
|
|
|
android:divider="?android:dividerHorizontal"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:showDividers="end">
|
2020-10-14 19:14:54 +02:00
|
|
|
<ImageView
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:id="@+id/close_reply"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:contentDescription="@string/close"
|
2020-11-14 19:13:59 +01:00
|
|
|
android:src="@drawable/ic_baseline_close_24" />
|
2020-11-09 18:48:10 +01:00
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
android:id="@+id/peertube_reply"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
2020-11-14 19:13:59 +01:00
|
|
|
|
2020-06-26 14:34:39 +02:00
|
|
|
|
2020-10-14 19:11:53 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2020-06-26 14:34:39 +02:00
|
|
|
|
|
|
|
<!-- View where the video will be shown when video goes fullscreen -->
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/videoLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-06-26 18:17:17 +02:00
|
|
|
android:background="@android:color/black"
|
2020-06-26 14:34:39 +02:00
|
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|
2020-11-16 18:54:59 +01:00
|
|
|
|
2020-11-17 17:47:10 +01:00
|
|
|
<RelativeLayout
|
2020-11-16 18:54:59 +01:00
|
|
|
android:id="@+id/video_params"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-17 17:47:10 +01:00
|
|
|
android:background="?attr/backgroundView"
|
|
|
|
android:minHeight="100dp"
|
|
|
|
android:translationZ="2dp"
|
2020-11-16 18:54:59 +01:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/main_options_video"
|
|
|
|
android:layout_width="match_parent"
|
2020-11-26 14:16:44 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_margin="30dp" />
|
2020-11-17 17:47:10 +01:00
|
|
|
</RelativeLayout>
|
2020-11-16 18:54:59 +01:00
|
|
|
|
2020-11-26 14:16:44 +01:00
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
android:id="@+id/post_comment"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?android:colorBackground"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/post_main_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:divider="?android:dividerHorizontal"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:showDividers="end">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/close_post"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:contentDescription="@string/close"
|
|
|
|
android:src="@drawable/ic_baseline_close_24" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/reply_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/comment_account_profile"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:contentDescription="@string/profile_picture"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/comment_account_displayname"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/comment_date"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/comment_account_profile"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/comment_account_username"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textSize="12sp"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/comment_account_profile"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/comment_account_displayname" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/comment_date"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_marginStart="2dp"
|
|
|
|
android:layout_weight="0"
|
|
|
|
android:gravity="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="12sp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/comment_content"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/comment_account_profile" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/write_comment_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="10dp">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/separator_top"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:background="@android:color/darker_gray"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/write_container"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/write_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/separator_bottom"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/separator_top">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/my_pp"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:contentDescription="@string/profile_picture"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/text_field_boxes"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/my_pp"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/add_comment_write"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="top"
|
|
|
|
android:hint="@string/add_public_reply"
|
|
|
|
android:inputType="textMultiLine"
|
|
|
|
android:maxLines="8"
|
|
|
|
android:minLines="4" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/send"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/send_comment"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/text_field_boxes" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/separator_bottom"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:background="@android:color/darker_gray"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/write_container" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
2020-11-16 18:54:59 +01:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2020-11-17 17:47:10 +01:00
|
|
|
android:id="@+id/video_params_submenu"
|
2020-11-16 18:54:59 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-17 17:47:10 +01:00
|
|
|
android:background="?attr/backgroundView"
|
|
|
|
android:minHeight="300dp"
|
|
|
|
android:translationZ="3dp"
|
2020-11-16 18:54:59 +01:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
|
2020-11-17 17:47:10 +01:00
|
|
|
<RelativeLayout
|
2020-11-16 18:54:59 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-11-17 17:47:10 +01:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/subMenuTitle"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="@dimen/fab_margin"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/subMenuRecycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_margin="30dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2020-11-16 18:54:59 +01:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2020-06-26 14:34:39 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|