|
|
@@ -5,7 +5,6 @@ import android.app.ActionBar;
|
|
|
import android.app.Activity;
|
|
|
import android.content.Context;
|
|
|
import android.content.DialogInterface;
|
|
|
-import android.content.Intent;
|
|
|
import android.graphics.drawable.BitmapDrawable;
|
|
|
import android.os.Build;
|
|
|
import android.os.Handler;
|
|
|
@@ -60,28 +59,22 @@ import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
import com.sheep.gamegroup.model.entity.BulletinEnty;
|
|
|
import com.sheep.gamegroup.model.entity.CashAwarsEntity;
|
|
|
import com.sheep.gamegroup.model.entity.HomeListEntity;
|
|
|
-import com.sheep.gamegroup.model.entity.Keyword;
|
|
|
import com.sheep.gamegroup.model.entity.Lp;
|
|
|
-import com.sheep.gamegroup.model.entity.MessageUnReadEntity;
|
|
|
import com.sheep.gamegroup.model.entity.MoreDataEntity;
|
|
|
import com.sheep.gamegroup.model.entity.RecyleObj;
|
|
|
import com.sheep.gamegroup.model.entity.RecyleType;
|
|
|
import com.sheep.gamegroup.model.entity.Release_task;
|
|
|
import com.sheep.gamegroup.model.entity.RequestParamEty;
|
|
|
-import com.sheep.gamegroup.model.entity.SlideshowEty;
|
|
|
import com.sheep.gamegroup.model.entity.TaskAcceptedEty;
|
|
|
import com.sheep.gamegroup.model.entity.UserEntity;
|
|
|
-import com.sheep.gamegroup.model.entity.WebParams;
|
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
import com.sheep.gamegroup.model.util.ShowRedDot;
|
|
|
import com.sheep.gamegroup.module.game.util.HpRefreshWelfareHelper;
|
|
|
import com.sheep.gamegroup.module.guide.NewbieGuideHelper;
|
|
|
import com.sheep.gamegroup.module.home.GoodsRecommendsBarHelper;
|
|
|
import com.sheep.gamegroup.module.home.adapter.AdpHomeList;
|
|
|
-import com.sheep.gamegroup.module.home.adapter.BannerImageLoader;
|
|
|
import com.sheep.gamegroup.module.home.fragment.FgtDailyPlayList;
|
|
|
import com.sheep.gamegroup.module.home.fragment.FgtPromoteGoodsList;
|
|
|
-import com.sheep.gamegroup.module.skin.util.SkinUtil;
|
|
|
import com.sheep.gamegroup.presenter.SmallSheepContract;
|
|
|
import com.sheep.gamegroup.presenter.SmallSheepPresenter;
|
|
|
import com.sheep.gamegroup.presenter.TryMakeMoneyContract;
|
|
|
@@ -89,12 +82,9 @@ import com.sheep.gamegroup.presenter.TryMakeMoneyPresenter;
|
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
|
import com.sheep.gamegroup.util.DataKey;
|
|
|
import com.sheep.gamegroup.util.DataUtil;
|
|
|
-import com.sheep.gamegroup.util.DeviceUtil;
|
|
|
import com.sheep.gamegroup.util.GlideImageLoader;
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
import com.sheep.gamegroup.util.ListUtil;
|
|
|
-import com.sheep.gamegroup.util.LogUtil;
|
|
|
-import com.sheep.gamegroup.util.MainTab;
|
|
|
import com.sheep.gamegroup.util.RefreshUtil;
|
|
|
import com.sheep.gamegroup.util.StringUtils;
|
|
|
import com.sheep.gamegroup.util.SysAppUtil;
|
|
|
@@ -104,16 +94,12 @@ import com.sheep.gamegroup.util.ViewHolder;
|
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
|
import com.sheep.gamegroup.util.string.SpannableSb;
|
|
|
import com.sheep.gamegroup.util.viewHelper.LayoutParamsUtil;
|
|
|
-import com.sheep.gamegroup.util.viewHelper.PopupWindowUtil;
|
|
|
import com.sheep.gamegroup.view.activity.ActMain;
|
|
|
-import com.sheep.gamegroup.view.activity.ActMsg;
|
|
|
import com.sheep.gamegroup.view.activity.NotificationsUtils;
|
|
|
import com.sheep.gamegroup.view.activity.helper.AdHelper;
|
|
|
import com.sheep.gamegroup.view.adapter.AdbCommonRecycler;
|
|
|
import com.sheep.gamegroup.view.adapter.AdpTryMakemoney;
|
|
|
import com.sheep.gamegroup.view.adapter.TryMakeMoneyAdp;
|
|
|
-import com.sheep.gamegroup.view.dialog.DialogNotificationOfArrival;
|
|
|
-import com.sheep.jiuyan.samllsheep.Config;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.base.BaseFragment;
|
|
|
@@ -122,7 +108,6 @@ import com.sheep.jiuyan.samllsheep.utils.SpUtils;
|
|
|
import com.sunfusheng.marqueeview.MarqueeView;
|
|
|
import com.youth.banner.Banner;
|
|
|
import com.youth.banner.BannerConfig;
|
|
|
-import com.youth.banner.listener.OnBannerListener;
|
|
|
import com.youth.banner.loader.ImageLoader;
|
|
|
|
|
|
import org.afinal.simplecache.ApiKey;
|
|
|
@@ -133,7 +118,6 @@ import java.lang.ref.WeakReference;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
-import java.util.Iterator;
|
|
|
import java.util.List;
|
|
|
import java.util.Locale;
|
|
|
|
|
|
@@ -565,7 +549,7 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
private int bannerHeight;
|
|
|
|
|
|
private void initBannerHeight() {
|
|
|
- bannerHeight = (ScreenUtil.getScreenWidth(getContext())) * 17 / 40;
|
|
|
+ bannerHeight = (ScreenUtil.getScreenWidth(getContext()) - G.getRealPix(16)) * 7 / 18 + G.getRealPix(16);
|
|
|
}
|
|
|
|
|
|
//游戏福利专区入口与刷新福利
|
|
|
@@ -1295,20 +1279,17 @@ public class FgtSmallSheep extends BaseFragment implements SmallSheepContract.Vi
|
|
|
});
|
|
|
//设置图片加载器
|
|
|
banner
|
|
|
- .setImageLoader(new BannerImageLoader() {
|
|
|
+ .setImageLoader(new ImageLoader() {
|
|
|
@Override
|
|
|
- public void displayImage(Context context, Object o, View view) {
|
|
|
+ public void displayImage(Context context, Object o, ImageView imageView) {
|
|
|
try {
|
|
|
if (activity != null && !activity.isDestroyed()) {
|
|
|
-// GlideImageLoader.roundedCornersImage(imageView, o.toString(), G.getRealPix(10));
|
|
|
-// imageView.setPadding(G.getRealPix(8), G.getRealPix(8), G.getRealPix(8), G.getRealPix(8));
|
|
|
- ImageView iv = view.findViewById(R.id.banner_image_iv);
|
|
|
Glide.with(context)
|
|
|
.load(o.toString())
|
|
|
-// .override(ScreenUtil.getScreenWidth(getContext()) - G.getRealPix(16), bannerHeight)
|
|
|
.apply(new RequestOptions()
|
|
|
+ .centerInside()
|
|
|
.transform(new RoundedCorners(G.getRealPix(8))))
|
|
|
- .into(iv);
|
|
|
+ .into(imageView);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|