LibreTube/app/src/main/res/layout/comments_row.xml

127 lines
5.1 KiB
XML
Raw Normal View History

2022-05-08 16:03:01 +05:30
<?xml version="1.0" encoding="utf-8"?>
2023-03-03 22:24:51 +05:30
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2022-05-08 16:03:01 +05:30
xmlns:app="http://schemas.android.com/apk/res-auto"
2022-07-28 19:41:35 +05:30
xmlns:tools="http://schemas.android.com/tools"
2022-05-08 16:03:01 +05:30
android:layout_width="match_parent"
2022-06-27 22:47:52 +05:30
android:layout_height="wrap_content"
2023-01-30 21:09:05 +05:30
android:background="@drawable/rounded_ripple">
2022-05-08 16:03:01 +05:30
2022-06-05 19:12:51 +05:30
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-07-04 21:52:21 +05:30
android:layout_marginTop="10dp"
android:layout_marginBottom="16dp"
2023-03-10 22:38:44 +05:30
android:animateLayoutChanges="true"
android:orientation="horizontal"
2022-11-26 22:55:07 +05:30
android:paddingStart="15dp"
2023-03-03 22:24:51 +05:30
android:paddingEnd="15dp">
2022-05-08 16:03:01 +05:30
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/commentor_image"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginEnd="16dp"
android:background="@android:color/darker_gray"
app:shapeAppearance="@style/CircleImageView"
tools:src="@mipmap/ic_launcher" />
2022-05-08 16:03:01 +05:30
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2022-05-08 16:03:01 +05:30
2022-05-08 17:44:06 +05:30
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:orientation="horizontal">
2022-05-08 16:49:50 +05:30
<TextView
android:id="@+id/comment_infos"
android:layout_width="wrap_content"
2022-05-08 16:49:50 +05:30
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="2"
2023-01-31 22:47:45 +05:30
android:textAlignment="viewStart"
android:textColor="?android:attr/textColorSecondary"
2023-03-10 22:38:44 +05:30
android:textSize="14sp"
tools:text="Octacat • 10h" />
<ImageView
android:id="@+id/verified_imageView"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginStart="4dp"
android:visibility="gone"
app:srcCompat="@drawable/ic_verified"
tools:visibility="visible" />
<ImageView
android:id="@+id/pinned_imageView"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginStart="4dp"
android:visibility="gone"
app:srcCompat="@drawable/ic_pinned"
tools:visibility="visible" />
</LinearLayout>
<TextView
android:id="@+id/comment_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginBottom="8dp"
android:textAlignment="viewStart"
2023-03-10 22:38:44 +05:30
android:textIsSelectable="true"
android:textSize="15sp"
tools:text="Comment Text" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:orientation="horizontal">
<com.github.libretube.ui.views.DrawableTextView
android:id="@+id/likes_textView"
android:layout_width="wrap_content"
2023-03-10 22:38:44 +05:30
android:layout_height="wrap_content"
android:layout_marginEnd="5dp"
2023-03-10 22:38:44 +05:30
android:drawablePadding="6dp"
android:gravity="center_vertical"
android:includeFontPadding="false"
app:drawableStartCompat="@drawable/ic_thumb_up"
app:drawableStartDimen="16dp"
tools:text="1.2k" />
<ImageView
android:id="@+id/hearted_imageView"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_marginEnd="8dp"
android:visibility="gone"
app:srcCompat="@drawable/ic_hearted"
tools:visibility="visible" />
<com.github.libretube.ui.views.DrawableTextView
android:id="@+id/replies_count"
android:layout_width="wrap_content"
2023-03-10 22:38:44 +05:30
android:layout_height="wrap_content"
android:drawablePadding="6dp"
android:gravity="center_vertical"
android:includeFontPadding="false"
android:visibility="gone"
app:drawableStartCompat="@drawable/ic_comment"
app:drawableStartDimen="16dp"
tools:text="53"
tools:visibility="visible" />
2022-10-06 18:05:42 +05:30
2022-05-08 16:49:50 +05:30
</LinearLayout>
2022-10-06 18:05:42 +05:30
2022-05-08 16:03:01 +05:30
</LinearLayout>
2022-06-05 19:12:51 +05:30
</LinearLayout>
2023-03-03 22:24:51 +05:30
</LinearLayout>