From 6250e1d012759bae60c9294fef3bae10457bf22d Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 22 Aug 2022 18:11:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E9=97=B4=E7=9A=84=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E4=BF=AE=E5=A4=8D=E7=9B=B4=E6=92=AD=E9=97=B4=E8=81=8A?= =?UTF-8?q?=E5=A4=A9=E9=97=AE=E9=A2=98,=E4=BE=A7=E8=BE=B9=E6=A0=8F?= =?UTF-8?q?=E6=94=B9=E4=B8=BAfragment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/event/LiveAudienceEvent.java | 12 +- common/src/main/res/anim/right_anim_enter.xml | 10 + common/src/main/res/anim/right_anim_exit.xml | 9 + common/src/main/res/values/style.xml | 5 +- .../live/activity/LiveAudienceActivity.java | 8 +- .../yunbao/live/adapter/SidebarAdapter.java | 35 +++- .../live/dialog/SidebarLiveAudience.java | 171 ++++++++++++++++++ .../live/views/PortraitLiveManager.java | 145 +-------------- .../yunbao/live/views/SidebarViewHoler.java | 91 ++++++++++ .../res/layout/activity_live_audience.xml | 59 ------ .../res/layout/view_sidebar_live_audience.xml | 44 +++++ .../layout/view_sidebar_live_audience_top.xml | 35 ++++ 12 files changed, 419 insertions(+), 205 deletions(-) create mode 100644 common/src/main/res/anim/right_anim_enter.xml create mode 100644 common/src/main/res/anim/right_anim_exit.xml create mode 100644 live/src/main/java/com/yunbao/live/dialog/SidebarLiveAudience.java create mode 100644 live/src/main/java/com/yunbao/live/views/SidebarViewHoler.java create mode 100644 live/src/main/res/layout/view_sidebar_live_audience.xml create mode 100644 live/src/main/res/layout/view_sidebar_live_audience_top.xml diff --git a/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java b/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java index 1d70496b9..715cfea8f 100644 --- a/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java +++ b/common/src/main/java/com/yunbao/common/event/LiveAudienceEvent.java @@ -6,6 +6,16 @@ import com.yunbao.common.bean.BaseModel; public class LiveAudienceEvent extends BaseModel { private LiveAudienceType type; private ActiveModel model = new ActiveModel(); + private String avatar = ""; + + public String getAvatar() { + return avatar; + } + + public LiveAudienceEvent setAvatar(String avatar) { + this.avatar = avatar; + return this; + } public ActiveModel getModel() { return model; @@ -36,7 +46,7 @@ public class LiveAudienceEvent extends BaseModel { NOBLE(8, "贵族"), LIAN_MAI(9, "连麦"), EFFECTS_SETTINGS(10, "特效設置"), - WISH_LIST(11,"心愿单"); + WISH_LIST(11, "心愿单"); private int type; diff --git a/common/src/main/res/anim/right_anim_enter.xml b/common/src/main/res/anim/right_anim_enter.xml new file mode 100644 index 000000000..dc33293bb --- /dev/null +++ b/common/src/main/res/anim/right_anim_enter.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/common/src/main/res/anim/right_anim_exit.xml b/common/src/main/res/anim/right_anim_exit.xml new file mode 100644 index 000000000..e9f01bae4 --- /dev/null +++ b/common/src/main/res/anim/right_anim_exit.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/common/src/main/res/values/style.xml b/common/src/main/res/values/style.xml index dbe6fbaf8..c18102442 100644 --- a/common/src/main/res/values/style.xml +++ b/common/src/main/res/values/style.xml @@ -66,7 +66,10 @@ @anim/left_anim_enter @anim/left_anim_exit - +