| | |
| | | import android.content.Intent; |
| | | import android.graphics.Paint; |
| | | import android.graphics.Rect; |
| | | |
| | | import androidx.annotation.NonNull; |
| | | import androidx.viewpager.widget.ViewPager; |
| | | import androidx.recyclerview.widget.GridLayoutManager; |
| | | import androidx.recyclerview.widget.RecyclerView; |
| | | |
| | | import android.text.Layout; |
| | | import android.text.Spannable; |
| | | import android.text.SpannableString; |
| | |
| | | import com.nostra13.universalimageloader.core.ImageLoader; |
| | | import com.nostra13.universalimageloader.core.assist.ImageScaleType; |
| | | import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer; |
| | | import com.tejia.lijin.app.ui.recommend.GoodsDetailActivity; |
| | | import com.viewpagerindicator.CirclePageIndicator; |
| | | import com.wpc.library.util.SystemCommon; |
| | | import com.wpc.library.util.common.DimenUtils; |
| | |
| | | SendCircleImageGoods imageGoods = imageList.get(position).getGoods(); |
| | | int goodsType = imageGoods.getGoodsType(); |
| | | //跳转商品详情 |
| | | Intent intent = GoodsDetailJumpUtil.getGoodsDetailIntent(mContext, imageGoods.getGoodsType()); |
| | | intent.putExtra("id", imageGoods.getGoodsId() + ""); |
| | | Intent intent= new Intent(mContext, GoodsDetailActivity.class); |
| | | intent.putExtra("goodsId",imageGoods.getGoodsId()); |
| | | intent.putExtra("goodsType", goodsType); |
| | | intent.putExtra("from", "faquan"); |
| | | mContext.startActivity(intent); |
| | | } |
| | |
| | | @Override |
| | | public void onClick(View v) { |
| | | //跳转商品详情 |
| | | Intent intent = GoodsDetailJumpUtil.getGoodsDetailIntent(mContext, info.getGoodsType()); |
| | | intent.putExtra("id", info.getGoodsId()); |
| | | Intent intent = new Intent(mContext, GoodsDetailActivity.class); |
| | | intent.putExtra("goodsId", info.getGoodsId()); |
| | | intent.putExtra("goodsType", info.getGoodsType()); |
| | | intent.putExtra("from", "faquan"); |
| | | mContext.startActivity(intent); |
| | | } |
| | |
| | | // holder.tv_type.setVisibility(View.VISIBLE); |
| | | // holder.tv_type.setText(comment.getType()); |
| | | // } else { |
| | | holder.tv_type.setVisibility(View.GONE); |
| | | holder.tv_type.setVisibility(View.GONE); |
| | | // } |
| | | |
| | | holder.tv_content.post(new Runnable() { |
| | |
| | | private ImageView iv_in; |
| | | private TextView tv_content; |
| | | private TextView tv_type; |
| | | private LinearLayout ll_content; |
| | | private LinearLayout ll_content; |
| | | private ImageView iv_comment_more; |
| | | |
| | | public CommentViewHolder(View view) { |
| | |
| | | public void onClick(int position); |
| | | } |
| | | |
| | | interface CommentClickListener { |
| | | public interface CommentClickListener { |
| | | //标签点击 |
| | | public void onTagClick(int position); |
| | | |
| | | //复制点击 |
| | | public void onCopyClick(int position); |
| | | } |
| | | |
| | | //adapter中的事件响应 |
| | | public interface AdapterEventActionListener { |
| | | //复制评论 |
| | | public void copyComment(SendCircleContent content, SendCircleCommment comment); |
| | | |
| | | //生成二维码 |
| | | public void createERCode(SendCircleContent content, List<SendCircleImage> imgList, SendCircleImage img, int position); |
| | | |
| | | //分享 |
| | | public void share(SendCircleContent content); |
| | | |
| | | //批量存图 |
| | | public void saveImgs(SendCircleContent content); |
| | | |
| | | //复制推荐语 |
| | | public void copyRecommendText(SendCircleContent content); |
| | | |
| | | public void sendOrder(SendCircleContent content); |
| | | } |
| | | } |