|
@@ -298,7 +298,7 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
|
|
+ /**
|
|
|
* 兑换红包弹窗
|
|
* 兑换红包弹窗
|
|
|
*
|
|
*
|
|
|
* @param mActivity 当前Activity的,
|
|
* @param mActivity 当前Activity的,
|
|
@@ -366,6 +366,7 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
public void toSearchActivity() {
|
|
public void toSearchActivity() {
|
|
|
Jump2View.getInstance().goAppTaskSearch(activity, null);
|
|
Jump2View.getInstance().goAppTaskSearch(activity, null);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@OnClick(R.id.home_search_msg_iv)
|
|
@OnClick(R.id.home_search_msg_iv)
|
|
|
public void toActMsg() {
|
|
public void toActMsg() {
|
|
|
startActivity(new Intent(activity, ActMsg.class));
|
|
startActivity(new Intent(activity, ActMsg.class));
|
|
@@ -616,13 +617,14 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
}
|
|
}
|
|
|
//每次进入主页都刷新一下url配置信息
|
|
//每次进入主页都刷新一下url配置信息
|
|
|
CommonUtil.getInstance().initUrlConfigByNet(null, null);
|
|
CommonUtil.getInstance().initUrlConfigByNet(null, null);
|
|
|
- if(TestUtil.isLTVersion3_4_5())//3.4.5以前版本才调用下面的方法
|
|
|
|
|
|
|
+ if (TestUtil.isLTVersion3_4_5())//3.4.5以前版本才调用下面的方法
|
|
|
isShowRedPackage();
|
|
isShowRedPackage();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
//banner的高度
|
|
//banner的高度
|
|
|
private int bannerHeight = G.WIDTH * 17 / 40;
|
|
private int bannerHeight = G.WIDTH * 17 / 40;
|
|
|
|
|
+
|
|
|
public void initView() {
|
|
public void initView() {
|
|
|
try {
|
|
try {
|
|
|
EventBus.getDefault().register(this);
|
|
EventBus.getDefault().register(this);
|
|
@@ -682,7 +684,6 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
CommonUtil.getInstance().reflex(tabLayout, activity);
|
|
CommonUtil.getInstance().reflex(tabLayout, activity);
|
|
|
- setAnimation(ivDuty);
|
|
|
|
|
//只显示图片并且充满的homeList
|
|
//只显示图片并且充满的homeList
|
|
|
fullHomeList.clear();
|
|
fullHomeList.clear();
|
|
|
full_home_list_rv.setHasFixedSize(true);
|
|
full_home_list_rv.setHasFixedSize(true);
|
|
@@ -718,13 +719,15 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
* @param imageView 设置动画的imageview
|
|
* @param imageView 设置动画的imageview
|
|
|
*/
|
|
*/
|
|
|
private void setAnimation(ImageView imageView) {
|
|
private void setAnimation(ImageView imageView) {
|
|
|
- TranslateAnimation animation = new TranslateAnimation(0, -5, 0, 0);
|
|
|
|
|
- animation.setInterpolator(new OvershootInterpolator());
|
|
|
|
|
- animation.setDuration(150);
|
|
|
|
|
- animation.setRepeatCount(Integer.MAX_VALUE);//根据产品要求,要一直晃动
|
|
|
|
|
- animation.setRepeatMode(Animation.REVERSE);
|
|
|
|
|
- if (imageView != null)
|
|
|
|
|
- imageView.startAnimation(animation);
|
|
|
|
|
|
|
+ if (imageView.getAnimation() == null) {
|
|
|
|
|
+ TranslateAnimation animation = new TranslateAnimation(0, -5, 0, 0);
|
|
|
|
|
+ animation.setInterpolator(new OvershootInterpolator());
|
|
|
|
|
+ animation.setDuration(150);
|
|
|
|
|
+ animation.setRepeatCount(Integer.MAX_VALUE);//根据产品要求,要一直晃动
|
|
|
|
|
+ animation.setRepeatMode(Animation.REVERSE);
|
|
|
|
|
+ if (imageView != null)
|
|
|
|
|
+ imageView.startAnimation(animation);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void loadUserInfo() {
|
|
private void loadUserInfo() {
|
|
@@ -1307,7 +1310,7 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
@Override
|
|
@Override
|
|
|
public void failhomeList(BaseMessage baseMessage) {
|
|
public void failhomeList(BaseMessage baseMessage) {
|
|
|
checkAndInitView();
|
|
checkAndInitView();
|
|
|
- if(homeListEntitys.isEmpty() && fullHomeList.isEmpty())
|
|
|
|
|
|
|
+ if (homeListEntitys.isEmpty() && fullHomeList.isEmpty())
|
|
|
home_list_gridview_layout.setVisibility(View.GONE);
|
|
home_list_gridview_layout.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -1335,7 +1338,6 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
if (onResumeCount > 0)
|
|
if (onResumeCount > 0)
|
|
|
refreshTaskList();
|
|
refreshTaskList();
|
|
|
onResumeCount++;
|
|
onResumeCount++;
|
|
|
- setAnimation(ivDuty);
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1720,8 +1722,10 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
// }
|
|
// }
|
|
|
adpHomeListGrideview.notifyDataSetChanged();
|
|
adpHomeListGrideview.notifyDataSetChanged();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@BindView(R.id.home_search_msg_tv)
|
|
@BindView(R.id.home_search_msg_tv)
|
|
|
TextView home_search_msg_tv;
|
|
TextView home_search_msg_tv;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 获取是否有未读消息并更新图标
|
|
* 获取是否有未读消息并更新图标
|
|
|
*/
|
|
*/
|