2020-04-05 13:15:03 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:id="@+id/activity_reply_root"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/transparent"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
tools:context=".activities.ReplyActivity">
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/webview_container"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0dp" />
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintConstraintLayout
|
2020-04-05 13:15:03 +08:00
|
|
|
android:id="@+id/activity_reply_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
|
android:background="@drawable/bg_round"
|
|
|
|
|
app:backgroundTint="@color/default_color_background">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/appbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@color/transparent"
|
|
|
|
|
android:stateListAnimator="@animator/appbar_elevation"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintToolbar
|
2020-04-05 13:15:03 +08:00
|
|
|
app:popupTheme="?attr/actionOverflowMenuStyle"
|
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:toolbarBackgroundTint="@color/transparent"
|
|
|
|
|
app:itemTint="@color/default_color_text"
|
|
|
|
|
app:secondaryItemTint="@color/default_color_text_secondary"
|
|
|
|
|
app:activeItemTint="@color/default_color_primary"
|
|
|
|
|
app:title="@string/title_reply" />
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.edittext.widget.UndoableEditText
|
2020-04-05 13:15:03 +08:00
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:id="@+id/activity_reply_edit_text"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@color/transparent"
|
|
|
|
|
android:importantForAutofill="no"
|
|
|
|
|
android:gravity="top|start"
|
|
|
|
|
android:hint="@string/tip_reply"
|
|
|
|
|
android:inputType="textMultiLine|textImeMultiLine"
|
|
|
|
|
android:lines="5"
|
|
|
|
|
android:padding="12dp"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/activity_reply_btn_bar"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/appbar"
|
|
|
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
|
<requestFocus />
|
2020-08-15 22:05:07 +08:00
|
|
|
</com.huanchengfly.tieba.post.widgets.edittext.widget.UndoableEditText>
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/activity_reply_btn_bar"
|
|
|
|
|
style="@style/Widget.AppCompat.ButtonBar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:weightSum="8"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/activity_reply_panel_root"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/activity_reply_edit_text"
|
|
|
|
|
app:layout_constraintVertical_bias="1.0"
|
|
|
|
|
app:layout_constraintVertical_chainStyle="packed">
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintImageView
|
2020-04-05 13:15:03 +08:00
|
|
|
app:tintList="@drawable/text_color_selector"
|
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
|
android:id="@+id/activity_reply_edit_emotion"
|
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:padding="4dp"
|
|
|
|
|
android:src="@drawable/ic_insert_emoticon" />
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintImageView
|
2020-04-05 13:15:03 +08:00
|
|
|
app:tintList="@drawable/text_color_selector"
|
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
|
android:id="@+id/activity_reply_edit_insert_photo"
|
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:padding="4dp"
|
|
|
|
|
android:src="@drawable/ic_outline_insert_photo" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_weight="3"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintImageView
|
2020-04-05 13:15:03 +08:00
|
|
|
app:tintList="@drawable/text_color_selector"
|
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
|
android:id="@+id/activity_reply_edit_undo"
|
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:padding="4dp"
|
|
|
|
|
android:clickable="false"
|
|
|
|
|
android:src="@drawable/ic_outline_undo" />
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintImageView
|
2020-04-05 13:15:03 +08:00
|
|
|
app:tintList="@drawable/text_color_selector"
|
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
|
android:id="@+id/activity_reply_edit_redo"
|
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:padding="4dp"
|
|
|
|
|
android:clickable="false"
|
|
|
|
|
android:src="@drawable/ic_outline_redo" />
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintImageView
|
2020-04-05 13:15:03 +08:00
|
|
|
app:tintList="@drawable/text_color_selector"
|
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
|
android:id="@+id/activity_reply_edit_clear"
|
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton.Icon"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:padding="4dp"
|
|
|
|
|
android:clickable="false"
|
|
|
|
|
android:src="@drawable/ic_outline_delete_forever" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<cn.dreamtobe.kpswitch.widget.KPSwitchFSPanelFrameLayout
|
|
|
|
|
android:id="@+id/activity_reply_panel_root"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/activity_reply_btn_bar"
|
|
|
|
|
app:layout_constraintVertical_bias="1.0">
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/activity_reply_emotion"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<androidx.viewpager.widget.ViewPager
|
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
|
android:id="@+id/activity_reply_emotion_view_pager"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_above="@id/activity_reply_emotion_tab"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintTabLayout
|
2020-04-05 13:15:03 +08:00
|
|
|
style="@style/Widget.TabLayout"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:id="@+id/activity_reply_emotion_tab"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/activity_reply_insert_photo"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/activity_reply_insert_photo_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
</cn.dreamtobe.kpswitch.widget.KPSwitchFSPanelFrameLayout>
|
2020-08-15 22:05:07 +08:00
|
|
|
</com.huanchengfly.tieba.post.widgets.theme.TintConstraintLayout>
|
2020-04-05 13:15:03 +08:00
|
|
|
</FrameLayout>
|