修复:

直播間UI修改
This commit is contained in:
18401019693 2022-08-31 14:00:00 +08:00
parent 8bd3a32c5e
commit 218525d51c
4 changed files with 12 additions and 14 deletions

View File

@ -30,7 +30,7 @@
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_gravity="bottom"
android:background="#10000000" />
android:background="@mipmap/bg_main_item_bottom" />
<TextView
android:id="@+id/name"

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -255,7 +255,14 @@ public class LiveAudienceActivity extends LiveActivity {
} else {
liveHandler.post(liveRunnable);
}
Log.e("收到socket--->", "mLiveUid--------------------------->" + mLiveUid);
//加载当前页面数据
View rootView = manager.getRootView();
if (rootView.getParent() != null && rootView.getParent() instanceof ViewGroup) {
((ViewGroup) (rootView.getParent())).removeView(rootView);
manager.onRemove();
}
mViewGroup.addView(manager.getRootView());
}
//获取直播间状态
@ -294,14 +301,7 @@ public class LiveAudienceActivity extends LiveActivity {
mAncherName = liveBean1.getUserNiceName();
mAncherIcon = liveBean1.getAvatar();
Log.e("收到socket--->", "mLiveUid--------------------------->" + mLiveUid);
//加载当前页面数据
View rootView = manager.getRootView();
if (rootView.getParent() != null && rootView.getParent() instanceof ViewGroup) {
((ViewGroup) (rootView.getParent())).removeView(rootView);
manager.onRemove();
}
mViewGroup.addView(manager.getRootView());
manager.onAdd(liveBean1, liveType, liveTypeVal, liveSdk);
});

View File

@ -150,11 +150,9 @@
<ImageView
android:id="@+id/btn_follow"
android:layout_width="23dp"
android:layout_height="23dp"
android:layout_marginTop="3dp"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginEnd="5dp"
android:layout_marginBottom="3dp"
android:src="@mipmap/live_icon_focus"
android:gravity="center"
android:textColor="@color/white"