diff --git a/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java b/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java index 101073957..b21e2fb2d 100644 --- a/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java +++ b/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java @@ -288,7 +288,7 @@ public class MainListAdapter extends RefreshAdapter { public void onComplete(SVGAVideoEntity videoItem) { SVGADrawable drawable = new SVGADrawable(videoItem); svga1.setImageDrawable(drawable); - SVGAViewUtils.playEndClear(svga1); + SVGAViewUtils.playEndClear(svga1,false); } @Override @@ -311,10 +311,12 @@ public class MainListAdapter extends RefreshAdapter { mName1.setText(R.string.mystery_man); ImgLoader.display(mContext, R.mipmap.hide, mAvatar1); mSex1.setVisibility(View.GONE); + svga1.setVisibility(View.GONE); } else { ImgLoader.display(mContext, bean.getAvatarThumb(), mAvatar1); mName1.setText(bean.getUserNiceName()); mSex1.setVisibility(View.VISIBLE); + svga1.setVisibility(View.VISIBLE); } mVotes1.setText(bean.getTotalCoinFormat()); @@ -363,7 +365,7 @@ public class MainListAdapter extends RefreshAdapter { public void onComplete(SVGAVideoEntity videoItem) { SVGADrawable drawable = new SVGADrawable(videoItem); svga2.setImageDrawable(drawable); - SVGAViewUtils.playEndClear(svga2); + SVGAViewUtils.playEndClear(svga2,false); } @Override @@ -411,6 +413,7 @@ public class MainListAdapter extends RefreshAdapter { liveing2.setVisibility(View.INVISIBLE); } mBtnFollow2.setVisibility(bean.isHide() ? View.GONE : View.VISIBLE); + svga2.setVisibility(bean.isHide() ? View.GONE : View.VISIBLE); if (bean.getAttention() == 1) { mBtnFollow2.doChecked(true); mBtnFollow2.setText(mFollowing); @@ -438,7 +441,7 @@ public class MainListAdapter extends RefreshAdapter { public void onComplete(SVGAVideoEntity videoItem) { SVGADrawable drawable = new SVGADrawable(videoItem); svga3.setImageDrawable(drawable); - SVGAViewUtils.playEndClear(svga3); + SVGAViewUtils.playEndClear(svga3,false); } @Override @@ -486,6 +489,7 @@ public class MainListAdapter extends RefreshAdapter { liveing3.setVisibility(View.INVISIBLE); } mBtnFollow3.setVisibility(bean.isHide() ? View.GONE : View.VISIBLE); + svga3.setVisibility(bean.isHide() ? View.GONE : View.VISIBLE); if (bean.getAttention() == 1) { mBtnFollow3.doChecked(true); mBtnFollow3.setText(mFollowing); @@ -587,6 +591,7 @@ public class MainListAdapter extends RefreshAdapter { liveing.setVisibility(View.INVISIBLE); } mBtnFollow.setVisibility(bean.isHide() ? View.GONE : View.VISIBLE); + svga.setVisibility(bean.isHide() ? View.GONE : View.VISIBLE); mBtnFollow.setTag(position); if (bean.getAttention() == 1) { mBtnFollow.doChecked(true); diff --git a/main/src/main/res/layout/view_main_home.xml b/main/src/main/res/layout/view_main_home.xml index cb46dc9d2..bb1b81f3f 100644 --- a/main/src/main/res/layout/view_main_home.xml +++ b/main/src/main/res/layout/view_main_home.xml @@ -42,13 +42,13 @@ android:id="@+id/img_trophy" android:layout_width="40dp" android:layout_height="40dp" - android:layout_alignParentBottom="true" - android:layout_marginBottom="2dp" - android:layout_marginRight="5dp" - android:onClick="mainClick" android:layout_alignParentRight="true" - android:padding="6dp" - android:contentDescription="TODO" /> + android:layout_alignParentBottom="true" + android:layout_marginRight="5dp" + android:layout_marginBottom="2dp" + android:contentDescription="TODO" + android:onClick="mainClick" + android:padding="6dp" />