分割字符串

//添加数据
                        holder2.tv.setText("title: " + list.get(position).getTitle());
                        String path2 = list.get(position).getPic();
                        String[] path3 = path2.trim().split("\\|");
                        ImageLoader.getInstance().displayImage(path3[0], holder2.iv, options);
                        ImageLoader.getInstance().displayImage(path3[1], holder2.iv1, options);
                        ImageLoader.getInstance().displayImage(path3[2], holder2.iv2, options);
                        ImageLoader.getInstance().displayImage(path3[3], holder2.iv3, options);

你可能感兴趣的:(分割字符串)