/frameworks/support/wear/src/android/support/wear/widget/drawer/ |
RecyclerViewFlingWatcher.java | 21 import android.support.v7.widget.RecyclerView; 22 import android.support.v7.widget.RecyclerView.OnScrollListener; 29 * {@link FlingWatcher} implementation for {@link RecyclerView RecyclerViews}. Detects the end of 38 private final WeakReference<RecyclerView> mRecyclerView; 40 RecyclerViewFlingWatcher(FlingListener listener, RecyclerView view) { 47 RecyclerView recyclerView = mRecyclerView.get(); 48 if (recyclerView != null) { 49 recyclerView.addOnScrollListener(this); 54 public void onScrollStateChanged(RecyclerView recyclerView, int newState) [all...] |
/frameworks/support/wear/tests/src/android/support/wear/widget/ |
SwipeDismissFrameLayoutTestActivity.java | 21 import android.support.v7.widget.RecyclerView; 44 RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recycler_container); 45 if (recyclerView == null) { 48 recyclerView.setLayoutManager( 53 recyclerView.setAdapter(new MyRecyclerViewAdapter()); 57 extends RecyclerView.Adapter<MyRecyclerViewAdapter.CustomViewHolder> { 75 static class CustomViewHolder extends RecyclerView.ViewHolder {
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
GapWorkerTest.java | 90 list.get(1).view = new RecyclerView(getContext()); 175 RecyclerView recyclerView = new RecyclerView(getContext()); 177 assertFalse(recyclerView.mIsAttached); 178 recyclerView.onAttachedToWindow(); 179 recyclerView.mGapWorker.prefetch(RecyclerView.FOREVER_NS); 181 recyclerView.onDetachedFromWindow();
|
ScrollToPositionWithAutoMeasure.java | 63 public void test(final RecyclerView.LayoutManager llm, 65 final RecyclerView recyclerView = new RecyclerView(getActivity()); 66 recyclerView.setLayoutManager(llm); 67 recyclerView.setAdapter(new TestAdapter(1000)); 68 setRecyclerView(recyclerView); 70 assertThat("Test sanity", recyclerView.getChildCount() > 0, is(true)); 75 int lastChildPos = recyclerView.getChildAdapterPosition(lastChild); 78 recyclerView.measure [all...] |
TestResizingRelayoutWithAutoMeasure.java | 52 private final RecyclerView.LayoutManager mLayoutManager; 58 RecyclerView.LayoutManager layoutManager, float widthMultiplier, 95 final WrappedRecyclerView recyclerView = new WrappedRecyclerView(getActivity()); 96 recyclerView.setLayoutManager(mLayoutManager); 99 recyclerView.setLayoutParams(new FrameLayout.LayoutParams(mRvWidth, mRvHeight)); 100 recyclerView.setAdapter(adapter); 101 setRecyclerView(recyclerView); 103 assertThat("Test sanity", recyclerView.getChildCount() > 0, is(true)); 104 final int lastPosition = recyclerView.getAdapter().getItemCount() - 1; 106 assertThat("test sanity", recyclerView.findViewHolderForAdapterPosition(lastPosition) [all...] |
LinearLayoutManagerWrapContentWithAspectRatioTest.java | 125 RecyclerView.LayoutManager layoutManager = createFromConfig(); 127 recyclerView = new WrappedRecyclerView(getActivity()); 128 recyclerView.setBackgroundColor(Color.rgb(0, 0, 255)); 129 recyclerView.setLayoutManager(layoutManager); 130 recyclerView.setLayoutParams(wrapContent); 147 recyclerView.setAdapter(adapter); 148 setRecyclerView(recyclerView); 149 recyclerView.waitUntilLayout(); 151 int parentDim = getSize((View) recyclerView.getParent(), testOrientation); 153 View itemView1 = recyclerView.findViewHolderForAdapterPosition(0).itemView [all...] |
RecyclerViewPrefetchTest.java | 47 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { 54 public void onLayoutCompleted(RecyclerView.State state) { 60 public void collectAdjacentPrefetchPositions(int dx, int dy, RecyclerView.State state, 77 private ArrayList<RecyclerView.ViewHolder> cachedViews() { 83 RecyclerView recyclerView = new RecyclerView(getActivity()); 84 recyclerView.setAdapter(new TestAdapter(50)); 86 recyclerView.setLayoutManager(layout) [all...] |
AttachDetachCollector.java | 27 public class AttachDetachCollector implements RecyclerView.OnChildAttachStateChangeListener { 31 public AttachDetachCollector(RecyclerView recyclerView) { 32 recyclerView.addOnChildAttachStateChangeListener(this);
|
GridLayoutManagerCacheTest.java | 65 private ArrayList<RecyclerView.ViewHolder> cachedViews() { 81 RecyclerView recyclerView = setupBasic(config); 82 waitForFirstLayout(recyclerView);
|
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/ |
SchedulerFragment.java | 36 import android.support.v7.widget.RecyclerView; 97 RecyclerView recyclerView = (RecyclerView) rootView.findViewById(R.id.recycler_view_alarms); 98 recyclerView.setLayoutManager(new LinearLayoutManager(activity)); 99 recyclerView.setAdapter(mAlarmAdapter); 100 recyclerView.addItemDecoration(new AlarmAdapter.DividerItemDecoration(activity)); 126 * This receiver removes the corresponding alarm from the RecyclerView.
|
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/ |
SchedulerFragment.java | 36 import android.support.v7.widget.RecyclerView; 97 RecyclerView recyclerView = (RecyclerView) rootView.findViewById(R.id.recycler_view_alarms); 98 recyclerView.setLayoutManager(new LinearLayoutManager(activity)); 99 recyclerView.setAdapter(mAlarmAdapter); 100 recyclerView.addItemDecoration(new AlarmAdapter.DividerItemDecoration(activity)); 126 * This receiver removes the corresponding alarm from the RecyclerView.
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/ |
SchedulerFragment.java | 36 import android.support.v7.widget.RecyclerView; 97 RecyclerView recyclerView = (RecyclerView) rootView.findViewById(R.id.recycler_view_alarms); 98 recyclerView.setLayoutManager(new LinearLayoutManager(activity)); 99 recyclerView.setAdapter(mAlarmAdapter); 100 recyclerView.addItemDecoration(new AlarmAdapter.DividerItemDecoration(activity)); 126 * This receiver removes the corresponding alarm from the RecyclerView.
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
AppBarLayoutUsageBase.java | 31 import android.support.v7.widget.RecyclerView; 65 RecyclerView recyclerView = findViewById(R.id.appbar_recyclerview); 66 if (recyclerView != null) { 67 setupRecyclerView(recyclerView); 129 private void setupRecyclerView(RecyclerView recyclerView) { 130 recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext())); 131 recyclerView.setAdapter(new SimpleStringRecyclerViewAdapter(this, Cheeses.sCheeseStrings)) [all...] |
BottomSheetModalBase.java | 25 import android.support.v7.widget.RecyclerView; 87 // For the scrolling content, you can use RecyclerView, NestedScrollView or any other 89 RecyclerView recyclerView = 90 (RecyclerView) view.findViewById(R.id.bottom_sheet_recyclerview); 91 Context context = recyclerView.getContext(); 92 recyclerView.setLayoutManager(new LinearLayoutManager(context)); 96 recyclerView.setAdapter(new SimpleStringRecyclerViewAdapter(context, array));
|
BottomSheetWithFragment.java | 28 import android.support.v7.widget.RecyclerView; 45 setUpRecyclerView((RecyclerView) findViewById(R.id.list1)); 58 private static void setUpRecyclerView(RecyclerView recyclerView) { 59 Context context = recyclerView.getContext(); 60 recyclerView.setLayoutManager(new LinearLayoutManager(context)); 61 recyclerView.setAdapter(new DummyAdapter(context, 30)); 75 setUpRecyclerView((RecyclerView) view.findViewById(R.id.list2)); 79 public static class ViewHolder extends RecyclerView.ViewHolder { 89 public static class DummyAdapter extends RecyclerView.Adapter<ViewHolder> [all...] |
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/ |
NewCallLogFragment.java | 25 import android.support.v7.widget.RecyclerView; 51 private RecyclerView recyclerView; 115 recyclerView = view.findViewById(R.id.new_call_log_recycler_view); 146 recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); 147 recyclerView.setAdapter(new NewCallLogAdapter(newCursor)); 153 recyclerView.setAdapter(null);
|
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/simulator/ |
EnrichedCallSimulatorActivity.java | 26 import android.support.v7.widget.RecyclerView; 66 RecyclerView recyclerView = findViewById(R.id.sessions_recycler_view); 67 recyclerView.setLayoutManager(new LinearLayoutManager(this)); 71 recyclerView.setAdapter(sessionsAdapter);
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/ |
NewSearchFragment.java | 26 import android.support.v7.widget.RecyclerView; 45 private RecyclerView recyclerView; 59 recyclerView = view.findViewById(R.id.recycler_view); 60 recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); 61 recyclerView.setAdapter(adapter); 94 recyclerView.setAdapter(null);
|
/developers/samples/android/ui/views/RecyclerView/Application/src/androidTest/java/com/example/android/recyclerview/test/ |
RecyclerViewSampleTests.java | 17 package com.example.android.recyclerview.test; 19 import com.example.android.recyclerview.MainActivity; 20 import com.example.android.recyclerview.R; 21 import com.example.android.recyclerview.RecyclerViewFragment; 24 import android.support.v7.widget.RecyclerView; 28 * Tests for RecyclerView sample. 63 RecyclerView recyclerView = 64 (RecyclerView) mTestFragment.getView().findViewById(R.id.recyclerView); [all...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
RvCompatListActivity.java | 16 package com.android.test.uibench.recyclerview; 25 import android.support.v7.widget.RecyclerView; 34 RecyclerView.LayoutManager layoutManager; 35 RecyclerView.Adapter adapter; 41 RecyclerView recyclerView = (RecyclerView) inflater.inflate( 43 recyclerView.setLayoutManager(layoutManager); 44 recyclerView.setAdapter(adapter); 45 return recyclerView; [all...] |
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/ |
GlifPreferenceLayout.java | 21 import android.support.v7.widget.RecyclerView; 95 public RecyclerView onCreateRecyclerView(LayoutInflater inflater, ViewGroup parent, 113 RecyclerView recyclerView = (RecyclerView) inflater.inflate( 115 mRecyclerMixin = new RecyclerMixin(this, recyclerView);
|
SetupWizardPreferenceLayout.java | 21 import android.support.v7.widget.RecyclerView; 93 public RecyclerView onCreateRecyclerView(LayoutInflater inflater, ViewGroup parent, 111 RecyclerView recyclerView = (RecyclerView) inflater.inflate( 113 mRecyclerMixin = new RecyclerMixin(this, recyclerView);
|
/frameworks/support/paging/integration-tests/testapp/src/main/java/android/arch/paging/integration/testapp/ |
PagedListSampleActivity.java | 26 import android.support.v7.widget.RecyclerView; 43 final RecyclerView recyclerView = findViewById(R.id.recyclerview); 44 recyclerView.setAdapter(adapter);
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
GlifPreferenceLayoutTest.java | 30 import android.support.v7.widget.RecyclerView; 71 final RecyclerView recyclerView = layout.onCreateRecyclerView(LayoutInflater.from(mContext), 73 assertNotNull("RecyclerView created should not be null", recyclerView);
|
SetupWizardPreferenceLayoutTest.java | 30 import android.support.v7.widget.RecyclerView; 71 final RecyclerView recyclerView = layout.onCreateRecyclerView(LayoutInflater.from(mContext), 73 assertNotNull("RecyclerView created should not be null", recyclerView);
|