I have an Income model like this
@Table(name = "Income") public class Income extends Model {
@Column(name = "AmountDate")
public String amountDate;
@Column(name = "Amount")
public int amount;
@Column(name = "Day")
public int day;
@Column(name = "Month")
public int month;
@Column(name = "Year")
public int year;
}
I would like to filter data from database like it is shown below. In listView month/year like this
And on ListViewItem click i would like to display all data for selected month/year.
So, my question is how to display month/year (if data for month exists in database) in listView?