I have a class Selfportrait with 2 String[] or ArrayList (Strengths and Weaknesses) and each with different amount of data. I need to fill the table. Here is the picture example:
I can make a table with ListView with 2 TextView objects, fill them in pairs and if there is no pairs left, just fill one TextView object. But it is too inconvenient. Is there a way to do this more efficiently?
Here is the Selfportrait.class:
public class Selfportrait {
private List<String> strengths;
private List<String> weaknesses;
private String uniqueId;
public Selfportrait(ArrayList<String> strengths, ArrayList<String> weaknesses) {
this.strengths = strengths;
this.weaknesses = weaknesses;
uniqueId = UUID.randomUUID().toString();
}