直播间的滚动修复直播间聊天问题,侧边栏改为fragment
This commit is contained in:
@@ -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;
|
||||
|
||||
10
common/src/main/res/anim/right_anim_enter.xml
Normal file
10
common/src/main/res/anim/right_anim_enter.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
>
|
||||
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromXDelta="100%p"
|
||||
android:toXDelta="0"
|
||||
/>
|
||||
</set>
|
||||
9
common/src/main/res/anim/right_anim_exit.xml
Normal file
9
common/src/main/res/anim/right_anim_exit.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromXDelta="0"
|
||||
android:toXDelta="100%p"
|
||||
/>
|
||||
</set>
|
||||
@@ -66,7 +66,10 @@
|
||||
<item name="android:windowEnterAnimation">@anim/left_anim_enter</item>
|
||||
<item name="android:windowExitAnimation">@anim/left_anim_exit</item>
|
||||
</style>
|
||||
|
||||
<style name="RightLeftToAnim" parent="android:Animation">
|
||||
<item name="android:windowEnterAnimation">@anim/right_anim_enter</item>
|
||||
<item name="android:windowExitAnimation">@anim/right_anim_exit</item>
|
||||
</style>
|
||||
<style name="groupLast" parent="AppTheme">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">1dp</item>
|
||||
|
||||
Reference in New Issue
Block a user