本文整理汇总了Java中com.tjerkw.slideexpandable.library.SlideExpandableListAdapter类的典型用法代码示例。如果您正苦于以下问题:Java SlideExpandableListAdapter类的具体用法?Java SlideExpandableListAdapter怎么用?Java SlideExpandableListAdapter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SlideExpandableListAdapter类属于com.tjerkw.slideexpandable.library包,在下文中一共展示了SlideExpandableListAdapter类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setTeamAdapter
import com.tjerkw.slideexpandable.library.SlideExpandableListAdapter; //导入依赖的package包/类
private void setTeamAdapter() {
PersonalMonsterAdapter adapter = new PersonalMonsterAdapter(this,
StaticClass.sTeam);
mMonstersListView.setAdapter(adapter);
mMonstersListView.setAdapter(new SlideExpandableListAdapter(adapter,
R.id.expandable_toggle_button, R.id.expandable, this));
mMonstersListView.setItemActionListener(this, R.id.pokemon_exchange,
R.id.pokemon_free, R.id.pokemon_stats);
}
示例2: setBoxAdapter
import com.tjerkw.slideexpandable.library.SlideExpandableListAdapter; //导入依赖的package包/类
private void setBoxAdapter() {
mLoadTask = new AsyncTask<Object, Void, ArrayList<Monster>>() {
@Override
protected void onPreExecute() {
super.onPreExecute();
createProgressDialog(R.string.progress_msg_box);
if (mProgressDialog != null && !mProgressDialog.isShowing())
mProgressDialog.show();
}
@Override
protected ArrayList<Monster> doInBackground(Object... objects) {
return Monster.getBoxMonsters(View_team_activity.this);
}
@Override
protected void onPostExecute(ArrayList<Monster> result) {
super.onPostExecute(result);
if (!isCancelled()) {
PersonalMonsterAdapter adapter = new PersonalMonsterAdapter(
View_team_activity.this, result);
mMonstersListView.setAdapter(adapter);
mMonstersListView
.setAdapter(new SlideExpandableListAdapter(adapter,
R.id.expandable_toggle_button,
R.id.expandable, View_team_activity.this));
mViewing = VIEW_STATUS.BOX;
}
if (mProgressDialog != null) {
mProgressDialog.dismiss();
}
}
};
if (mLocation == null) {
createProgressDialog(R.string.locating_progress_msg);
if (!mProgressDialog.isShowing())
mProgressDialog.show();
mLocationUtils = new LocationUtils(this, this, LocationType.NETWORK);
} else if (mLocation != null
&& SharedPreferencesUtilities.isAtHome(this, mLocation)) {
mLoadTask.execute();
}
// TODO set actions on box pokemons =)
// mMonstersListView.setOnItemClickListener(this);
// mMonstersListView.setOnItemLongClickListener(this);
}