|
@@ -1,6 +1,5 @@
|
|
|
package com.sheep.gamegroup.view.fragment;
|
|
package com.sheep.gamegroup.view.fragment;
|
|
|
|
|
|
|
|
-import android.app.Activity;
|
|
|
|
|
import android.content.Intent;
|
|
import android.content.Intent;
|
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
|
import android.support.annotation.Nullable;
|
|
import android.support.annotation.Nullable;
|
|
@@ -17,10 +16,11 @@ import com.kfzs.android.view.tag.TagFlowLayout;
|
|
|
import com.sheep.gamegroup.event.BigEvent;
|
|
import com.sheep.gamegroup.event.BigEvent;
|
|
|
import com.sheep.gamegroup.greendao.download.DownLoadInfo;
|
|
import com.sheep.gamegroup.greendao.download.DownLoadInfo;
|
|
|
import com.sheep.gamegroup.model.api.ApiService;
|
|
import com.sheep.gamegroup.model.api.ApiService;
|
|
|
-import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
|
|
import com.sheep.gamegroup.model.entity.Applications;
|
|
import com.sheep.gamegroup.model.entity.Applications;
|
|
|
import com.sheep.gamegroup.model.entity.Article;
|
|
import com.sheep.gamegroup.model.entity.Article;
|
|
|
import com.sheep.gamegroup.model.entity.ArticleTag;
|
|
import com.sheep.gamegroup.model.entity.ArticleTag;
|
|
|
|
|
+import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
|
|
+import com.sheep.gamegroup.model.entity.Lp;
|
|
|
import com.sheep.gamegroup.module.ad_htxd.model.ArticleAd;
|
|
import com.sheep.gamegroup.module.ad_htxd.model.ArticleAd;
|
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
|
import com.sheep.gamegroup.util.DownloadUtil;
|
|
import com.sheep.gamegroup.util.DownloadUtil;
|
|
@@ -29,9 +29,11 @@ import com.sheep.gamegroup.util.ListUtil;
|
|
|
import com.sheep.gamegroup.util.TestUtil;
|
|
import com.sheep.gamegroup.util.TestUtil;
|
|
|
import com.sheep.gamegroup.util.ViewHolder;
|
|
import com.sheep.gamegroup.util.ViewHolder;
|
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
|
|
|
+import com.sheep.gamegroup.util.viewHelper.LayoutParamsUtil;
|
|
|
import com.sheep.gamegroup.view.adapter.AdbCommonRecycler;
|
|
import com.sheep.gamegroup.view.adapter.AdbCommonRecycler;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
|
|
+import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.PackageUtil;
|
|
import com.sheep.jiuyan.samllsheep.utils.PackageUtil;
|
|
|
|
|
|
|
|
import org.afinal.simplecache.ApiKey;
|
|
import org.afinal.simplecache.ApiKey;
|
|
@@ -58,6 +60,12 @@ public class FgtFindChild extends BaseListFragment5<Article> {
|
|
|
private int type;
|
|
private int type;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
|
|
+ public void initView() {
|
|
|
|
|
+ super.initView();
|
|
|
|
|
+ LayoutParamsUtil.resetLayoutParams(view_list, new Lp(G.DENSITY).setTopMargin(4));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
protected RecyclerView.Adapter getAdapter() {
|
|
protected RecyclerView.Adapter getAdapter() {
|
|
|
return new CommonRecycler(ArticleAd.showAd ? allList : list);
|
|
return new CommonRecycler(ArticleAd.showAd ? allList : list);
|
|
|
}
|
|
}
|
|
@@ -392,12 +400,7 @@ public class FgtFindChild extends BaseListFragment5<Article> {
|
|
|
};
|
|
};
|
|
|
find_item_tags.setAdapter(adapter);
|
|
find_item_tags.setAdapter(adapter);
|
|
|
}
|
|
}
|
|
|
- rootConvertView.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
- @Override
|
|
|
|
|
- public void onClick(View view) {
|
|
|
|
|
- onClickItem(item);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ rootConvertView.setOnClickListener(view -> onClickItem(item));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -412,12 +415,7 @@ public class FgtFindChild extends BaseListFragment5<Article> {
|
|
|
ViewUtil.setText(find_item_name, item.getTitle());
|
|
ViewUtil.setText(find_item_name, item.getTitle());
|
|
|
ViewUtil.setTextTime(find_item_time, item.getCreated_at(), "yyyy-MM-dd");
|
|
ViewUtil.setTextTime(find_item_time, item.getCreated_at(), "yyyy-MM-dd");
|
|
|
ViewUtil.setImage(find_item_iv, item.getPictures());
|
|
ViewUtil.setImage(find_item_iv, item.getPictures());
|
|
|
- rootConvertView.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
- @Override
|
|
|
|
|
- public void onClick(View view) {
|
|
|
|
|
- onClickItem(item);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ rootConvertView.setOnClickListener(view -> onClickItem(item));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|