| | |
| | | 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; |
| | |
| | | // 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); |
| | | } |
| | | } |