| | |
| | | // instantiate the dialog with the custom Theme |
| | | final JumpTaoBaoDialog dialog = new JumpTaoBaoDialog(context, R.style.Dialog); |
| | | View layout = inflater.inflate(R.layout.item_jump_taobao, null); |
| | | ResizableImageView ic_jump_platform_top = layout.findViewById(R.id.ic_jump_platform_top); |
| | | TextView tv_jump_platform_top = layout.findViewById(R.id.tv_platform_name); |
| | | |
| | | switch (platform) { |
| | | case Constant.GOODS_TYPE_TB: |
| | | ic_jump_platform_top.setImageResource( R.drawable.ic_jump_taobao_top); |
| | | tv_jump_platform_top.setText("正在前往淘宝"); |
| | | break; |
| | | case Constant.GOODS_TYPE_JD: |
| | | ic_jump_platform_top.setImageResource( R.drawable.ic_jump_jingdong_top); |
| | | tv_jump_platform_top.setText("正在前往京东"); |
| | | break; |
| | | case Constant.GOODS_TYPE_PDD: |
| | | ic_jump_platform_top.setImageResource( R.drawable.ic_jump_pinduoduo_top); |
| | | tv_jump_platform_top.setText("正在前往拼多多"); |
| | | break; |
| | | case Constant.GOODS_TYPE_VIP: |
| | | ic_jump_platform_top.setImageResource( R.drawable.ic_jump_vip_top); |
| | | tv_jump_platform_top.setText("正在前往唯品会"); |
| | | break; |
| | | case Constant.GOODS_TYPE_SUNING: |
| | | ic_jump_platform_top.setImageResource( R.drawable.ic_jump_suning_top); |
| | | tv_jump_platform_top.setText("正在前往苏宁"); |
| | | break; |
| | | } |
| | | |