修改悬浮窗样式

This commit is contained in:
18401019693 2022-10-18 17:08:41 +08:00
parent ec1656fbbd
commit 234756149c
3 changed files with 12 additions and 17 deletions

View File

@ -1086,13 +1086,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} }
private synchronized void showBanner2() { private synchronized void showBanner2() {
Log.e("PortraitLiveManager", "加载不了 mBannerList2 == null " + (mBannerList2 == null));
Log.e("PortraitLiveManager", "加载不了 mBannerList2.size() == 0 " + (mBannerList2.size() == 0));
Log.e("PortraitLiveManager", "加载不了 mBanner2 == null " + (mBanner2 == null));
if (mBannerList2 != null && mBanner2 != null) { if (mBannerList2 != null && mBanner2 != null) {
btn_event2.setVisibility(View.VISIBLE); btn_event2.setVisibility(View.VISIBLE);
if (mBannerList2.size() == 1) { if (mBannerList2.size() == 1) {
Log.e("PortraitLiveManager", "加载一个的");
mBanner2.setAutoPlay(false) mBanner2.setAutoPlay(false)
.setPages(mBannerList2, new CustomViewHolder()) .setPages(mBannerList2, new CustomViewHolder())
.setDelayTime(3000) .setDelayTime(3000)
@ -1267,7 +1263,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
showBanner(); showBanner();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
} }

View File

@ -285,15 +285,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRoomViewHolder.initHourRankList(); mLiveRoomViewHolder.initHourRankList();
} }
}); });
// LiveHttpUtil.getStarChallengeStatus(mLiveBean.getUid(), new HttpCallback() {
// @Override
// public void onSuccess(int code, String msg, String[] info) {
// Log.e("PortraitLiveManager",info[0]);
// StarChallengeStatusModel model = GsonUtils.fromJson(info[0], StarChallengeStatusModel.class);
// mLiveRoomViewHolder.showStart(model);
// }
// });
} }
@Override @Override

View File

@ -13,11 +13,19 @@
app:cardCornerRadius="4dp" app:cardCornerRadius="4dp"
app:cardElevation="0dp"> app:cardElevation="0dp">
<com.tencent.rtmp.ui.TXCloudVideoView <androidx.cardview.widget.CardView
android:id="@+id/video_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_margin="1dp" /> android:layout_margin="1dp"
app:cardCornerRadius="4dp"
app:cardElevation="0dp">
<com.tencent.rtmp.ui.TXCloudVideoView
android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>
<ImageView <ImageView