diff --git a/chat/kit/src/main/java/cn/wildfire/chat/kit/conversation/ConversationInputPanel.java b/chat/kit/src/main/java/cn/wildfire/chat/kit/conversation/ConversationInputPanel.java index 46825bb3e..ed03a82dc 100644 --- a/chat/kit/src/main/java/cn/wildfire/chat/kit/conversation/ConversationInputPanel.java +++ b/chat/kit/src/main/java/cn/wildfire/chat/kit/conversation/ConversationInputPanel.java @@ -230,8 +230,8 @@ void onExtImageViewClick() { return; } if (rootLinearLayout.getCurrentInput() == extContainerFrameLayout) { - rootLinearLayout.showSoftkey(editText); hideConversationExtension(); + rootLinearLayout.showSoftkey(editText); } else { emotionImageView.setImageResource(R.mipmap.ic_cheat_emo); showConversationExtension(); @@ -246,6 +246,7 @@ void onEmotionImageViewClick() { } if (rootLinearLayout.getCurrentInput() == emotionContainerFrameLayout) { hideEmotionLayout(); + rootLinearLayout.showSoftkey(editText); } else { hideAudioButton(); showEmotionLayout(); diff --git a/chat/kit/src/main/res/layout/conversation_input_panel.xml b/chat/kit/src/main/res/layout/conversation_input_panel.xml index 8587526c8..224bfb87e 100644 --- a/chat/kit/src/main/res/layout/conversation_input_panel.xml +++ b/chat/kit/src/main/res/layout/conversation_input_panel.xml @@ -18,23 +18,22 @@ @@ -42,9 +41,10 @@ @@ -75,7 +76,9 @@ android:id="@+id/extImageView" android:layout_width="35dp" android:layout_height="35dp" + android:layout_gravity="bottom" android:layout_marginRight="5dp" + android:layout_marginBottom="5dp" android:scaleType="centerInside" android:src="@mipmap/ic_cheat_add" /> @@ -84,8 +87,11 @@ style="?android:attr/borderlessButtonStyle" android:layout_width="50dp" android:layout_height="35dp" + android:layout_gravity="bottom" android:layout_marginRight="5dp" + android:layout_marginBottom="2.5dp" android:background="@drawable/shape_session_btn_send" + android:gravity="center" android:text="@string/send" android:textColor="@color/white" android:textSize="13sp"