discord-jadx/app/src/main/res/layout/widget_chat_input.xml

28 lines
5.2 KiB
XML

<?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" android:id="@+id/chat_input_container" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<include android:id="@+id/guard" layout="@layout/widget_chat_input_guard"/>
<include android:id="@+id/guard_member_verification" layout="@layout/widget_chat_input_member_verification_guard"/>
<LinearLayout android:id="@+id/chat_input_wrap" android:visibility="gone" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<LinearLayout android:orientation="vertical" android:id="@+id/chat_input_stickers_container" android:background="?attr/colorBackgroundSecondary" android:paddingLeft="12dp" android:paddingTop="12dp" android:paddingRight="12dp" android:paddingBottom="4dp" android:visibility="gone" android:layout_width="match_parent" android:layout_height="wrap_content">
<TextView android:textColor="?attr/colorTextNormal" android:id="@+id/chat_input_stickers_matching_header" android:layout_marginBottom="8dp" style="@style/res_2131952561_uikit_textview"/>
<androidx.recyclerview.widget.RecyclerView android:id="@+id/chat_input_stickers_recycler" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="12dp"/>
<View style="@style/res_2131952422_uikit_divider"/>
</LinearLayout>
<FrameLayout android:background="?attr/colorBackgroundSecondary" android:layout_width="match_parent" android:layout_height="wrap_content">
<TextView android:textColor="?attr/colorTextNormal" android:id="@+id/chat_input_emoji_matching_header" android:visibility="gone" android:layout_marginLeft="12dp" android:layout_marginTop="8dp" android:layout_marginRight="12dp" android:layout_marginBottom="8dp" style="@style/res_2131952561_uikit_textview"/>
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView android:id="@+id/chat_input_mentions_recycler" android:background="?attr/colorBackgroundSecondary" android:scrollbars="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"/>
<androidx.recyclerview.widget.RecyclerView android:orientation="horizontal" android:id="@+id/chat_input_categories_recycler" android:background="?attr/colorBackgroundTertiary" android:paddingLeft="8dp" android:paddingRight="8dp" android:visibility="gone" android:layout_width="match_parent" android:layout_height="@dimen/expression_picker_category_bar_height"/>
<include android:id="@+id/application_commands_root" android:visibility="gone" layout="@layout/widget_chat_input_application_commands"/>
<RelativeLayout android:id="@+id/chat_input_context_bar" android:background="?attr/colorBackgroundSecondary" android:visibility="gone" android:layout_width="match_parent" android:layout_height="40dp">
<androidx.appcompat.widget.AppCompatImageButton android:id="@+id/chat_input_context_cancel" android:paddingTop="10dp" android:paddingBottom="10dp" android:layout_width="44dp" android:layout_height="match_parent" android:src="@drawable/ic_close_circle_nova_grey_24dp" android:scaleType="fitCenter" android:layout_centerVertical="true" android:paddingStart="12dp" android:paddingEnd="12dp" style="@style/res_2131952449_uikit_imageview_clickable"/>
<TextView android:textSize="@dimen/uikit_textsize_medium" android:ellipsize="end" android:gravity="center_vertical" android:id="@+id/chat_input_context_description" android:layout_width="wrap_content" android:layout_height="match_parent" android:maxLines="1" android:layout_centerVertical="true" android:layout_alignWithParentIfMissing="true" android:layout_toStartOf="@+id/chat_input_context_reply_mention_button" android:layout_toEndOf="@+id/chat_input_context_cancel" style="@style/res_2131952561_uikit_textview"/>
<LinearLayout android:gravity="center" android:id="@+id/chat_input_context_reply_mention_button" android:background="?attr/selectableItemBackground" android:paddingTop="10dp" android:paddingBottom="10dp" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_centerVertical="true" android:paddingStart="12dp" android:paddingEnd="12dp" android:layout_alignParentEnd="true">
<ImageView android:id="@+id/chat_input_context_reply_mention_button_image" android:layout_width="20dp" android:layout_height="20dp" android:src="@drawable/ic_mentions_white_24dp" android:contentDescription="@string/mention" app:tint="?attr/colorControlBrandForeground"/>
<TextView android:textColor="?attr/colorControlBrandForeground" android:id="@+id/chat_input_context_reply_mention_button_text" android:text="@string/reply_mention_on" android:textAllCaps="true" style="@style/res_2131952562_uikit_textview_bold"/>
</LinearLayout>
</RelativeLayout>
<androidx.fragment.app.FragmentContainerView android:name="com.lytefast.flexinput.fragment.FlexInputFragment" android:id="@+id/chat_input_widget" android:layout_width="match_parent" android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>