2020-10-01 17:42:03 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
|
|
|
Copyright 2020 Thomas Schneider
|
|
|
|
|
|
|
|
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>.
|
|
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/main_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:divider="?android:dividerHorizontal"
|
2020-11-26 14:16:44 +01:00
|
|
|
android:orientation="horizontal"
|
2020-10-15 15:16:41 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:showDividers="end"
|
|
|
|
android:focusable="true">
|
2020-10-01 17:42:03 +02:00
|
|
|
|
2020-11-27 11:38:36 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-11-26 14:16:44 +01:00
|
|
|
android:id="@+id/decoration_container"
|
|
|
|
android:layout_width="wrap_content"
|
2020-11-27 11:38:36 +01:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2020-11-26 14:16:44 +01:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2020-11-27 11:38:36 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-11-26 14:16:44 +01:00
|
|
|
android:id="@+id/sub_comment_container"
|
|
|
|
android:layout_width="match_parent"
|
2020-11-27 11:38:36 +01:00
|
|
|
android:layout_marginStart="10dp">
|
2020-10-01 17:42:03 +02:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/comment_account_profile"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginTop="5dp"
|
2020-11-25 15:08:38 +01:00
|
|
|
android:src="@drawable/missing_peertube"
|
2020-10-01 17:42:03 +02:00
|
|
|
android:contentDescription="@string/profile_picture"
|
2020-11-26 14:16:44 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-10-01 17:42:03 +02:00
|
|
|
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" />
|
|
|
|
|
2020-10-14 16:39:27 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/comment_account_username"
|
2020-11-09 18:48:10 +01:00
|
|
|
android:layout_width="0dp"
|
2020-10-14 16:39:27 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textSize="12sp"
|
2020-11-09 18:48:10 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/more_actions"
|
2020-10-14 16:39:27 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/comment_account_profile"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/comment_account_displayname" />
|
|
|
|
|
2020-10-01 17:42:03 +02:00
|
|
|
<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"
|
2020-11-09 18:48:10 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/more_actions"
|
2020-10-01 17:42:03 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/more_actions"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:gravity="end"
|
|
|
|
android:text=""
|
|
|
|
app:drawableTopCompat="@drawable/ic_baseline_more_vert_24"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/comment_date" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/comment_content"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-14 16:39:27 +02:00
|
|
|
android:layout_marginTop="5dp"
|
2020-10-01 17:42:03 +02:00
|
|
|
android:textIsSelectable="true"
|
2020-11-09 18:48:10 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/more_actions"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/comment_account_profile"
|
2020-10-01 17:42:03 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/comment_account_profile" />
|
|
|
|
|
2020-10-14 19:11:53 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/number_of_replies"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/comment_content"
|
2020-11-25 15:08:38 +01:00
|
|
|
app:layout_constraintStart_toStartOf="@id/comment_account_profile"
|
2020-10-14 19:11:53 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?attr/colorAccent"/>
|
2020-10-15 18:11:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/comment_content"
|
2020-11-09 18:48:10 +01:00
|
|
|
app:layout_constraintStart_toStartOf="@id/comment_account_profile"
|
2020-10-15 18:11:37 +02:00
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:id="@+id/replyButton"
|
|
|
|
android:text="@string/reply"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
2020-11-09 18:48:10 +01:00
|
|
|
<Button
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
android:id="@+id/post_reply_button"
|
2020-10-15 18:11:37 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-11-09 18:48:10 +01:00
|
|
|
android:gravity="center"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/add_public_reply"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/comment_content" />
|
2020-10-01 17:42:03 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
2020-11-26 14:16:44 +01:00
|
|
|
|
2020-10-01 17:42:03 +02:00
|
|
|
</LinearLayout>
|