android - adding data to a List and display it in a grid -


I am getting a little confused about how to display data in the grid or multicolum list view. Here is a list that I have created from a data source;

There is a problem in bringing me this grid.

Thanks for any help.

  Private list & lt; OReady & gt; POrders; Oready Rorsers = New Oradi (); ROrders.setNumber ("123"); ROrders.setQty ("5"); ROrders.setAmount ("9.00"); POrders.add (rOrders); Find Gridview = (Gridview) VVBIID (RIDGrid View 1); GridView.setAdapter (new order adapter (this, poders));   

This part is giving me an error and any eclipse suggestion only makes more errors.

This is my orderdeskapter.

  @SuppressWarnings ("raw type") public class order adapter ArrayAdapter {Private last activity activity; Private final list order; @SuppressWarnings ("uncheck") Public Order Adapters (Activity Activity, List Objects) {Super (Activity, R. Layup Pickup, Objects); This.activity = Activity; This.orders = objects; }   

Here's a great link I used to create my list view. I think this will help you a lot.

In addition, yes, you want to create a square to store the data. The above tutorial is expected that all your questions will be answered.

Comments