• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java PullToRefreshExpandableListView类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.handmark.pulltorefresh.library.PullToRefreshExpandableListView的典型用法代码示例。如果您正苦于以下问题:Java PullToRefreshExpandableListView类的具体用法?Java PullToRefreshExpandableListView怎么用?Java PullToRefreshExpandableListView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PullToRefreshExpandableListView类属于com.handmark.pulltorefresh.library包,在下文中一共展示了PullToRefreshExpandableListView类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.handmark.pulltorefresh.library.PullToRefreshExpandableListView; //导入依赖的package包/类
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_ptr_expandable_list);

	mPullRefreshListView = (PullToRefreshExpandableListView) findViewById(R.id.pull_refresh_expandable_list);

	// Set a listener to be invoked when the list should be refreshed.
	mPullRefreshListView.setOnRefreshListener(new OnRefreshListener<ExpandableListView>() {
		@Override
		public void onRefresh(PullToRefreshBase<ExpandableListView> refreshView) {
			// Do work to refresh the list here.
			new GetDataTask().execute();
		}
	});

	for (String group : mGroupStrings) {
		Map<String, String> groupMap1 = new HashMap<String, String>();
		groupData.add(groupMap1);
		groupMap1.put(KEY, group);

		List<Map<String, String>> childList = new ArrayList<Map<String, String>>();
		for (String string : mChildStrings) {
			Map<String, String> childMap = new HashMap<String, String>();
			childList.add(childMap);
			childMap.put(KEY, string);
		}
		childData.add(childList);
	}

	mAdapter = new SimpleExpandableListAdapter(this, groupData, android.R.layout.simple_expandable_list_item_1,
			new String[] { KEY }, new int[] { android.R.id.text1 }, childData,
			android.R.layout.simple_expandable_list_item_2, new String[] { KEY }, new int[] { android.R.id.text1 });
	setListAdapter(mAdapter);
}
 
开发者ID:chongbo2013,项目名称:OverPulltorefresh,代码行数:37,代码来源:PullToRefreshExpandableListActivity.java


示例2: onCreateView

import com.handmark.pulltorefresh.library.PullToRefreshExpandableListView; //导入依赖的package包/类
public void onCreateView() {
	mListView = (PullToRefreshExpandableListView) mRootView
			.findViewById(R.id.tab_contacts_list);

	mPinnedHeaderView = mRootView
			.findViewById(R.id.friend_list_group_header);

	mPinnedImageView = (ImageView) mRootView
			.findViewById(R.id.friend_list_group_img);
	mPinnedTextView = (TextView) mRootView
			.findViewById(R.id.friend_list_group_text);
	mPinnedRightTextView = (TextView) mRootView
			.findViewById(R.id.friend_list_group_right_text);

	mPinnedImageView.setBackgroundResource(R.drawable.group_unfold_arrow);

	mListView
			.setOnRefreshListener(new OnRefreshListener<ExpandableListView>() {

				@Override
				public void onRefresh(
						PullToRefreshBase<ExpandableListView> refreshView) {
					// TODO Auto-generated method stub
					mGroups.clear();
					mEntries.clear();
					mAdapter.notifyDataSetChanged();
					XmppLoadRosterRunnable runnable = new XmppLoadRosterRunnable(
							mYiFragment.getActivity(), null);
					getXmppBinder().execute(runnable);
				}
			});
}
 
开发者ID:ikantech,项目名称:yiim_v2,代码行数:33,代码来源:FriendManager.java


示例3: initView

import com.handmark.pulltorefresh.library.PullToRefreshExpandableListView; //导入依赖的package包/类
private void initView()
	{
		filetype = getIntent().getIntExtra("video_type", 0);
		month_name = getResources().getStringArray(R.array.month_array);
		expListView = (PullToRefreshExpandableListView) findViewById(R.id.athome_camera_tab_videolist_expandableListView);
		expListView.getRefreshableView().setGroupIndicator(null);
		expListView.getRefreshableView().setDivider(null);
		StreamerInfo basicInfo = Viewer.getViewer().getStreamerInfoMgr().getStreamerInfo(Long.valueOf(cid));
        int camCount = 0;
        if (basicInfo != null) {
            camCount = basicInfo.getCamCount();
        }
		numofcamera = basicInfo.getCamCount();
		titleText = (TextView) findViewById(R.id.title);
		relayout_alert = (LinearLayout) findViewById(R.id.relayout_alert);
//		cameraListView = (ListView)findViewById(R.id.cameraListView);
		mMyViewerHelper = MyViewerHelper.getInstance(getApplicationContext());
		mCameraInfos = mMyViewerHelper.getAllCameraInfos();
//		cameraListAdapter = new CameraListAdapter(this,mCameraInfos);
//		cameraListView.setAdapter(cameraListAdapter);
//		cameraListView.setOnItemClickListener(this);
		relayout_alert_cell1 = (RelativeLayout) findViewById(R.id.relayout_alert_cell1);
		relayout_selectTime = (RelativeLayout) findViewById(R.id.relayout_selectTime);
		select_time = (TextView) findViewById(R.id.select_time);
		relayout_selectTime.setOnClickListener(this);
		athome_up_down = (RelativeLayout) findViewById(R.id.athome_up_down);
		athome_up_down.setOnClickListener(this);
		relayout_alert_cell1.setOnClickListener(this);
		opt_linlayout = (LinearLayout) findViewById(R.id.opt_linlayout);
		opt_linlayout.setOnClickListener(this);
		findViewById(R.id.back_linlayout).setOnClickListener(this);
		not_viedeoList = (RelativeLayout) findViewById(R.id.not_viedeoList);
		not_viedeoList.setOnClickListener(this);
		videoListViewHandler = new VideoListViewHandler(this, myHandler, cid, filetype);
		adapter = new VideoListViewAdapter(this, filetype, cid, isNewAvs, basicInfo.getStreamerType(), videoListViewHandler);
		if(iCam != -1){
			adapter.setNewAvsInfo(camConfig.get(iCam).getCamIndex());
		}else{
			adapter.setNewAvsInfo(-1);
		}
		expListView.getRefreshableView().setAdapter(adapter);
		expListView.getRefreshableView().setOnChildClickListener(this);
		expListView.getRefreshableView().setOnScrollListener(this);
		expListView.setOnRefreshListener(this);
		date = "all";
		reload();
		setCameraName();
		silde_up_in = AnimationUtils.loadAnimation(this, R.anim.silde_up_in);
		silde_up_out = AnimationUtils.loadAnimation(this, R.anim.silde_up_out);
	}
 
开发者ID:OpenIchano,项目名称:Viewer,代码行数:51,代码来源:AtHomeCameraVideolistNaoCan.java


示例4: onCreatePullToRefreshListView

import com.handmark.pulltorefresh.library.PullToRefreshExpandableListView; //导入依赖的package包/类
protected PullToRefreshExpandableListView onCreatePullToRefreshListView(LayoutInflater inflater,
		Bundle savedInstanceState) {
	return new PullToRefreshExpandableListView(getActivity());
}
 
开发者ID:zjupure,项目名称:SneezeReader,代码行数:5,代码来源:PullToRefreshExpandableListFragment.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ParsedOutput类代码示例发布时间:2022-05-22
下一篇:
Java OProperty类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap