0

私はクラスのようなものを持っています

public class Items {
    public int icon;
    public String label;
    public String price;
    public String offer;
    public Items(){
        super();
    }

    public Items(int icon, String label,String price,String offer) {
        super();
        this.icon = icon;
        this.label = label;
        this.price = price;
        this.offer = offer;
    }
}

そして、そのクラスのオブジェクトを次のように作成しました

Items items_data[] = new Items[]
{
new Items(R.drawable.ic_launcher, "Samsung","400","Hot Item"),
new Items(R.drawable.ic_launcher, "Samsung1","4001","Hot Item1"),

};

今、私は最初の行のようにテーブルの行に上記の値を表示する必要があります。最初の位置などを表示する必要があります..助けてください.

4

1 に答える 1