我有以下课程:
public class Person {
public String name;
public String description;
public Board(String name, String description) {
this.name = name;
this.description = description;
}
public String getName()
{
return this.name;
}
public String getDescription()
{
return this.description;
}
}
Run Code Online (Sandbox Code Playgroud)
然后,我有ArrayList<Person>一些这些数据.
我想要做的是填充我的ListView,我做了一个(坏)模型,我希望它看起来像:

在看了一些关于这个在线的信息之后,我做了一个新的布局,我在其中放了一个Medium TextView,下面有一个Small TextView,但现在我很困惑,我怎么能用我的MainActivity上的ListView链接它然后用我的数据填充它ArrayList<Person>.