/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
LinearSnapHelper.java | 29 * the attached {@link RecyclerView}. If you intend to change this behavior then override 44 @NonNull RecyclerView.LayoutManager layoutManager, @NonNull View targetView) { 63 public int findTargetSnapPosition(RecyclerView.LayoutManager layoutManager, int velocityX, 65 if (!(layoutManager instanceof RecyclerView.SmoothScroller.ScrollVectorProvider)) { 66 return RecyclerView.NO_POSITION; 71 return RecyclerView.NO_POSITION; 76 return RecyclerView.NO_POSITION; 80 if (currentPosition == RecyclerView.NO_POSITION) { 81 return RecyclerView.NO_POSITION; 84 RecyclerView.SmoothScroller.ScrollVectorProvider vectorProvider [all...] |
OrientationHelper.java | 30 * @see #createHorizontalHelper(RecyclerView.LayoutManager) 31 * @see #createVerticalHelper(RecyclerView.LayoutManager) 37 protected final RecyclerView.LayoutManager mLayoutManager; 47 private OrientationHelper(RecyclerView.LayoutManager layoutManager) { 64 * {@link RecyclerView.LayoutManager#onLayoutChildren(RecyclerView.Recycler, 65 * RecyclerView.State)} method. 110 * @see RecyclerView.LayoutManager#getTransformedBoundingBox(View, boolean, Rect) 126 * @see RecyclerView.LayoutManager#getTransformedBoundingBox(View, boolean, Rect) 209 * @see RecyclerView.LayoutManager#getWidthMode( [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/ |
RecyclerViewTest.java | 29 import android.support.v7.recyclerview.test.CustomLayoutManager; 30 import android.support.v7.recyclerview.test.R; 33 import android.support.v7.widget.RecyclerView; 64 // this class should be accessible outside RecyclerView package 65 assertNotNull(RecyclerView.SavedState.class); 75 RecyclerView view; 76 view = (RecyclerView) getActivity().findViewById(R.id.clipToPaddingUndefined); 78 view = (RecyclerView) getActivity().findViewById(R.id.clipToPaddingYes); 80 view = (RecyclerView) getActivity().findViewById(R.id.clipToPaddingNo); 83 view = (RecyclerView) getActivity().findViewById(R.id.recyclerView) [all...] |
/frameworks/support/v7/recyclerview/tests/res/layout/ |
inflation_test.xml | 23 <android.support.v7.widget.RecyclerView 30 <android.support.v7.widget.RecyclerView 36 <android.support.v7.widget.RecyclerView 43 <android.support.v7.widget.RecyclerView 44 android:id="@+id/recyclerView" 52 <android.support.v7.widget.RecyclerView 60 <android.support.v7.widget.RecyclerView 66 <android.support.v7.widget.RecyclerView 72 <android.support.v7.widget.RecyclerView 77 <android.support.v7.widget.RecyclerView [all...] |
/prebuilts/sdk/current/support/v7/recyclerview/libs/ |
android-support-v7-recyclerview.jar | |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
BaseWrapContentTest.java | 55 * RecyclerView size. 61 RecyclerView.LayoutManager mLayoutManager; 75 abstract RecyclerView.LayoutManager createLayoutManager(); 80 RecyclerView.LayoutManager layoutManager = createLayoutManager(); 157 RecyclerView.LayoutManager layoutManager = scenario.createLayoutManager(); 158 WrappedRecyclerView recyclerView = new WrappedRecyclerView(getActivity()); 159 recyclerView.setBackgroundColor(Color.rgb(0, 0, 255)); 160 recyclerView.setLayoutManager(layoutManager); 161 recyclerView.setLayoutParams(lp); 164 recyclerView.setAdapter(mTestAdapter) [all...] |
TestResizingRelayoutWithAutoMeasure.java | 47 private final RecyclerView.LayoutManager mLayoutManager; 52 RecyclerView.LayoutManager layoutManager, float widthMultiplier, 81 final RecyclerView recyclerView = new RecyclerView(getActivity()); 82 recyclerView.setLayoutManager(mLayoutManager); 83 recyclerView.setAdapter(new TestAdapter(500)); 84 setRecyclerView(recyclerView); 86 assertThat("Test sanity", recyclerView.getChildCount() > 0, is(true)); 87 final int lastPosition = recyclerView.getAdapter().getItemCount() - 1 [all...] |
RecyclerViewBasicTest.java | 48 RecyclerView mRecyclerView; 53 mRecyclerView = new RecyclerView(getContext()); 87 assertEquals("RecyclerView should announce itself as scroll container for the IME to " 206 final List<RecyclerView.ViewHolder> recycledVhs = new ArrayList<>(); 210 public void onViewRecycled(RecyclerView.ViewHolder holder) { 229 final List<RecyclerView.ViewHolder> recycledVhs = new ArrayList<>(); 233 public void onViewRecycled(RecyclerView.ViewHolder holder) { 265 RecyclerView restored = new RecyclerView(getContext()); 269 savedState = RecyclerView.SavedState.CREATOR.createFromParcel(parcel) [all...] |
ChildHelperTest.java | 48 private RecyclerView.ViewHolder vh() { 52 RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams(0 , 0); 60 RecyclerView.ViewHolder vh = vh(); 69 RecyclerView.ViewHolder vh = vh(); 78 RecyclerView.ViewHolder vh = vh(); 88 RecyclerView.ViewHolder vh = vh(); 92 mChildHelper.findHiddenNonRemovedView(12, RecyclerView.INVALID_TYPE)); 97 RecyclerView.ViewHolder vh = vh(); 99 vh.addFlags(RecyclerView.ViewHolder.FLAG_REMOVED) [all...] |
BaseRecyclerViewAnimationsTest.java | 50 RecyclerView setupBasic(int itemCount) throws Throwable { 54 RecyclerView setupBasic(int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount) 59 RecyclerView setupBasic(int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount, 62 final TestRecyclerView recyclerView = new TestRecyclerView(getActivity()); 63 recyclerView.setHasFixedSize(true); 69 recyclerView.setAdapter(mTestAdapter); 70 recyclerView.setItemAnimator(createItemAnimator()); 72 recyclerView.setLayoutManager(mLayoutManager); 77 recyclerView.expectDraw(1); 78 setRecyclerView(recyclerView); [all...] |
BaseGridLayoutManagerTest.java | 44 public RecyclerView setupBasic(Config config) throws Throwable { 48 public RecyclerView setupBasic(Config config, GridTestAdapter testAdapter) throws Throwable { 49 RecyclerView recyclerView = new RecyclerView(getActivity()); 54 recyclerView.setAdapter(mAdapter); 55 recyclerView.setLayoutManager(mGlm); 56 return recyclerView; 86 public void waitForFirstLayout(RecyclerView recyclerView) throws Throwable [all...] |
GridLayoutManagerTest.java | 79 RecyclerView recyclerView = setupBasic(new Config(2, 100).reverseLayout(reverseLayout), 98 recyclerView.setLayoutParams(lp); 99 waitForFirstLayout(recyclerView); 119 final RecyclerView recyclerView = setupBasic(new Config(3, 31).reverseLayout(!scrollDown) 121 RecyclerView mAttachedRv; 139 public void onAttachedToRecyclerView(RecyclerView recyclerView) { 140 mAttachedRv = recyclerView; [all...] |
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
PagedLayoutManager.java | 22 import android.support.v7.widget.RecyclerView; 53 public void onItemsChanged(RecyclerView recyclerView) { 54 super.onItemsChanged(recyclerView); 61 protected int getExtraLayoutSpace(RecyclerView.State state) { 66 public void smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, 68 boolean forDrag = recyclerView.getScrollState() == RecyclerView.SCROLL_STATE_SETTLING [all...] |
/developers/build/prebuilts/gradle/RecyclerView/.google/ |
packaging.yaml | 12 github: android-RecyclerView 16 - android:android.support.v7.widget.RecyclerView 19 - android:android.support.v7.widget.RecyclerView.ViewHolder
|
/developers/samples/android/ui/views/RecyclerView/ |
template-params.xml | 21 <name>RecyclerView</name> 23 <package>com.example.android.recyclerview</package> 25 <dependency>com.android.support:recyclerview-v7:24.0.0</dependency> 34 Demonstration of using RecyclerView with a LinearLayoutManager and GridLayoutManager 49 <android>android.support.v7.widget.RecyclerView</android> 52 <android>android.support.v7.widget.RecyclerView.ViewHolder</android> 61 Sample demonstrating the use of RecyclerView to layout elements with a 68 Sample demonstrating the use of [RecyclerView][1] to layout elements with a 71 [RecyclerView][1] can display large datasets that can be scrolled 73 defined when [ViewHolder][4] views are instantiated. [RecyclerView][1] i [all...] |
/frameworks/base/tests/UiBench/ |
Android.mk | 15 frameworks/support/v7/recyclerview/res 21 --extra-packages android.support.v7.recyclerview 27 android-support-v7-recyclerview
|
/frameworks/data-binding/samples/BindingDemo/app/src/main/java/com/android/example/bindingdemo/ |
DataBoundAdapter.java | 3 import android.support.v7.widget.RecyclerView; 11 extends RecyclerView.Adapter<DataBoundAdapter.DataBoundViewHolder<T>> { 27 static class DataBoundViewHolder<T extends ViewDataBinding> extends RecyclerView.ViewHolder {
|
/frameworks/opt/setupwizard/tools/gradle/ |
settings.gradle | 16 include(':support-recyclerview-v7') 17 project(':support-recyclerview-v7').projectDir = new File(supportLibsRoot, 'recyclerview')
|
/packages/apps/TV/common/ |
Android.mk | 13 $(TOP)/prebuilts/sdk/current/support/v7/recyclerview/res \ 20 android-support-v7-recyclerview \ 24 --extra-packages android.support.v7.recyclerview \
|
/developers/build/prebuilts/gradle/RecyclerView/Application/src/main/java/com/example/android/recyclerview/ |
RecyclerViewFragment.java | 17 package com.example.android.recyclerview; 23 import android.support.v7.widget.RecyclerView; 30 * Demonstrates the use of {@link RecyclerView} with a {@link LinearLayoutManager} and a 50 protected RecyclerView mRecyclerView; 52 protected RecyclerView.LayoutManager mLayoutManager; 71 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerView); 74 // to the way ListView would layout elements. The RecyclerView.LayoutManager defines how 88 // Set CustomAdapter as the adapter for RecyclerView. 112 * Set RecyclerView's LayoutManager to the one given [all...] |
/developers/samples/android/ui/views/RecyclerView/Application/src/main/java/com/example/android/recyclerview/ |
RecyclerViewFragment.java | 17 package com.example.android.recyclerview; 23 import android.support.v7.widget.RecyclerView; 30 * Demonstrates the use of {@link RecyclerView} with a {@link LinearLayoutManager} and a 50 protected RecyclerView mRecyclerView; 52 protected RecyclerView.LayoutManager mLayoutManager; 71 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerView); 74 // to the way ListView would layout elements. The RecyclerView.LayoutManager defines how 88 // Set CustomAdapter as the adapter for RecyclerView. 112 * Set RecyclerView's LayoutManager to the one given [all...] |
/development/samples/browseable/RecyclerView/src/com.example.android.recyclerview/ |
RecyclerViewFragment.java | 17 package com.example.android.recyclerview; 23 import android.support.v7.widget.RecyclerView; 30 * Demonstrates the use of {@link RecyclerView} with a {@link LinearLayoutManager} and a 50 protected RecyclerView mRecyclerView; 52 protected RecyclerView.LayoutManager mLayoutManager; 71 mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerView); 74 // to the way ListView would layout elements. The RecyclerView.LayoutManager defines how 88 // Set CustomAdapter as the adapter for RecyclerView. 112 * Set RecyclerView's LayoutManager to the one given [all...] |
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/ |
GlifRecyclerLayoutTest.java | 23 import android.support.v7.widget.RecyclerView; 70 final RecyclerView.Adapter adapter = new RecyclerView.Adapter() { 72 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int position) { 73 return new RecyclerView.ViewHolder(new View(parent.getContext())) {}; 77 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) { 87 final RecyclerView.Adapter gotAdapter = layout.getAdapter(); 109 View recyclerView = layout.findViewById(R.id.suw_recycler_view); 110 assertTrue("@id/suw_recycler_view should be a RecyclerView", 111 recyclerView instanceof RecyclerView) [all...] |
SetupWizardRecyclerLayoutTest.java | 23 import android.support.v7.widget.RecyclerView; 70 final RecyclerView.Adapter adapter = new RecyclerView.Adapter() { 72 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int position) { 73 return new RecyclerView.ViewHolder(new View(parent.getContext())) {}; 77 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) { 87 final RecyclerView.Adapter gotAdapter = layout.getAdapter(); 109 View recyclerView = layout.findViewById(R.id.suw_recycler_view); 110 assertTrue("@id/suw_recycler_view should be a RecyclerView", 111 recyclerView instanceof RecyclerView) [all...] |
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
AppBarLayoutUsageBase.java | 31 import android.support.v7.widget.RecyclerView; 62 RecyclerView recyclerView = (RecyclerView) findViewById(R.id.appbar_recyclerview); 63 if (recyclerView != null) { 64 setupRecyclerView(recyclerView); 126 private void setupRecyclerView(RecyclerView recyclerView) { 127 recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext())) [all...] |