0

This is my list view which is showing a list but in a ugly way . Please tell me how to arrange the numbers in a ordered manner. enter image description here May be my question is not clear , ask me anything you want .

Here is the code for adapter

ArrayAdapter<String> adapter= new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,combination);

        ListView listView=(ListView)findViewById(R.id.listView);
        listView.setAdapter(adapter);
Willie Cheng
  • 7,679
  • 13
  • 55
  • 68

1 Answers1

0

You need to use Custom Adapter. I described a full detail of how to make a custom adapter here

The only change you need to do is to use two text view and give any style which you want to them.

Community
  • 1
  • 1
Omid Heshmatinia
  • 5,089
  • 2
  • 35
  • 50