Java 如何在仪表板中显示\u图像\u详细信息

Java 如何在仪表板中显示\u图像\u详细信息,java,android,android-layout,retrofit2,android-recyclerview,Java,Android,Android Layout,Retrofit2,Android Recyclerview,my json如何在仪表板中显示\u图像\u意图中的详细信息 改装2如何在recyclerview中显示 { "dashboard_info": [ { "id": "1", "week_id": "1", "week_name": "week one", "color": "#9a94c7", "week_title": "Fruits",

my json如何在仪表板中显示\u图像\u意图中的详细信息 改装2如何在recyclerview中显示

{
    "dashboard_info": [
        {
            "id": "1",
            "week_id": "1",
            "week_name": "week one",
            "color": "#9a94c7",
            "week_title": "Fruits",
            "password": "admin1",
            "week_image": "http://192.168.0.2/littlezebra/school_uploads/week_images/1/fruit.png",
            "dashboard_image_details": [
                {
                    "id": "6",
                    "image_title": "Apple",
                    "image": "http://192.168.0.2/littlezebra/school_uploads/dashboard_images/1/6/app.png",
                    "color": "#c88dac"
                },


            ]


        }
}
您可能想要:

果 苹果、香蕉等

(查看方式如play store垂直滚动(类别如水果)和水平滚动(项目如苹果))

第一个显示仪表板信息的适配器

然后需要在第一个适配器xml文件中添加list或recyclerview。(有关仪表板\u图像\u详细信息)

然后需要从第一个适配器调用第二个适配器 公共视图getView(int位置、视图转换视图、视图组父级){}方法


第二个适配器仅在带有水平滚动的recyclerview上正常工作。

公共类仪表板{

@SerializedName("dashboard_info")
@Expose
private ArrayList<dash> list;


public ArrayList<dash> getList() {
    return list;
}

public void setList(ArrayList<dash> list) {
    this.list = list;
}
}

如果有疑问,请继续…

到目前为止您尝试了什么?
public class dash {

@SerializedName("week_title")
@Expose
private String name ;

@SerializedName("password")
@Expose
private String email;


@SerializedName("dashboard_image_details")
private ArrayList<image> list;

public ArrayList<image> getList() {
    return list;
}

public void setList(ArrayList<image> list) {
    this.list = list;
}



public String getName() {
    return name;
}

public void setName(String name) {
    this.name = name;
}

public String getEmail() {
    return email;
}

public void setEmail(String email) {
    this.email = email;
}
}
  dash em = model.get(i);

    txtemail.setText(em.getEmail());


   image img = em.getList().get(0);

    txtname.setText(em.getName() + img.getImgtitle());