| <?xml version="1.0" encoding="utf-8"?> |
| <LinearLayout 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:orientation="vertical" |
| tools:context=".tv.conversation.TvConversationFragment"> |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textSize="22sp" |
| android:textStyle="bold" /> |
| |
| <TextView |
| android:id="@+id/subtitle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textSize="18sp" /> |
| |
| <FrameLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_marginTop="15dp" |
| android:clipChildren="false" |
| android:clipToPadding="false"> |
| |
| <androidx.core.widget.NestedScrollView |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_marginTop="16dp" |
| android:isScrollContainer="true" |
| android:measureAllChildren="true" |
| app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
| |
| <androidx.recyclerview.widget.RecyclerView |
| android:id="@+id/recycler_view" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:focusableInTouchMode="true" |
| android:nestedScrollingEnabled="true" |
| android:paddingBottom="10dp" |
| tools:listitem="@layout/item_conv_msg_peer_tv" /> |
| |
| </androidx.core.widget.NestedScrollView> |
| |
| <FrameLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="@drawable/tv_header_bg" |
| android:clipChildren="false" |
| android:clipToPadding="false"> |
| |
| <androidx.cardview.widget.CardView |
| android:layout_width="300dp" |
| android:layout_height="64dp" |
| android:layout_gravity="center_horizontal" |
| app:cardBackgroundColor="@color/conversation_primary_background" |
| app:cardCornerRadius="32dp" |
| app:cardElevation="4dp"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:baselineAligned="false" |
| android:orientation="horizontal"> |
| |
| <LinearLayout |
| android:id="@+id/text_container" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_weight="1" |
| android:gravity="center" |
| android:orientation="horizontal"> |
| |
| <ImageButton |
| android:id="@+id/button_text" |
| android:layout_width="50dp" |
| android:layout_height="50dp" |
| android:alpha="0.85" |
| android:background="@drawable/tv_button_shape" |
| android:contentDescription="@string/tv_send_text" |
| android:src="@drawable/baseline_chat_24" |
| android:tint="@color/white" /> |
| |
| <TextView |
| android:id="@+id/text_text" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="5dp" |
| android:text="@string/tv_send_text" |
| android:textColor="@color/white" |
| android:textSize="12sp" |
| android:visibility="gone" /> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/audio_container" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_weight="1" |
| android:gravity="center" |
| android:orientation="horizontal"> |
| |
| <ImageButton |
| android:id="@+id/button_audio" |
| android:layout_width="50dp" |
| android:layout_height="50dp" |
| android:alpha="0.85" |
| android:background="@drawable/tv_button_shape" |
| android:contentDescription="@string/tv_send_audio" |
| android:src="@drawable/baseline_mic_24" |
| android:tint="@color/white" /> |
| |
| <TextView |
| android:id="@+id/text_audio" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="5dp" |
| android:text="@string/tv_send_audio" |
| android:textColor="@color/white" |
| android:textSize="12sp" |
| android:visibility="gone" /> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/video_container" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_weight="1" |
| android:gravity="center" |
| android:orientation="horizontal"> |
| |
| <ImageButton |
| android:id="@+id/button_video" |
| android:layout_width="50dp" |
| android:layout_height="50dp" |
| android:alpha="0.85" |
| android:background="@drawable/tv_button_shape" |
| android:contentDescription="@string/tv_send_video" |
| android:src="@drawable/baseline_photo_camera_24" |
| android:tint="@color/white" /> |
| |
| <TextView |
| android:id="@+id/text_video" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="5dp" |
| android:text="@string/tv_send_video" |
| android:textColor="@color/white" |
| android:textSize="12sp" |
| android:visibility="gone" /> |
| |
| </LinearLayout> |
| |
| </LinearLayout> |
| |
| </androidx.cardview.widget.CardView> |
| |
| </FrameLayout> |
| |
| </FrameLayout> |
| |
| </LinearLayout> |