HomeSort by relevance Sort by last modified time
    Searched full:recyclerview (Results 26 - 50 of 712) sorted by null

12 3 4 5 6 7 8 91011>>

  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
RecyclerViewAccessibilityTest.java 74 final RecyclerView recyclerView = new RecyclerView(getActivity()) {
92 recyclerView.setAdapter(adapter);
93 recyclerView.setLayoutManager(new TestLayoutManager() {
96 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {
101 public RecyclerView.LayoutParams generateDefaultLayoutParams() {
102 return new RecyclerView.LayoutParams(-1, -1);
111 public int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler
    [all...]
LoggingItemAnimator.java 29 final ArrayList<RecyclerView.ViewHolder> mAddVHs = new ArrayList<RecyclerView.ViewHolder>();
31 final ArrayList<RecyclerView.ViewHolder> mRemoveVHs = new ArrayList<RecyclerView.ViewHolder>();
33 final ArrayList<RecyclerView.ViewHolder> mMoveVHs = new ArrayList<RecyclerView.ViewHolder>();
35 final ArrayList<RecyclerView.ViewHolder> mChangeOldVHs = new ArrayList<RecyclerView.ViewHolder>();
37 final ArrayList<RecyclerView.ViewHolder> mChangeNewVHs = new ArrayList<RecyclerView.ViewHolder>()
    [all...]
FocusSearchNavigationTest.java 20 import static android.support.v7.widget.RecyclerView.HORIZONTAL;
21 import static android.support.v7.widget.RecyclerView.SCROLL_STATE_IDLE;
22 import static android.support.v7.widget.RecyclerView.VERTICAL;
30 import android.support.v7.recyclerview.test.R;
57 * This class tests RecyclerView focus search failure handling by using a real LayoutManager.
83 private RecyclerView mRecyclerView;
96 mRecyclerView = (RecyclerView) mActivity.findViewById(R.id.recycler_view);
128 RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i);
148 RecyclerView.ViewHolder lastViewHolder = null;
157 RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i)
    [all...]
BaseRecyclerViewInstrumentationTest.java 19 import static android.support.v7.widget.RecyclerView.SCROLL_STATE_IDLE;
33 import android.support.v7.recyclerview.test.SameActivityTestRule;
52 import android.support.v7.recyclerview.test.R;
64 protected RecyclerView mRecyclerView;
136 void setAdapter(final RecyclerView.Adapter adapter) throws Throwable {
167 void swapAdapter(final RecyclerView.Adapter adapter,
251 final RecyclerView.Adapter adapter = mRecyclerView.getAdapter();
272 .isRunning(new RecyclerView.ItemAnimator.ItemAnimatorFinishedListener() {
285 public void waitForIdleScroll(final RecyclerView recyclerView) throws Throwable
    [all...]
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...]
BaseGridLayoutManagerTest.java 43 public RecyclerView setupBasic(Config config) throws Throwable {
47 public RecyclerView setupBasic(Config config, GridTestAdapter testAdapter) throws Throwable {
48 RecyclerView recyclerView = new RecyclerView(getActivity());
53 recyclerView.setAdapter(mAdapter);
54 recyclerView.setLayoutManager(mGlm);
55 return recyclerView;
70 public void waitForFirstLayout(RecyclerView recyclerView) throws Throwable
    [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...]
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...]
  /frameworks/base/tests/UiBench/src/com/android/test/uibench/
TrivialRecyclerViewActivity.java 18 import android.support.v7.widget.RecyclerView;
20 import com.android.test.uibench.recyclerview.RvArrayAdapter;
21 import com.android.test.uibench.recyclerview.RvCompatListActivity;
25 protected RecyclerView.Adapter createAdapter() {
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/recyclerview/test/
PrivateLayoutManager.java 17 package android.support.v7.recyclerview.test;
20 import android.support.v7.widget.RecyclerView;
23 class PrivateLayoutManager extends RecyclerView.LayoutManager {
31 public RecyclerView.LayoutParams generateDefaultLayoutParams() {
  /frameworks/support/v7/recyclerview/src/android/support/v7/widget/
RecyclerViewAccessibilityDelegate.java 26 * The AccessibilityDelegate used by RecyclerView.
31 final RecyclerView mRecyclerView;
34 public RecyclerViewAccessibilityDelegate(RecyclerView recyclerView) {
35 mRecyclerView = recyclerView;
57 info.setClassName(RecyclerView.class.getName());
66 event.setClassName(RecyclerView.class.getName());
67 if (host instanceof RecyclerView && !shouldIgnore()) {
68 RecyclerView rv = (RecyclerView) host
    [all...]
  /frameworks/support/v7/preference/src/android/support/v7/preference/
PreferenceRecyclerViewAccessibilityDelegate.java 22 import android.support.v7.widget.RecyclerView;
28 * The AccessibilityDelegate used by the RecyclerView that displays Views for Preferences.
34 final RecyclerView mRecyclerView;
37 public PreferenceRecyclerViewAccessibilityDelegate(RecyclerView recyclerView) {
38 super(recyclerView);
39 mRecyclerView = recyclerView;
53 RecyclerView.Adapter adapter = mRecyclerView.getAdapter();
  /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...]
  /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 \
  /development/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
BottomSheetModalBase.java 25 import android.support.v7.widget.RecyclerView;
69 // For the scrolling content, you can use RecyclerView, NestedScrollView or any other
71 RecyclerView recyclerView =
72 (RecyclerView) view.findViewById(R.id.bottom_sheet_recyclerview);
73 Context context = recyclerView.getContext();
74 recyclerView.setLayoutManager(new LinearLayoutManager(context));
75 recyclerView.setAdapter(new SimpleStringRecyclerViewAdapter(context,

Completed in 470 milliseconds

12 3 4 5 6 7 8 91011>>