我有一个简单的 ParseQuery,它检索类“PrivateData”的单个对象。
ParseQuery<PrivateData> query = ParseQuery.getQuery(PrivateData.class);
query.whereEqualTo("user", ParseUser.getCurrentUser());
然后可以使用此代码使用 PrivateData 类中的数据填充我的 listView。
但我的要求是有一个 CardListView 并填充标题。
如何使用从 parse.com 获得的数据设置卡片标题?
public class HistoryActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.history_fragment);
// get action bar
android.support.v7.app.ActionBar actionBar = getSupportActionBar();
// Enabling Up / Back navigation
actionBar.setDisplayHomeAsUpEnabled(true);
/*
1. Issue the parse query
2. Set the result from the query to each card title of CardListView
3. Repeat step 1 and step 2 until we get all the results and they are populated dynamically in CardsListView
*/
}