当前位置: 首页>>代码示例>>Java>>正文


Java SlideExpandableListAdapter类代码示例

本文整理汇总了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);

}
 
开发者ID:luca-zamboni,项目名称:pokedroid,代码行数:12,代码来源:View_team_activity.java

示例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);
	}
 
开发者ID:luca-zamboni,项目名称:pokedroid,代码行数:52,代码来源:View_team_activity.java


注:本文中的com.tjerkw.slideexpandable.library.SlideExpandableListAdapter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。