diff --git a/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java b/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java index 6bfaea32b..963dab50f 100644 --- a/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java +++ b/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java @@ -386,7 +386,7 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL imageView.setScaleType(ImageView.ScaleType.CENTER_CROP); imageView.setBackgroundColor(0xffffffff); mImageViewList.add(imageView); - ImgLoader.display(mContext, mAdList.get(i).getUrl(), imageView,480,960); + ImgLoader.display(mContext, mAdList.get(i).getUrl(), imageView); } for (int i = imgSize - 1; i >= 0; i--) { mContainer.addView(mImageViewList.get(i)); diff --git a/common/src/main/java/com/yunbao/common/utils/SVGAViewUtils.java b/common/src/main/java/com/yunbao/common/utils/SVGAViewUtils.java index e28e03ce9..40a2cbc05 100644 --- a/common/src/main/java/com/yunbao/common/utils/SVGAViewUtils.java +++ b/common/src/main/java/com/yunbao/common/utils/SVGAViewUtils.java @@ -4,7 +4,7 @@ import com.opensource.svgaplayer.SVGACallback; import com.opensource.svgaplayer.SVGAImageView; public class SVGAViewUtils { - public static void playEndClear(SVGAImageView svga){ + public static void playEndClear(SVGAImageView svga,boolean isClear){ svga.setCallback(new SVGACallback() { @Override public void onPause() { @@ -14,7 +14,9 @@ public class SVGAViewUtils { @Override public void onFinished() { //动画结束后调用clear释放资源 - svga.clear(); + if(isClear) { + svga.clear(); + } } @Override @@ -29,4 +31,7 @@ public class SVGAViewUtils { }); svga.startAnimation(); } + public static void playEndClear(SVGAImageView svga){ + playEndClear(svga,true); + } } diff --git a/common/src/main/java/com/yunbao/common/views/CustomViewHolder.java b/common/src/main/java/com/yunbao/common/views/CustomViewHolder.java index b52810567..680deb36e 100644 --- a/common/src/main/java/com/yunbao/common/views/CustomViewHolder.java +++ b/common/src/main/java/com/yunbao/common/views/CustomViewHolder.java @@ -22,7 +22,7 @@ public class CustomViewHolder implements BannerViewHolder { imageView.setLayoutParams(params); imageView.setScaleType(ImageView.ScaleType.FIT_XY); //Glide.with(context).load(data.getImageUrl()).into(imageView); - ImgLoader.display(context,data.getImageUrl(),imageView,600,170); + ImgLoader.display(context,data.getImageUrl(),imageView); return imageView; } diff --git a/common/src/main/res/layout/dialog_live_new_function.xml b/common/src/main/res/layout/dialog_live_new_function.xml index 262c9c0d2..71b870fd4 100644 --- a/common/src/main/res/layout/dialog_live_new_function.xml +++ b/common/src/main/res/layout/dialog_live_new_function.xml @@ -104,7 +104,7 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="30dp" - android:text="@string/basic_tools" + android:text="@string/live_config" android:textColor="@color/white" android:textSize="14sp" /> @@ -196,7 +196,7 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginTop="24dp" - android:text="@string/live_config" + android:text="@string/basic_tools" android:textColor="@color/white" android:textSize="14sp" /> diff --git a/common/src/main/res/mipmap-xxhdpi/icon_live_ready_camera.png b/common/src/main/res/mipmap-xxhdpi/icon_live_ready_camera.png index 347948a93..e56ec9c28 100644 Binary files a/common/src/main/res/mipmap-xxhdpi/icon_live_ready_camera.png and b/common/src/main/res/mipmap-xxhdpi/icon_live_ready_camera.png differ diff --git a/common/src/main/res/mipmap-xxhdpi/icon_weekstar.png b/common/src/main/res/mipmap-xxhdpi/icon_weekstar.png index b286ed219..59643edce 100644 Binary files a/common/src/main/res/mipmap-xxhdpi/icon_weekstar.png and b/common/src/main/res/mipmap-xxhdpi/icon_weekstar.png differ diff --git a/common/src/main/res/mipmap-xxhdpi/icon_xinyuandan.png b/common/src/main/res/mipmap-xxhdpi/icon_xinyuandan.png index 9755610bf..b35fbf565 100644 Binary files a/common/src/main/res/mipmap-xxhdpi/icon_xinyuandan.png and b/common/src/main/res/mipmap-xxhdpi/icon_xinyuandan.png differ diff --git a/common/src/main/res/mipmap-xxhdpi/icon_zhenggu.png b/common/src/main/res/mipmap-xxhdpi/icon_zhenggu.png index ab3497fde..04b357b8c 100644 Binary files a/common/src/main/res/mipmap-xxhdpi/icon_zhenggu.png and b/common/src/main/res/mipmap-xxhdpi/icon_zhenggu.png differ diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index 9625e2947..491e10f68 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -212,7 +212,7 @@ 更換封面 直播標題 給直播寫個標題吧 - 頻道 + 選擇頻道 選擇直播頻道 注意選擇適合自己的頻道。 直播過程中,若運營人員發現選擇的頻道和直播內容不相符的情况,會調整您的直播頻道。 diff --git a/live/src/main/java/com/yunbao/live/adapter/LiveNewWishListAdapter.java b/live/src/main/java/com/yunbao/live/adapter/LiveNewWishListAdapter.java index 40a6358bd..ca1d30d70 100644 --- a/live/src/main/java/com/yunbao/live/adapter/LiveNewWishListAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/LiveNewWishListAdapter.java @@ -106,7 +106,7 @@ public class LiveNewWishListAdapter extends RecyclerView.Adapter 1) { num--; mNum.setText("x"+num ); bean.setWishlist_num(num + ""); + tvProgress.setText(bean.getWishlist_progress() + "/" +num); } } catch (Exception e) { diff --git a/live/src/main/java/com/yunbao/live/adapter/LiveUserAdapter.java b/live/src/main/java/com/yunbao/live/adapter/LiveUserAdapter.java index aa12c832b..395e63200 100644 --- a/live/src/main/java/com/yunbao/live/adapter/LiveUserAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/LiveUserAdapter.java @@ -126,7 +126,7 @@ public class LiveUserAdapter extends RecyclerView.Adapter { public void onComplete(SVGAVideoEntity videoItem) { SVGADrawable drawable = new SVGADrawable(videoItem); gift_svga.setImageDrawable(drawable); - SVGAViewUtils.playEndClear(gift_svga); + SVGAViewUtils.playEndClear(gift_svga,false); } @Override diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveBeautyDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveBeautyDialogFragment.java index 603d7f462..f60896f8a 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveBeautyDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveBeautyDialogFragment.java @@ -91,12 +91,12 @@ public class LiveBeautyDialogFragment extends AbsDialogFragment { @Override protected int getDialogStyle() { - return R.style.dialog2; + return R.style.dialog4; } @Override protected boolean canCancel() { - return false; + return true; } @Override @@ -250,19 +250,7 @@ public class LiveBeautyDialogFragment extends AbsDialogFragment { close_btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { - Gson gson = new Gson(); - SharedPreferences.Editor editor = sharedPreferences.edit(); - editor.putString("face", gson.toJson(beautyFaceList)); - editor.putString("beautiful", gson.toJson(beautifulList)); - editor.putString("filter", gson.toJson(filterList)); - editor.commit(); - dismiss(); - if (LiveAnchorActivity.mLiveReadyViewHolder != null) { - LiveAnchorActivity.mLiveReadyViewHolder.show(); - } - if (LiveRyAnchorActivity.mLiveReadyViewHolder != null) { - LiveRyAnchorActivity.mLiveReadyViewHolder.show(); - } + close(); } }); LinearLayoutManager manager = new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false); @@ -584,4 +572,26 @@ public class LiveBeautyDialogFragment extends AbsDialogFragment { } + @Override + public void onDismiss(DialogInterface dialog) { + super.onDismiss(dialog); + close(); + } + + private void close(){ + Gson gson = new Gson(); + SharedPreferences.Editor editor = sharedPreferences.edit(); + editor.putString("face", gson.toJson(beautyFaceList)); + editor.putString("beautiful", gson.toJson(beautifulList)); + editor.putString("filter", gson.toJson(filterList)); + editor.commit(); + dismiss(); + if (LiveAnchorActivity.mLiveReadyViewHolder != null) { + LiveAnchorActivity.mLiveReadyViewHolder.show(); + } + if (LiveRyAnchorActivity.mLiveReadyViewHolder != null) { + LiveRyAnchorActivity.mLiveReadyViewHolder.show(); + } + } + } diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomClassDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomClassDialogFragment.java index f0798a528..d44e0387c 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomClassDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomClassDialogFragment.java @@ -36,7 +36,7 @@ public class LiveNewRoomClassDialogFragment extends AbsDialogFragment implements @Override protected int getDialogStyle() { - return R.style.dialog2; + return R.style.dialog4; } @Override diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java index 6de4ec229..7f853b10e 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveNewRoomTypeDialogFragment.java @@ -45,7 +45,7 @@ public class LiveNewRoomTypeDialogFragment extends AbsDialogFragment implements @Override protected int getDialogStyle() { - return R.style.dialog2; + return R.style.dialog4; } @Override diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveNewWishListDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveNewWishListDialogFragment.java index 38834624e..7984e4079 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveNewWishListDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveNewWishListDialogFragment.java @@ -14,6 +14,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.google.gson.Gson; import com.yunbao.common.bean.LiveGiftBean; +import com.yunbao.common.custom.CommonRefreshView; import com.yunbao.common.dialog.AbsDialogFragment; import com.yunbao.common.http.HttpCallback; import com.yunbao.common.interfaces.OnItemClickListener; @@ -41,7 +42,7 @@ import java.util.List; public class LiveNewWishListDialogFragment extends AbsDialogFragment implements OnItemClickListener { - private RecyclerView mRecyclerView; + private CommonRefreshView mRecyclerView; private ActionListener mActionListener; private boolean mNoLink; private View mrlAdd, tvDone; @@ -78,8 +79,7 @@ public class LiveNewWishListDialogFragment extends AbsDialogFragment implements @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); - mRecyclerView = (RecyclerView) mRootView.findViewById(R.id.recyclerView); - mRecyclerView.setHasFixedSize(true); + mRecyclerView = (CommonRefreshView) mRootView.findViewById(R.id.recyclerView); mRecyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.VERTICAL, false)); mrlAdd = findViewById(R.id.rl_add); tvDone = findViewById(R.id.tvDone); @@ -145,7 +145,7 @@ public class LiveNewWishListDialogFragment extends AbsDialogFragment implements mWishlist = JSON.parseArray(giftJson, LiveWishlistBean.class); mAdapter = new LiveNewWishListAdapter(mContext, mNoLink); mAdapter.setData(mWishlist); - mRecyclerView.setAdapter(mAdapter); + mRecyclerView.mRecyclerView.setAdapter(mAdapter); mAdapter.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(LiveWishlistBean bean, int position) { diff --git a/live/src/main/res/layout/dialog_new_live_room_class.xml b/live/src/main/res/layout/dialog_new_live_room_class.xml index 9291aff61..90c572a97 100644 --- a/live/src/main/res/layout/dialog_new_live_room_class.xml +++ b/live/src/main/res/layout/dialog_new_live_room_class.xml @@ -22,7 +22,7 @@ android:id="@+id/textView2" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginStart="30dp" + android:layout_marginStart="5dp" android:layout_marginTop="10dp" android:text="@string/live_class_tip_title" android:textColor="#F6F7FB" diff --git a/live/src/main/res/layout/dialog_new_live_room_type.xml b/live/src/main/res/layout/dialog_new_live_room_type.xml index 816e30a83..ac20d7ab3 100644 --- a/live/src/main/res/layout/dialog_new_live_room_type.xml +++ b/live/src/main/res/layout/dialog_new_live_room_type.xml @@ -5,7 +5,7 @@ android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="#b3000000"> + android:background="#000000"> - @@ -77,7 +77,7 @@ + android:textSize="10sp" /> @@ -655,7 +655,7 @@ android:id="@+id/goto_room_view" android:layout_width="wrap_content" android:layout_height="27dp" - android:layout_below="@id/lin" + android:layout_below="@id/open_sidebar" android:layout_alignParentRight="true" android:layout_marginTop="16dp" android:layout_marginRight="9dp" @@ -948,7 +948,7 @@ @@ -1135,7 +1135,7 @@ android:id="@+id/gif_gift_tip_group_buy_zuoji" android:layout_width="wrap_content" android:layout_height="30dp" - android:visibility="gone" + android:visibility="invisible" android:layout_marginLeft="10dp" android:layout_marginTop="100dp" android:translationX="500dp"> @@ -1187,7 +1187,7 @@ android:id="@+id/gif_gift_tip_group_buy_liang_name" android:layout_width="wrap_content" android:layout_height="30dp" - android:visibility="gone" + android:visibility="invisible" android:layout_marginLeft="10dp" android:layout_marginTop="135dp" android:translationX="500dp"> @@ -1238,7 +1238,7 @@ @@ -1981,7 +1981,7 @@ android:id="@+id/enter_room_svg" android:layout_width="match_parent" android:layout_height="match_parent" - android:scaleType="centerCrop" /> + android:scaleType="fitCenter" /> diff --git a/main/src/main/java/com/yunbao/main/activity/PDLiveConversationListActivity.java b/main/src/main/java/com/yunbao/main/activity/PDLiveConversationListActivity.java index 5fe07d6c3..64a6459b1 100644 --- a/main/src/main/java/com/yunbao/main/activity/PDLiveConversationListActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/PDLiveConversationListActivity.java @@ -146,7 +146,7 @@ public class PDLiveConversationListActivity extends AbsActivity implements View. public void onComplete(SVGAVideoEntity videoItem) { SVGADrawable drawable = new SVGADrawable(videoItem); guidSvga.setImageDrawable(drawable); - SVGAViewUtils.playEndClear(guidSvga); + SVGAViewUtils.playEndClear(guidSvga,false); } @Override diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeLiveViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeLiveViewHolder.java index 36d4e899f..ed355aceb 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeLiveViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeLiveViewHolder.java @@ -211,7 +211,8 @@ public class MainHomeLiveViewHolder extends AbsMainHomeChildViewHolder implement new_data = JSON.parseArray(Arrays.toString(info), LiveBean.class); } } - + // new_data.clear(); + // mBannerList.clear(); return new_data; } diff --git a/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java index 35c9897c5..740285f63 100644 --- a/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java @@ -313,7 +313,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi public void onComplete(SVGAVideoEntity videoItem) { SVGADrawable drawable = new SVGADrawable(videoItem); gift_svga.setImageDrawable(drawable); - SVGAViewUtils.playEndClear(gift_svga); + SVGAViewUtils.playEndClear(gift_svga,false); } @Override