| | |
| | | View view = getLayoutInflater().inflate(R.layout.item_share_from_filter, |
| | | null, false); |
| | | // 创建PopupWindow实例,200,150分别是宽度和高度 |
| | | mTopRightPopupWindow = new PopupWindow(view, (int) (SystemCommon.getScreenWidth(this) / 2), ViewGroup.LayoutParams.WRAP_CONTENT, true); |
| | | mTopRightPopupWindow = new PopupWindow(view, (int) (SystemCommon.getScreenWidth(this) / 3), ViewGroup.LayoutParams.WRAP_CONTENT, true); |
| | | // 设置动画效果 [R.style.AnimationFade 是自己事先定义好的] |
| | | // pw_filter.setAnimationStyle(R.style.pop_multiple); |
| | | mTopRightPopupWindow.setTouchable(true); |
| | |
| | | mTopRightPopupWindow.setFocusable(false); |
| | | ListView lv = view.findViewById(R.id.lv_filter_pw); |
| | | // mulList.add(new TopMenuRightPopContent( "复制链接", R.drawable.ic_goods_detail_copy_link )); |
| | | mulList.add(new TopMenuRightPopContent("帮助中心", R.drawable.ic_goods_detail_help_center)); |
| | | mulList.add(new TopMenuRightPopContent("新手攻略", R.drawable.ic_goods_detail_novice)); |
| | | mulList.add(new TopMenuRightPopContent("联系客服", R.drawable.ic_goods_detail_contact_kefu)); |
| | | mulList.add(new TopMenuRightPopContent("我要吐槽", R.drawable.ic_goods_detail_criticism)); |
| | | // mulList.add(new TopMenuRightPopContent("帮助中心", R.drawable.ic_goods_detail_help_center)); |
| | | // mulList.add(new TopMenuRightPopContent("新手攻略", R.drawable.ic_goods_detail_novice)); |
| | | mulList.add(new TopMenuRightPopContent("联系客服", null)); |
| | | mulList.add(new TopMenuRightPopContent("我要吐槽", null)); |
| | | shareFromAdapter = new TopMenuRightPopContentAdapter(this, mulList); |
| | | lv.setAdapter(shareFromAdapter); |
| | | |
| | |
| | | // } else |
| | | |
| | | if (position == 0) { |
| | | Intent intent1 = new Intent(GoodsDetailActivitySuning.this, ShareBrowserActivity.class); |
| | | intent1.putExtra("title", "帮助中心"); |
| | | intent1.putExtra("url", sp.getString("help", "")); |
| | | startActivity(intent1); |
| | | } else if (position == 1) { |
| | | RecordImageTextVideo textVideo = new RecordImageTextVideo(GoodsDetailActivitySuning.this); |
| | | String url = textVideo.getvideoMoreUrl(); |
| | | if (StringUtils.isEmpty(url)) { |
| | | url = textVideo.gettxtImgUtl(); |
| | | } |
| | | Intent intent = new Intent(GoodsDetailActivitySuning.this, ShareBrowserActivity.class); |
| | | intent.putExtra("url", url); |
| | | startActivity(intent); |
| | | } else if (position == 2) { |
| | | // startActivity(new Intent(GoodsDetailActivityTB.this, ContactUsActivity.class)); |
| | | KeFuUtil.jumpKeFu(GoodsDetailActivitySuning.this, "商品详情"); |
| | | } else if (position == 3) { |
| | | } else if (position == 1) { |
| | | startActivity(new Intent(GoodsDetailActivitySuning.this, GoComplainActivity.class)); |
| | | } |
| | | } |
| | |
| | | sList = mInfo.getExtra().getListShareUser(); |
| | | if (sList == null) |
| | | sList = new ArrayList<>(); |
| | | |
| | | if (couponUsers != null) |
| | | couponUsers.clear(); |
| | | if (sList != null) |
| | | sList.clear(); |
| | | noRebateHelpLink = mInfo.getExtra().getShare().getHelpLink(); |
| | | |
| | | if (mInfo.getGoods().getLabels() != null && mInfo.getGoods().getLabels().size() > 0) |
| | |
| | | |
| | | |
| | | //设置推荐信息 |
| | | mInfo.getGoods().setDescription(""); |
| | | if (StringUtils.isEmpty(mInfo.getGoods().getDescription())) { |
| | | ll_recommend.setVisibility(View.GONE); |
| | | } else { |
| | |
| | | startActivity(new Intent(Settings.ACTION_SETTINGS)); |
| | | break; |
| | | //查看宝贝详情 |
| | | case R.id.fl_goods_detail: |
| | | if (mInfo == null || mInfo.getGoods() == null) |
| | | return; |
| | | if (isSpread) { |
| | | webView.setVisibility(View.GONE); |
| | | // ll_imgs.removeAllViews(); |
| | | iv_imgtext_status.setImageDrawable(getResources().getDrawable(R.drawable.ic_detail_img_close)); |
| | | } else { |
| | | webView.setVisibility(View.VISIBLE); |
| | | iv_imgtext_status.setImageDrawable(getResources().getDrawable(R.drawable.ic_detail_img_open)); |
| | | // getImgText(); |
| | | } |
| | | isSpread = !isSpread; |
| | | break; |
| | | // case R.id.fl_goods_detail: |
| | | // if (mInfo == null || mInfo.getGoods() == null) |
| | | // return; |
| | | // if (isSpread) { |
| | | // webView.setVisibility(View.GONE); |
| | | //// ll_imgs.removeAllViews(); |
| | | // iv_imgtext_status.setImageDrawable(getResources().getDrawable(R.drawable.ic_detail_img_close)); |
| | | // } else { |
| | | // webView.setVisibility(View.VISIBLE); |
| | | // iv_imgtext_status.setImageDrawable(getResources().getDrawable(R.drawable.ic_detail_img_open)); |
| | | //// getImgText(); |
| | | // } |
| | | // isSpread = !isSpread; |
| | | // break; |
| | | case R.id.tv_shop_see: |
| | | if (mInfo == null || mInfo.getGoods() == null) |
| | | return; |