|
|
@@ -2294,13 +2294,21 @@ public class ViewUtil {
|
|
|
list.add(ShareLinkConfig.WEIXIN_CIRCLE);
|
|
|
list.add(ShareLinkConfig.QZONE);
|
|
|
// list.add(ShareLinkConfig.COPY_SHARE_LINK);
|
|
|
- final List<String> imgList = ListUtil.emptyList();
|
|
|
-// imgList.add("share_face_to_face");
|
|
|
- imgList.add("share_wx");
|
|
|
- imgList.add("share_qq");
|
|
|
- imgList.add("share_weixin_circle");
|
|
|
- imgList.add("share_qzone");
|
|
|
-// imgList.add("share_copy_share_link");
|
|
|
+// final List<String> imgList = ListUtil.emptyList();
|
|
|
+//// imgList.add("share_face_to_face");
|
|
|
+// imgList.add("share_wx");
|
|
|
+// imgList.add("share_qq");
|
|
|
+// imgList.add("share_weixin_circle");
|
|
|
+// imgList.add("share_qzone");
|
|
|
+//// imgList.add("share_copy_share_link");
|
|
|
+ int[] pngs = {
|
|
|
+// R.mipmap.share_face_to_face");
|
|
|
+ R.mipmap.share_wx,
|
|
|
+ R.mipmap.share_qq,
|
|
|
+ R.mipmap.share_weixin_circle,
|
|
|
+ R.mipmap.share_qzone,
|
|
|
+// R.mipmap.share_copy_share_link,
|
|
|
+ };
|
|
|
final List<String> nameList = ListUtil.emptyList();
|
|
|
// nameList.add("分享app");
|
|
|
nameList.add("微信");
|
|
|
@@ -2325,18 +2333,16 @@ public class ViewUtil {
|
|
|
ImageView ask_to_share_item_img = itemView.findViewById(R.id.ask_to_share_item_img);
|
|
|
TextView ask_to_share_item_name = itemView.findViewById(R.id.ask_to_share_item_name);
|
|
|
int position = holder.getAdapterPosition();
|
|
|
- GlideImageLoader.setImage(ask_to_share_item_img, getNetImgByName(imgList.get(position)));
|
|
|
+ ask_to_share_item_img.setImageResource(pngs[position % pngs.length]);
|
|
|
+// GlideImageLoader.setImage(ask_to_share_item_img, getNetImgByName(imgList.get(position)));
|
|
|
ask_to_share_item_name.setText(nameList.get(position));
|
|
|
- itemView.setOnClickListener(new View.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(View view) {
|
|
|
- try {
|
|
|
- dialog.dismiss();
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- shareLinkConfig.setShareType(item).toShare(activity);
|
|
|
+ itemView.setOnClickListener(view -> {
|
|
|
+ try {
|
|
|
+ dialog.dismiss();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
}
|
|
|
+ shareLinkConfig.setShareType(item).toShare(activity);
|
|
|
});
|
|
|
|
|
|
}
|