| | |
| | | import android.graphics.drawable.AnimationDrawable; |
| | | import android.os.Bundle; |
| | | import android.provider.Settings; |
| | | |
| | | import androidx.annotation.Nullable; |
| | | import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; |
| | | import androidx.recyclerview.widget.GridLayoutManager; |
| | | import androidx.appcompat.widget.LinearLayoutCompat; |
| | | import androidx.recyclerview.widget.LinearLayoutManager; |
| | | import androidx.recyclerview.widget.RecyclerView; |
| | | |
| | | import android.util.Log; |
| | | import android.view.Gravity; |
| | | import android.view.LayoutInflater; |
| | |
| | | if ((!isLoad) && last == total - 1 && wList.size() < count) { |
| | | page++; |
| | | isLoad = true; |
| | | tv_loading.setText("正在加载更多数据"); |
| | | tv_loading.setText(getResources().getString(R.string.loading_more_text)); |
| | | iv_loading.setVisibility(View.VISIBLE); |
| | | setData(page); |
| | | } |
| | |
| | | item_brandshoplis_img.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | Intent intent = GoodsDetailJumpUtil.getGoodsDetailIntent(mContext, jsonshop.getGoodsType()); |
| | | Intent intent =new Intent(mContext,GoodsDetailActivity.class); |
| | | intent.putExtra("goodsId", jsonshop.getGoodsId()); |
| | | intent.putExtra("goodsType", jsonshop.getGoodsType()); |
| | | intent.putExtra("title", jsonshop.getTitle()); |
| | | // intent.putExtra("url", jsonshop.getCouponInfo().getLink()); |
| | | intent.putExtra("id", jsonshop.getGoodsId()); |
| | | intent.putExtra("from", "brand"); |
| | | startActivity(intent); |
| | | } |
| | |
| | | item_brandshoplis_img2.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | Intent intent; |
| | | Intent intent = new Intent(getContext(), GoodsDetailActivity.class); |
| | | if (jsonshop2.getGoodsType() == 1) { |
| | | intent = new Intent(getContext(), GoodsDetailActivityTB.class); |
| | | intent.putExtra("goodsType", Constant.GOODS_TYPE_TB); |
| | | } else if (jsonshop2.getGoodsType() == 2) { |
| | | intent = new Intent(getContext(), GoodsDetailActivityJD.class); |
| | | intent.putExtra("goodsType", Constant.GOODS_TYPE_JD); |
| | | } else { |
| | | intent = new Intent(getContext(), GoodsDetailActivityTB.class); |
| | | intent.putExtra("goodsType", Constant.GOODS_TYPE_PDD); |
| | | } |
| | | intent.putExtra("title", jsonshop2.getTitle()); |
| | | // intent.putExtra("url", jsonshop2.getCouponInfo().getLink()); |
| | | intent.putExtra("id", jsonshop2.getGoodsId()); |
| | | intent.putExtra("goodsId", jsonshop2.getGoodsId()); |
| | | intent.putExtra("from", "brand"); |
| | | startActivity(intent); |
| | | } |
| | |
| | | item_brandshoplis_img3.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | Intent intent = GoodsDetailJumpUtil.getGoodsDetailIntent(mContext, jsonshop3.getGoodsType()); |
| | | Intent intent = new Intent(mContext, GoodsDetailActivity.class); |
| | | intent.putExtra("goodsId", jsonshop3.getGoodsId()); |
| | | intent.putExtra("goodsType", jsonshop3.getGoodsType()); |
| | | |
| | | intent.putExtra("title", jsonshop3.getTitle()); |
| | | // intent.putExtra("url", jsonshop3.getCouponInfo().getLink()); |
| | | intent.putExtra("id", jsonshop3.getGoodsId()); |
| | | intent.putExtra("from", "brand"); |
| | | startActivity(intent); |
| | | } |