|
|
@@ -3,7 +3,6 @@ package com.kfzs.duanduan.fragment;
|
|
|
import android.app.Activity;
|
|
|
import android.content.Context;
|
|
|
import android.content.DialogInterface;
|
|
|
-import android.graphics.drawable.Drawable;
|
|
|
import android.os.Bundle;
|
|
|
import android.os.Handler;
|
|
|
import android.os.Message;
|
|
|
@@ -32,13 +31,9 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.bumptech.glide.Glide;
|
|
|
import com.bumptech.glide.load.engine.DiskCacheStrategy;
|
|
|
import com.bumptech.glide.request.RequestOptions;
|
|
|
-import com.kfzs.appstore.utils.adapter.recyclerview.ViewHolder;
|
|
|
import com.kfzs.duanduan.BaseCompatFragment;
|
|
|
-import com.kfzs.duanduan.bean.KFIntentKeys;
|
|
|
import com.kfzs.duanduan.event.BigEvent;
|
|
|
-import com.kfzs.duanduan.proto.IndexBannerOuterClass;
|
|
|
import com.kfzs.duanduan.react.ReactUtil;
|
|
|
-import com.kfzs.duanduan.utils.dlg.SkipUtils;
|
|
|
import com.kfzs.duanduan.view.ImageGlarry;
|
|
|
import com.sheep.gamegroup.di.components.DaggerSmallSheepComponent;
|
|
|
import com.sheep.gamegroup.di.modules.SmallSheepModule;
|
|
|
@@ -66,7 +61,6 @@ import com.sheep.gamegroup.presenter.TryMakeMoneyPresenter;
|
|
|
import com.sheep.gamegroup.util.AppUtil;
|
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
|
import com.sheep.gamegroup.util.ConnectAddress;
|
|
|
-import com.sheep.gamegroup.util.ImageGlarryDrawable;
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
import com.sheep.gamegroup.util.MyDbManager;
|
|
|
import com.sheep.gamegroup.util.PreferenceUtils;
|
|
|
@@ -80,21 +74,17 @@ import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
import com.sunfusheng.marqueeview.MarqueeView;
|
|
|
-import com.umeng.analytics.MobclickAgent;
|
|
|
|
|
|
import org.greenrobot.eventbus.EventBus;
|
|
|
import org.greenrobot.eventbus.Subscribe;
|
|
|
import org.greenrobot.eventbus.ThreadMode;
|
|
|
-import org.w3c.dom.Text;
|
|
|
import org.xutils.ex.DbException;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
-import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Locale;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
import javax.inject.Inject;
|
|
|
|
|
|
@@ -133,8 +123,6 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
TextView myPrice;
|
|
|
@BindView(R.id.my_all_price)
|
|
|
TextView myAllPrice;
|
|
|
- @BindView(R.id.couple_red_packets_iv)
|
|
|
- ImageView coupleRedPacketsIv;
|
|
|
@BindView(R.id.try_play_layout)
|
|
|
LinearLayout tryPlayLayout;
|
|
|
@BindView(R.id.invitation_layout)
|
|
|
@@ -371,7 +359,7 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- @OnClick({ R.id.user_layout, R.id.withdrawal, R.id.couple_red_packets_iv, R.id.try_play_layout,
|
|
|
+ @OnClick({ R.id.user_layout, R.id.withdrawal, R.id.try_play_layout,
|
|
|
R.id.invitation_layout, R.id.lying_layout, R.id.newbie_task, R.id.card_layout, R.id.icon_layout})
|
|
|
public void onViewClicked(View view) {
|
|
|
switch (view.getId()) {
|
|
|
@@ -380,8 +368,6 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
case R.id.withdrawal:
|
|
|
Jump2View.getInstance().goWithdrawal(activity, null);
|
|
|
break;
|
|
|
- case R.id.couple_red_packets_iv:
|
|
|
- break;
|
|
|
case R.id.try_play_layout://试玩赚钱
|
|
|
Jump2View.getInstance().goTryplayView(activity, null);
|
|
|
break;
|
|
|
@@ -813,43 +799,6 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
super.onStart();
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * banner
|
|
|
- */
|
|
|
- private ImageGlarryDrawable mImageGlarry;
|
|
|
-
|
|
|
- private void setBanner() {
|
|
|
- ArrayList<Drawable> imgURL = new ArrayList<>();
|
|
|
- imgURL.add(getResources().getDrawable(R.mipmap.couple_red_packets));
|
|
|
- imgURL.add(getResources().getDrawable(R.mipmap.home_credit_img));
|
|
|
-// imgURL.add(getResources().getDrawable(R.mipmap.home_sheep_img));
|
|
|
- if (mImageGlarry != null) {
|
|
|
- mImageGlarry.init(imgURL.toArray(new Drawable[]{}), ImageView.ScaleType.CENTER_CROP);
|
|
|
- return;
|
|
|
- }
|
|
|
- mImageGlarry = new ImageGlarryDrawable((Activity) mContext, viewpager_banner, group_banner);
|
|
|
- mImageGlarry.init(imgURL.toArray(new Drawable[]{}), ImageView.ScaleType.CENTER_CROP);
|
|
|
- mImageGlarry.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
|
- @Override
|
|
|
- public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
|
|
-
|
|
|
- switch (position) {
|
|
|
- case 0:
|
|
|
- Jump2View.getInstance()
|
|
|
- .goTryplayView(activity, null);
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- Jump2View.getInstance()
|
|
|
- .goHomePageView(activity, 3);
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- Jump2View.getInstance()
|
|
|
- .goWebview(activity, 3);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
|
|
|
private ImageGlarry mImageGlarryStr;
|
|
|
private void bindBanner() {
|