Home
last modified time | relevance | path

Searched refs:mSwipeRefreshLayout (Results 1 – 3 of 3) sorted by relevance

/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/
DSwipeRefreshListFragment.java36 private SwipeRefreshLayout mSwipeRefreshLayout; field in SwipeRefreshListFragment
46 mSwipeRefreshLayout = new ListFragmentSwipeRefreshLayout(container.getContext()); in onCreateView()
50 mSwipeRefreshLayout.addView(listFragmentView, in onCreateView()
54 mSwipeRefreshLayout.setLayoutParams( in onCreateView()
60 return mSwipeRefreshLayout; in onCreateView()
70 mSwipeRefreshLayout.setOnRefreshListener(listener); in setOnRefreshListener()
80 return mSwipeRefreshLayout.isRefreshing(); in isRefreshing()
90 mSwipeRefreshLayout.setRefreshing(refreshing); in setRefreshing()
99 mSwipeRefreshLayout.setColorScheme(colorRes1, colorRes2, colorRes3, colorRes4); in setColorScheme()
106 return mSwipeRefreshLayout; in getSwipeRefreshLayout()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.swiperefreshmultipleviews/
DSwipeRefreshMultipleViewsFragment.java58 private MultiSwipeRefreshLayout mSwipeRefreshLayout; field in SwipeRefreshMultipleViewsFragment
90 mSwipeRefreshLayout = (MultiSwipeRefreshLayout) view.findViewById(R.id.swiperefresh); in onCreateView()
94 mSwipeRefreshLayout.setColorSchemeResources( in onCreateView()
128 mSwipeRefreshLayout.setSwipeableChildren(android.R.id.list, android.R.id.empty); in onViewCreated()
140 mSwipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { in onViewCreated()
174 if (!mSwipeRefreshLayout.isRefreshing()) { in onOptionsItemSelected()
175 mSwipeRefreshLayout.setRefreshing(true); in onOptionsItemSelected()
218 mSwipeRefreshLayout.setRefreshing(false); in onRefreshComplete()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.swiperefreshlayoutbasic/
DSwipeRefreshLayoutBasicFragment.java57 private SwipeRefreshLayout mSwipeRefreshLayout; field in SwipeRefreshLayoutBasicFragment
85 mSwipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.swiperefresh); in onCreateView()
89 mSwipeRefreshLayout.setColorScheme( in onCreateView()
128 mSwipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { in onViewCreated()
157 if (!mSwipeRefreshLayout.isRefreshing()) { in onOptionsItemSelected()
158 mSwipeRefreshLayout.setRefreshing(true); in onOptionsItemSelected()
201 mSwipeRefreshLayout.setRefreshing(false); in onRefreshComplete()