You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am still having a problem of how to list the realmList in my studentAdapter...I know how to list individual objects in viewholder in school adapter. I don't know how list the data from Students and put it in my student adapter which is similar to school adapter.
The StudentActivity is as followed:
@Override
public void onResume(){
super.onResume();
Bundle extras = getIntent().getExtras();
if (extras != null)
{
String schoolName = extras.getString("schoolName");
Log.d(tag, String.valueOf(schoolName));
}
I can get the school name but I don't know how to get the students name and list it as lisview in my student adapter. Please help...
Our RealmBaseAdapter currently doesn't support RealmList (we have issue for it here: #1363), but you can e.g. convert a RealmList to a RealmResults by doing list.where().findAll(), or you can just use a normal ArrayAdapter (http://developer.android.com/reference/android/widget/ArrayAdapter.html) instead which should work as well.
I am still having a problem of how to list the realmList in my studentAdapter...I know how to list individual objects in viewholder in school adapter. I don't know how list the data from Students and put it in my student adapter which is similar to school adapter.
The StudentActivity is as followed:
The MainActivity is as followed:
The SchoolAdapter is as followed:
The following is my School class:
My Student class as followed:
The text was updated successfully, but these errors were encountered: