Home
last modified time | relevance | path

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

/development/samples/browseable/RecyclerView/src/com.example.android.recyclerview/
DRecyclerViewFragment.java50 protected RecyclerView mRecyclerView; field in RecyclerViewFragment
71 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerView); in onCreateView()
89 mRecyclerView.setAdapter(mAdapter); in onCreateView()
120 if (mRecyclerView.getLayoutManager() != null) { in setRecyclerViewLayoutManager()
121 scrollPosition = ((LinearLayoutManager) mRecyclerView.getLayoutManager()) in setRecyclerViewLayoutManager()
139 mRecyclerView.setLayoutManager(mLayoutManager); in setRecyclerViewLayoutManager()
140 mRecyclerView.scrollToPosition(scrollPosition); in setRecyclerViewLayoutManager()
/development/samples/browseable/AppUsageStatistics/src/com.example.android.appusagestatistics/
DAppUsageStatisticsFragment.java55 RecyclerView mRecyclerView; field in AppUsageStatisticsFragment
94 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview_app_usage); in onViewCreated()
95 mLayoutManager = mRecyclerView.getLayoutManager(); in onViewCreated()
96 mRecyclerView.scrollToPosition(0); in onViewCreated()
97 mRecyclerView.setAdapter(mUsageListAdapter); in onViewCreated()
187 mRecyclerView.scrollToPosition(0); in updateAppsList()
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/
DDirectorySelectionFragment.java55 RecyclerView mRecyclerView; field in DirectorySelectionFragment
125 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerview_directory_entries); in onViewCreated()
126 mLayoutManager = mRecyclerView.getLayoutManager(); in onViewCreated()
127 mRecyclerView.scrollToPosition(0); in onViewCreated()
129 mRecyclerView.setAdapter(mAdapter); in onViewCreated()