Unable To Set Simpletabledataadapter Inside Fragment
I am using the following dependencies for TableView. compile 'de.codecrafters.tableview:tableview:2.8.0' But I am unable to set SimpleTableDataAdapter inside Fragment. tableView.s
Solution 1:
The error is not of the getActivity() The constructor expects two dimensional array.
finalString[][] DATA_TO_SHOW = { { "This", "is", "a", "test" },
{ "and", "a", "second", "test" } };
tableView.setDataAdapter(new SimpleTableDataAdapter(getActivity(), DATA_TO_SHOW));
not a single dimen string array.
Post a Comment for "Unable To Set Simpletabledataadapter Inside Fragment"