com.handmark.pulltorefresh.library.PullToRefreshExpandableListView Java Examples

The following examples show how to use com.handmark.pulltorefresh.library.PullToRefreshExpandableListView. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FriendManager.java    From yiim_v2 with GNU General Public License v2.0 5 votes vote down vote up
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);
				}
			});
}
 
Example #2
Source File: AtHomeCameraVideolistNaoCan.java    From Viewer with Apache License 2.0 4 votes vote down vote up
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);
	}
 
Example #3
Source File: PullToRefreshExpandableListFragment.java    From ONE-Unofficial with Apache License 2.0 4 votes vote down vote up
protected PullToRefreshExpandableListView onCreatePullToRefreshListView(LayoutInflater inflater,
		Bundle savedInstanceState) {
	return new PullToRefreshExpandableListView(getActivity());
}