直播间聊天列表动态改变高度
This commit is contained in:
parent
81cafdf995
commit
7155ed9884
@ -867,7 +867,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
//点击的消息发送出去
|
//点击的消息发送出去
|
||||||
((LiveActivity) mContext).sendChatMessage(msg);
|
((LiveActivity) mContext).sendChatMessage(msg);
|
||||||
fastMsgRecyclerView.setVisibility(View.GONE);
|
fastMsgRecyclerView.setVisibility(View.GONE);
|
||||||
|
params1.bottomMargin = 0;
|
||||||
|
mChatRecyclerView.setLayoutParams(params1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// fastMsgRecyclerView.setItemAnimator(new DefaultItemAnimator());
|
// fastMsgRecyclerView.setItemAnimator(new DefaultItemAnimator());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1067,6 +1071,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
wishListFlipper.startFlipping();
|
wishListFlipper.startFlipping();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 初始化小时榜
|
* 初始化小时榜
|
||||||
*/
|
*/
|
||||||
@ -1119,6 +1124,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 星光值转带k的字符
|
* 星光值转带k的字符
|
||||||
|
*
|
||||||
* @param val 值
|
* @param val 值
|
||||||
* @retur 字符串
|
* @retur 字符串
|
||||||
*/
|
*/
|
||||||
@ -1133,6 +1139,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置小时榜
|
* 设置小时榜
|
||||||
|
*
|
||||||
* @param rank 小时榜
|
* @param rank 小时榜
|
||||||
*/
|
*/
|
||||||
public void setHourRankData(long rank) {
|
public void setHourRankData(long rank) {
|
||||||
@ -1147,6 +1154,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置热度值
|
* 设置热度值
|
||||||
|
*
|
||||||
* @param hot 热度值
|
* @param hot 热度值
|
||||||
*/
|
*/
|
||||||
public void setHotData(String hot) {
|
public void setHotData(String hot) {
|
||||||
@ -1155,6 +1163,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新心愿单进度
|
* 更新心愿单进度
|
||||||
*
|
*
|
||||||
@ -2296,7 +2305,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setFastMessage(List<String> greetings) {
|
public void setFastMessage(List<String> greetings) {
|
||||||
|
fastMsgRecyclerView.setVisibility(View.VISIBLE);
|
||||||
fastMessageRecyclerViewAdapter.setMessage(greetings);
|
fastMessageRecyclerViewAdapter.setMessage(greetings);
|
||||||
|
RelativeLayout.LayoutParams params1 = (RelativeLayout.LayoutParams)
|
||||||
|
mChatRecyclerView.getLayoutParams();
|
||||||
|
params1.bottomMargin = 100;
|
||||||
|
mChatRecyclerView.setLayoutParams(params1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class LiveRoomHandler extends Handler {
|
private static class LiveRoomHandler extends Handler {
|
||||||
|
@ -244,6 +244,7 @@
|
|||||||
android:layout_marginBottom="4dp"
|
android:layout_marginBottom="4dp"
|
||||||
android:padding="3dp"
|
android:padding="3dp"
|
||||||
android:src="@mipmap/icon_live_close_3" />
|
android:src="@mipmap/icon_live_close_3" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/hour_rank_layout"
|
android:id="@+id/hour_rank_layout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -260,26 +261,27 @@
|
|||||||
<include
|
<include
|
||||||
layout="@layout/view_wish_list"
|
layout="@layout/view_wish_list"
|
||||||
android:layout_width="14dp"
|
android:layout_width="14dp"
|
||||||
android:layout_weight="0.0"
|
|
||||||
android:layout_height="14dp"
|
android:layout_height="14dp"
|
||||||
android:visibility="gone"
|
android:layout_weight="0.0"
|
||||||
android:src="@mipmap/live_icon_wishlist" />
|
android:src="@mipmap/live_icon_wishlist"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
<ViewFlipper
|
<ViewFlipper
|
||||||
android:id="@+id/hour_rank_list"
|
android:id="@+id/hour_rank_list"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="20dp"
|
android:layout_height="20dp"
|
||||||
android:layout_marginStart="-2dp"
|
android:layout_marginStart="-2dp"
|
||||||
|
android:layout_marginEnd="6dp"
|
||||||
android:layout_weight="2"
|
android:layout_weight="2"
|
||||||
android:flipInterval="5000"
|
android:flipInterval="5000"
|
||||||
android:layout_marginEnd="6dp"
|
|
||||||
android:inAnimation="@anim/anim_marquee_in"
|
android:inAnimation="@anim/anim_marquee_in"
|
||||||
android:outAnimation="@anim/anim_marquee_out" />
|
android:outAnimation="@anim/anim_marquee_out" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="4dp"
|
android:layout_width="4dp"
|
||||||
android:layout_gravity="center"
|
|
||||||
|
|
||||||
android:layout_height="8dp"
|
android:layout_height="8dp"
|
||||||
|
|
||||||
|
android:layout_gravity="center"
|
||||||
android:src="@drawable/live_icon_right_more" />
|
android:src="@drawable/live_icon_right_more" />
|
||||||
|
|
||||||
|
|
||||||
@ -287,18 +289,18 @@
|
|||||||
<!--贡献-->
|
<!--贡献-->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/btn_votes"
|
android:id="@+id/btn_votes"
|
||||||
android:layout_toRightOf="@id/hour_rank_layout"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:visibility="gone"
|
|
||||||
android:layout_height="21dp"
|
android:layout_height="21dp"
|
||||||
android:layout_below="@id/lin"
|
android:layout_below="@id/lin"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
|
android:layout_toRightOf="@id/hour_rank_layout"
|
||||||
android:background="@drawable/bg_live_item"
|
android:background="@drawable/bg_live_item"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingLeft="8dp"
|
android:paddingLeft="8dp"
|
||||||
android:paddingRight="5dp">
|
android:paddingRight="5dp"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="13dp"
|
android:layout_width="13dp"
|
||||||
@ -712,14 +714,13 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
android:layout_marginRight="80dp"
|
android:layout_marginRight="80dp"
|
||||||
android:layout_marginBottom="50dp"
|
|
||||||
android:gravity="top"
|
android:gravity="top"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/chat_recyclerView"
|
android:id="@+id/chat_recyclerView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginTop="430dp"
|
android:layout_marginTop="430dp"
|
||||||
android:overScrollMode="never"
|
android:overScrollMode="never"
|
||||||
android:scrollbars="none" />
|
android:scrollbars="none" />
|
||||||
@ -1868,7 +1869,8 @@
|
|||||||
android:id="@+id/room_fast_msg"
|
android:id="@+id/room_fast_msg"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:layout_alignParentBottom="true" />
|
android:layout_alignParentBottom="true"
|
||||||
|
android:visibility="gone" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user