首页 跟随进房; UI问题
This commit is contained in:
@@ -72,7 +72,13 @@ class RoomNewFriendsAdapter :
|
||||
if (item.inRoomUid != 0L) {
|
||||
tvTalk.text = "去找TA"
|
||||
tvTalk.setOnClickListener {
|
||||
AVRoomActivity.start(mContext, item.inRoomUid)
|
||||
AVRoomActivity.startForFromType(
|
||||
mContext,
|
||||
item.inRoomUid,
|
||||
AVRoomActivity.FROM_TYPE_USER,
|
||||
item.nick,
|
||||
item.uid.toString()
|
||||
)
|
||||
}
|
||||
} else {
|
||||
tvTalk.text = "和TA聊"
|
||||
|
@@ -104,11 +104,11 @@ class AccompanyFragment : BaseViewBindingFragment<FragmentAccompanyBinding>() {
|
||||
it?.let {
|
||||
if (it.isNotEmpty()) {
|
||||
binding.mLiCreateRoom.visibility = View.GONE
|
||||
binding.mRecyclerChat.visibility = View.VISIBLE
|
||||
binding.nsHost.visibility = View.VISIBLE
|
||||
charAdapter.setNewData(it)
|
||||
} else {
|
||||
binding.mLiCreateRoom.visibility = View.VISIBLE
|
||||
binding.mRecyclerChat.visibility = View.GONE
|
||||
binding.nsHost.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -64,6 +64,8 @@
|
||||
</LinearLayout>
|
||||
|
||||
<com.yizhuan.erban.view.NestedScrollableHost
|
||||
android:id="@+id/ns_host"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
@@ -77,7 +79,6 @@
|
||||
android:paddingStart="0dp"
|
||||
android:paddingEnd="@dimen/dp_10"
|
||||
android:scrollbars="none"
|
||||
android:visibility="gone"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
||||
|
||||
</com.yizhuan.erban.view.NestedScrollableHost>
|
||||
|
Reference in New Issue
Block a user