主播聊天问题修复
This commit is contained in:
parent
f257c2b5a9
commit
a41a58dc26
@ -844,13 +844,13 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL
|
|||||||
* 打开聊天输入框
|
* 打开聊天输入框
|
||||||
*/
|
*/
|
||||||
public void openChatWindow() {
|
public void openChatWindow() {
|
||||||
if (mKeyBoardHeightUtil == null) {
|
// if (mKeyBoardHeightUtil == null) {
|
||||||
mKeyBoardHeightUtil = new KeyBoardHeightUtil2(mContext, super.findViewById(android.R.id.content), this);
|
// mKeyBoardHeightUtil = new KeyBoardHeightUtil2(mContext, super.findViewById(android.R.id.content), this);
|
||||||
mKeyBoardHeightUtil.start();
|
// mKeyBoardHeightUtil.start();
|
||||||
}
|
// }
|
||||||
if (mLiveRoomViewHolder != null) {
|
// if (mLiveRoomViewHolder != null) {
|
||||||
mLiveRoomViewHolder.chatScrollToBottom();
|
// mLiveRoomViewHolder.chatScrollToBottom();
|
||||||
}
|
// }
|
||||||
LiveInputDialogFragment fragment = new LiveInputDialogFragment();
|
LiveInputDialogFragment fragment = new LiveInputDialogFragment();
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
bundle.putString(Constants.LIVE_DANMU_PRICE, mDanmuPrice);
|
bundle.putString(Constants.LIVE_DANMU_PRICE, mDanmuPrice);
|
||||||
|
@ -238,6 +238,9 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
case GENERALMESSAGE:
|
case GENERALMESSAGE:
|
||||||
((LiveActivity) mContext).sendChatMessage(content, atTextWatcher.getAtUserID(), atTextWatcher.getAtUserName());
|
((LiveActivity) mContext).sendChatMessage(content, atTextWatcher.getAtUserID(), atTextWatcher.getAtUserName());
|
||||||
atTextWatcher.clearMsg();
|
atTextWatcher.clearMsg();
|
||||||
|
if (imm != null) {
|
||||||
|
imm.hideSoftInputFromWindow(mInput.getWindowToken(), 0);
|
||||||
|
}
|
||||||
dismiss();
|
dismiss();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/root"
|
android:id="@+id/root"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@mipmap/live_bg"
|
android:background="@mipmap/live_bg">
|
||||||
>
|
|
||||||
|
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/preview_container"
|
android:id="@+id/preview_container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent" />
|
||||||
/>
|
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/container_wrap"
|
android:id="@+id/container_wrap"
|
||||||
@ -23,21 +20,18 @@
|
|||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/container"
|
android:id="@+id/container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent" />
|
||||||
/>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<pl.droidsonroids.gif.GifImageView
|
<pl.droidsonroids.gif.GifImageView
|
||||||
android:id="@+id/gift_gif"
|
android:id="@+id/gift_gif"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:scaleType="centerCrop"/>
|
android:scaleType="centerCrop" />
|
||||||
|
|
||||||
<com.opensource.svgaplayer.SVGAImageView
|
<com.opensource.svgaplayer.SVGAImageView
|
||||||
android:id="@+id/gift_svga"
|
android:id="@+id/gift_svga"
|
||||||
@ -46,11 +40,11 @@
|
|||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
app:autoPlay="true"
|
app:autoPlay="true"
|
||||||
app:loopCount="1"/>
|
app:loopCount="1" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/page_container"
|
android:id="@+id/page_container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent" />
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
@ -166,18 +166,17 @@ PK"
|
|||||||
android:id="@+id/et_input"
|
android:id="@+id/et_input"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:layout_marginLeft="45dp"
|
|
||||||
android:background="@drawable/bg_live_item"
|
|
||||||
android:alpha="0.5"
|
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginLeft="45dp"
|
||||||
|
android:layout_toLeftOf="@id/btn_pk"
|
||||||
|
android:alpha="0.5"
|
||||||
|
android:background="@drawable/bg_live_item"
|
||||||
android:hint="@string/live_say_something"
|
android:hint="@string/live_say_something"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textColor="@color/textColor"
|
android:textColor="@color/textColor"
|
||||||
android:textColorHint="@color/gray3"
|
android:textColorHint="@color/gray3"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp" />
|
||||||
android:layout_toLeftOf="@id/btn_pk"
|
|
||||||
/>
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:id="@+id/btn_chat"
|
android:id="@+id/btn_chat"
|
||||||
|
Loading…
Reference in New Issue
Block a user