取消Banner和开盘图片的裁切
修复主播直播间合集名字、图标错误 调整直播准备间文案 调整直播准备心愿单列表 调整直播间遮罩 调整进场动画svga动画 修复观众及个人中心头像svga闪烁和消失问题
@ -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));
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ public class CustomViewHolder implements BannerViewHolder<BannerBean> {
|
||||
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;
|
||||
}
|
||||
|
@ -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" />
|
||||
|
||||
|
Before Width: | Height: | Size: 809 B After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 18 KiB |
@ -212,7 +212,7 @@
|
||||
<string name="live_cover_2">更換封面</string>
|
||||
<string name="live_title">直播標題</string>
|
||||
<string name="live_title_hint">給直播寫個標題吧</string>
|
||||
<string name="live_class">頻道</string>
|
||||
<string name="live_class">選擇頻道</string>
|
||||
<string name="live_class_choose">選擇直播頻道</string>
|
||||
<string name="live_class_tip_title">注意選擇適合自己的頻道。</string>
|
||||
<string name="live_class_tip">直播過程中,若運營人員發現選擇的頻道和直播內容不相符的情况,會調整您的直播頻道。</string>
|
||||
|
@ -106,7 +106,7 @@ public class LiveNewWishListAdapter extends RecyclerView.Adapter<LiveNewWishList
|
||||
itemView.setTag(bean);
|
||||
ImgLoader.display(mContext, bean.getWishlist_icon(), mIcon);
|
||||
mName.setText(bean.getWishlist_name());
|
||||
mNum.setText(bean.getWishlist_num());
|
||||
mNum.setText("x"+bean.getWishlist_num());
|
||||
int pro = 0;
|
||||
try {
|
||||
int num1 = Integer.parseInt(bean.getWishlist_progress());
|
||||
@ -182,7 +182,7 @@ public class LiveNewWishListAdapter extends RecyclerView.Adapter<LiveNewWishList
|
||||
if (num <= 0) {
|
||||
ToastUtil.show("数字必须大于0");
|
||||
} else {
|
||||
mNum.setText(num + "");
|
||||
mNum.setText("x"+num);
|
||||
bean.setWishlist_num(num + "");
|
||||
}
|
||||
}
|
||||
@ -199,10 +199,11 @@ public class LiveNewWishListAdapter extends RecyclerView.Adapter<LiveNewWishList
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
try {
|
||||
int num = Integer.parseInt(mNum.getText().toString());
|
||||
int num = Integer.parseInt(mNum.getText().toString().replace("x",""));
|
||||
num++;
|
||||
mNum.setText("x"+num );
|
||||
bean.setWishlist_num(num + "");
|
||||
tvProgress.setText(bean.getWishlist_progress() + "/" +num);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -215,11 +216,12 @@ public class LiveNewWishListAdapter extends RecyclerView.Adapter<LiveNewWishList
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
try {
|
||||
int num = Integer.parseInt(mNum.getText().toString());
|
||||
int num = Integer.parseInt(mNum.getText().toString().replace("x",""));
|
||||
if (num > 1) {
|
||||
num--;
|
||||
mNum.setText("x"+num );
|
||||
bean.setWishlist_num(num + "");
|
||||
tvProgress.setText(bean.getWishlist_progress() + "/" +num);
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
|
@ -126,7 +126,7 @@ public class LiveUserAdapter extends RecyclerView.Adapter<LiveUserAdapter.Vh> {
|
||||
public void onComplete(SVGAVideoEntity videoItem) {
|
||||
SVGADrawable drawable = new SVGADrawable(videoItem);
|
||||
gift_svga.setImageDrawable(drawable);
|
||||
SVGAViewUtils.playEndClear(gift_svga);
|
||||
SVGAViewUtils.playEndClear(gift_svga,false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ public class LiveNewRoomClassDialogFragment extends AbsDialogFragment implements
|
||||
|
||||
@Override
|
||||
protected int getDialogStyle() {
|
||||
return R.style.dialog2;
|
||||
return R.style.dialog4;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -45,7 +45,7 @@ public class LiveNewRoomTypeDialogFragment extends AbsDialogFragment implements
|
||||
|
||||
@Override
|
||||
protected int getDialogStyle() {
|
||||
return R.style.dialog2;
|
||||
return R.style.dialog4;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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<LiveWishlistBean> {
|
||||
|
||||
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<LiveWishlistBean>() {
|
||||
@Override
|
||||
public void onItemClick(LiveWishlistBean bean, int position) {
|
||||
|
@ -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"
|
||||
|
@ -5,7 +5,7 @@
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#b3000000">
|
||||
android:background="#000000">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
@ -33,8 +33,8 @@
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/public_room"
|
||||
android:layout_width="166dp"
|
||||
android:layout_height="162dp"
|
||||
android:layout_width="146dp"
|
||||
android:layout_height="142dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="54dp"
|
||||
android:layout_marginBottom="33dp"
|
||||
@ -90,8 +90,8 @@
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/private_room"
|
||||
android:layout_width="166dp"
|
||||
android:layout_height="162dp"
|
||||
android:layout_width="146dp"
|
||||
android:layout_height="142dp"
|
||||
android:layout_marginTop="54dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_marginBottom="33dp"
|
||||
|
@ -38,7 +38,7 @@
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginEnd="90dp"
|
||||
android:layout_marginEnd="70dp"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/live_item_add_gift"
|
||||
@ -53,14 +53,14 @@
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<com.yunbao.common.custom.CommonRefreshView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginBottom="18dp"
|
||||
android:overScrollMode="never"
|
||||
android:layout_marginBottom="28dp"
|
||||
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
@ -22,8 +22,8 @@
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="18dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:text="心愿"
|
||||
android:textColor="@color/white"
|
||||
android:text="心願"
|
||||
android:textColor="#704DF3"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@
|
||||
<ProgressBar
|
||||
android:id="@+id/pb_wishlist"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="100dp"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="10dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="center"
|
||||
@ -95,19 +95,19 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="1/1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintStart_toEndOf="@+id/pb_wishlist"
|
||||
app:layout_constraintTop_toBottomOf="@+id/name" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llNum"
|
||||
android:layout_width="70dp"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
@ -138,7 +138,7 @@
|
||||
android:maxLength="5"
|
||||
android:text="x1"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="12sp" />
|
||||
android:textSize="10sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_increase"
|
||||
|
@ -646,7 +646,7 @@
|
||||
android:text="00:00"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="10sp"
|
||||
android:visibility="gone"
|
||||
android:visibility="invisible"
|
||||
app:dt_left_drawable="@drawable/bg_push_time_point"
|
||||
app:dt_left_height="4dp"
|
||||
app:dt_left_width="4dp" />
|
||||
@ -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 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/gif_gift_tip_group"
|
||||
android:layout_width="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:visibility="invisible"
|
||||
android:layout_height="26dp"
|
||||
android:layout_below="@id/hour_rank_layout"
|
||||
android:layout_marginLeft="10dp"
|
||||
@ -987,7 +987,7 @@
|
||||
android:id="@+id/gif_gift_tip_group_all_server"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="36dp"
|
||||
android:visibility="gone"
|
||||
android:visibility="invisible"
|
||||
android:translationX="500dp">
|
||||
|
||||
<LinearLayout
|
||||
@ -1060,7 +1060,7 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/gif_gift_tip_group_buy_guard"
|
||||
android:layout_width="match_parent"
|
||||
android:visibility="gone"
|
||||
android:visibility="invisible"
|
||||
android:layout_height="36dp"
|
||||
android:translationX="500dp">
|
||||
|
||||
@ -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 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/gif_gift_tip_group_buy_vip"
|
||||
android:layout_width="match_parent"
|
||||
android:visibility="gone"
|
||||
android:visibility="invisible"
|
||||
android:layout_height="36dp"
|
||||
android:translationX="500dp">
|
||||
|
||||
@ -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" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/inner_container"
|
||||
|
@ -80,7 +80,7 @@
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/live_room_type"
|
||||
android:text="@string/live_room_public"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|