代码
package com.example.jingdongdeom.Activity; import android.content.Context; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import com.example.jingdongdeom.Bean.AddShopBean; import com.example.jingdongdeom.Bean.XQBean; import com.example.jingdongdeom.Glide.GlideImage; import com.example.jingdongdeom.R; import com.example.jingdongdeom.utils.BaseObserver; import com.example.jingdongdeom.utils.RetrofitManager; import com.youth.banner.Banner; import com.youth.banner.BannerConfig; import com.youth.banner.listener.OnBannerListener; import com.youth.banner.loader.ImageLoader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class XiangQingactivity extends AppCompatActivity { private TextView xqprice; private TextView title; private Banner imageView; private TextView yhprice; private String pid; private ImageView fanhui; private ArrayList<String> imageUrls; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_xiang_qingactivity); xqprice = findViewById(R.id.xqprice); title = findViewById(R.id.xqtitle); imageView = findViewById(R.id.viewpager); yhprice = findViewById(R.id.yhprice); fanhui = findViewById(R.id.back2); //点击图片跳转到放大页面 imageView.setOnBannerListener(new OnBannerListener() { @Override public void OnBannerClick(int position) { Intent intent1 = new Intent(XiangQingactivity.this,FDactivity.class); intent1.putStringArrayListExtra("list", (ArrayList<String>) imageUrls); startActivity(intent1); } }); //返回 fanhui.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View