mirror of
https://github.com/LBRYFoundation/lbry-android.git
synced 2025-09-05 14:01:42 +00:00
194 lines
No EOL
8.4 KiB
XML
194 lines
No EOL
8.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/comment_form_card"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="16dp">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:text="@string/comment_as"
|
|
android:fontFamily="@font/inter"
|
|
android:textSize="14sp"
|
|
android:textFontWeight="300" />
|
|
<ProgressBar
|
|
android:id="@+id/comment_form_channels_loading"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:visibility="gone" />
|
|
</RelativeLayout>
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/comment_form_channel_spinner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp" />
|
|
|
|
<include layout="@layout/container_inline_channel_form" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/comment_form_reply_to_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<View
|
|
android:id="@+id/comment_form_reply_to_vertical_bar"
|
|
android:layout_width="3dp"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/nextLbryGreen"
|
|
android:orientation="vertical" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="40dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/comment_form_replying_to_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/inter"
|
|
android:text="@string/replying_to"
|
|
android:textColor="@color/lightGrey"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/comment_form_reply_to_body"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:fontFamily="@font/inter"
|
|
android:lineSpacingMultiplier="1.05"
|
|
android:textFontWeight="300"
|
|
android:textSize="14sp" />
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/comment_form_clear_reply_to"
|
|
android:layout_width="36dp"
|
|
android:layout_height="36dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_centerInParent="true"
|
|
android:src="@drawable/ic_close"
|
|
app:tint="@color/foreground" />
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp">
|
|
<RelativeLayout
|
|
android:id="@+id/comment_form_avatar_container"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp">
|
|
<RelativeLayout
|
|
android:layout_centerHorizontal="true"
|
|
android:background="@drawable/bg_channel_icon"
|
|
android:id="@+id/comment_form_no_thumbnail"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:visibility="invisible">
|
|
<TextView
|
|
android:id="@+id/comment_form_thumbnail_alpha"
|
|
android:layout_centerInParent="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/inter"
|
|
android:textAllCaps="true"
|
|
android:textSize="24sp"
|
|
android:textColor="@color/white"
|
|
android:textFontWeight="300" />
|
|
</RelativeLayout>
|
|
<ImageView
|
|
android:layout_centerInParent="true"
|
|
android:id="@+id/comment_form_thumbnail"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp" />
|
|
</RelativeLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toEndOf="@id/comment_form_avatar_container"
|
|
android:layout_marginStart="16dp">
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/comment_form_body"
|
|
android:hint="@string/comment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="@font/inter"
|
|
android:textFontWeight="300"
|
|
android:inputType="textMultiLine"
|
|
android:maxLength="2000"
|
|
android:singleLine="false"
|
|
android:scrollbars="vertical"
|
|
android:textSize="14sp" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/comment_form_text_limit"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right"
|
|
android:layout_marginTop="2dp"
|
|
android:fontFamily="@font/inter"
|
|
android:textColor="@color/lightGrey"
|
|
android:textFontWeight="300"
|
|
android:textSize="12sp" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/comment_form_post"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:fontFamily="@font/inter"
|
|
android:text="@string/comment_form_post" />
|
|
<ProgressBar
|
|
android:id="@+id/comment_form_post_progress"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toEndOf="@id/comment_form_post"
|
|
android:layout_marginStart="24dp"
|
|
android:visibility="gone" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView> |