@Override public void onConnectionOk() { super.showSpinner(true); mDomoticz = new Domoticz(mContext); mSwipeRefreshLayout = (SwipeRefreshLayout) getView().findViewById(R.id.swipe_refresh_layout); listView = (ListView) getView().findViewById(R.id.listView); processUserVariables(); }
private void createListView() { if (getView() != null) { SwingBottomInAnimationAdapter animationAdapter = new SwingBottomInAnimationAdapter(adapter); animationAdapter.setAbsListView(listView); listView.setAdapter(animationAdapter); mSwipeRefreshLayout.setRefreshing(false); mSwipeRefreshLayout.setOnRefreshListener( new SwipeRefreshLayout.OnRefreshListener() { @Override public void onRefresh() { processUserVariables(); } }); super.showSpinner(false); this.Filter(filter); } }