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

1 23 4 5 6 7 8 91011>>

  /frameworks/support/v7/recyclerview/src/android/support/v7/widget/
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...]
  /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/SupportDesignDemos/src/com/example/android/support/design/widget/
AppBarLayoutUsageBase.java 30 import android.support.v7.widget.RecyclerView;
60 RecyclerView recyclerView = (RecyclerView) findViewById(R.id.appbar_recyclerview);
61 if (recyclerView != null) {
62 setupRecyclerView(recyclerView);
107 private void setupRecyclerView(RecyclerView recyclerView) {
108 recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext()))
    [all...]
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...]
  /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/v7/recyclerview/tests/src/android/support/v7/widget/
DefaultItemAnimatorTest.java 55 List<RecyclerView.ViewHolder> mExpectedItems = new ArrayList<RecyclerView.ViewHolder>();
57 Set<RecyclerView.ViewHolder> mRemoveFinished = new HashSet<RecyclerView.ViewHolder>();
58 Set<RecyclerView.ViewHolder> mAddFinished = new HashSet<RecyclerView.ViewHolder>();
59 Set<RecyclerView.ViewHolder> mMoveFinished = new HashSet<RecyclerView.ViewHolder>();
60 Set<RecyclerView.ViewHolder> mChangeFinished = new HashSet<RecyclerView.ViewHolder>()
    [all...]
AttachDetachCollector.java 27 public class AttachDetachCollector implements RecyclerView.OnChildAttachStateChangeListener {
31 public AttachDetachCollector(RecyclerView recyclerView) {
32 recyclerView.addOnChildAttachStateChangeListener(this);
RecyclerViewAnimationsTest.java 64 final RecyclerView.ViewHolder oldVh = mRecyclerView.findViewHolderForAdapterPosition(3);
77 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3);
101 final List<RecyclerView.ViewHolder> mRecycled = new ArrayList<>();
110 RecyclerView.ViewHolder vh = mRecyclerView.getChildViewHolder(mRecyclerView.getChildAt(0));
113 public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder viewHolder,
120 final RecyclerView.ViewHolder[] updatedVH = new RecyclerView.ViewHolder[1];
127 void doLayout(RecyclerView.Recycler recycler, AnimationLayoutManager lm,
128 RecyclerView.State state) {
139 updatedVH[0] = RecyclerView.getChildViewHolderInt(view)
    [all...]
ItemAnimatorV2ApiTest.java 18 import static android.support.v7.widget.RecyclerView.ItemAnimator.FLAG_CHANGED;
19 import static android.support.v7.widget.RecyclerView.ItemAnimator.FLAG_MOVED;
20 import static android.support.v7.widget.RecyclerView.ItemAnimator.FLAG_REMOVED;
49 * Includes tests for the new RecyclerView animations API (v2).
55 protected RecyclerView.ItemAnimator createItemAnimator() {
62 final RecyclerView.ViewHolder target = mRecyclerView.findViewHolderForAdapterPosition(9);
82 final RecyclerView.ViewHolder[] targets = new RecyclerView.ViewHolder[2];
99 final RecyclerView.ViewHolder singleItemTarget =
103 public boolean canReUse(RecyclerView.ViewHolder viewHolder, List<Object> payloads)
    [all...]
RecyclerViewFocusRecoveryTest.java 27 import android.support.v7.recyclerview.test.R;
90 RecyclerView recyclerView = new RecyclerView(getActivity());
100 recyclerView.setAdapter(adapter);
101 recyclerView.setLayoutManager(mLayoutManager);
102 recyclerView.setPreserveFocusAfterLayout(!mDisableRecovery);
104 setRecyclerView(recyclerView);
113 final RecyclerView.ViewHolder oldVh = focusVh(3);
122 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3)
    [all...]
LinearLayoutManagerWrapContentWithAspectRatioTest.java 124 RecyclerView.LayoutManager layoutManager = createFromConfig();
126 recyclerView = new BaseWrapContentTest.WrappedRecyclerView(getActivity());
127 recyclerView.setBackgroundColor(Color.rgb(0, 0, 255));
128 recyclerView.setLayoutManager(layoutManager);
129 recyclerView.setLayoutParams(wrapContent);
146 recyclerView.setAdapter(adapter);
147 setRecyclerView(recyclerView);
148 recyclerView.waitUntilLayout();
150 int parentDim = getSize((View) recyclerView.getParent(), testOrientation);
152 View itemView1 = recyclerView.findViewHolderForAdapterPosition(0).itemView
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/recyclerview/test/
CustomLayoutManager.java 17 package android.support.v7.recyclerview.test;
21 import android.support.v7.widget.RecyclerView;
32 public static class LayoutManager extends RecyclerView.LayoutManager {
35 public RecyclerView.LayoutParams generateDefaultLayoutParams() {
  /packages/apps/Settings/src/com/android/settings/dashboard/
DashboardDecorator.java 21 import android.support.v7.widget.RecyclerView;
22 import android.support.v7.widget.RecyclerView.State;
23 import android.support.v7.widget.RecyclerView.ViewHolder;
28 public class DashboardDecorator extends RecyclerView.ItemDecoration {
41 public void onDrawOver(Canvas c, RecyclerView parent, State state) {
63 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) child
  /development/samples/Support7Demos/src/com/example/android/supportv7/widget/decorator/
DividerItemDecoration.java 26 import android.support.v7.widget.RecyclerView;
29 public class DividerItemDecoration extends RecyclerView.ItemDecoration {
58 public void onDraw(Canvas c, RecyclerView parent) {
66 public void drawVertical(Canvas c, RecyclerView parent) {
73 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) child
83 public void drawHorizontal(Canvas c, RecyclerView parent) {
90 final RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) child
101 public void getItemOffsets(Rect outRect, int itemPosition, RecyclerView parent)
    [all...]
  /frameworks/opt/setupwizard/library/
common-full-support.mk 44 # Include support-v7-recyclerview, if not already included
45 ifeq (,$(findstring android-support-v7-recyclerview,$(LOCAL_STATIC_JAVA_LIBRARIES)))
46 LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res
47 LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.recyclerview
48 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
OnChildViewHolderSelectedListener.java 17 import android.support.v7.widget.RecyclerView;
30 * @param parent The RecyclerView where the selection happened.
31 * @param child The ViewHolder within the RecyclerView that is selected, or null if no
38 public void onChildViewHolderSelected(RecyclerView parent, RecyclerView.ViewHolder child,
  /packages/apps/TV/src/com/android/tv/guide/
TimelineGridView.java 21 import android.support.v7.widget.RecyclerView;
25 public class TimelineGridView extends RecyclerView {
39 public boolean onRequestChildFocus(RecyclerView parent, State state, View child,
46 // RecyclerView is always focusable, however this is not desirable for us, so disable.
47 // See b/18863217 (ag/634046) for reasons to why RecyclerView is focusable.
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
RecyclerViewUtil.java 36 * Utility class for working with android.support.v7.widget.RecyclerView
41 public static final String CN_RECYCLER_VIEW = RV_PKG_PREFIX + "RecyclerView";
50 * Tries to create an Adapter ({@code android.support.v7.widget.RecyclerView.Adapter} and a
51 * LayoutManager {@code RecyclerView.LayoutManager} and assign these to the {@code RecyclerView}
56 public static void setAdapter(@NonNull View recyclerView, @NonNull BridgeContext context,
59 setLayoutManager(recyclerView, context, layoutlibCallback);
62 setProperty(recyclerView, CN_ADAPTER, adapter, "setAdapter");
68 "Error occurred while trying to setup RecyclerView.", cause, null);
72 private static void setLayoutManager(@NonNull View recyclerView, @NonNull BridgeContext context
    [all...]
  /frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/
SetupWizardRecyclerLayout.java 24 import android.support.v7.widget.RecyclerView;
41 * A setup wizard layout for use with {@link android.support.v7.widget.RecyclerView}.
51 private RecyclerView.Adapter mAdapter;
52 private RecyclerView mRecyclerView;
110 public RecyclerView.Adapter getAdapter() {
114 public void setAdapter(RecyclerView.Adapter adapter) {
119 public RecyclerView getRecyclerView() {
133 initRecyclerView((RecyclerView) findViewById(R.id.suw_recycler_view));
136 protected void initRecyclerView(RecyclerView recyclerView) {
    [all...]
  /packages/apps/Settings/src/com/android/settings/dashboard/conditional/
ConditionAdapterUtils.java 21 import android.support.v7.widget.RecyclerView;
35 public static void addDismiss(final RecyclerView recyclerView) {
39 public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder,
40 RecyclerView.ViewHolder target) {
45 public int getSwipeDirs(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder)
    [all...]
  /frameworks/base/docs/html/training/material/
lists-cards.jd 9 <li><a href="#RecyclerView">Create Lists</a></li>
23 {@link android.support.v7.widget.RecyclerView} and {@link android.support.v7.widget.CardView}
27 <h2 id="RecyclerView">Create Lists</h2>
29 <p>The {@link android.support.v7.widget.RecyclerView} widget is a more advanced and flexible
32 {@link android.support.v7.widget.RecyclerView} widget when you have data collections whose elements
35 <p>The {@link android.support.v7.widget.RecyclerView} class simplifies the display and handling of
44 android.support.v7.widget.RecyclerView} widgets.</p>
46 <img src="{@docRoot}training/material/images/RecyclerView.png" alt="" width="550" height="106"/>
48 <strong>Figure 1</strong>. The <code>RecyclerView</code> widget.
51 <p>To use the {@link android.support.v7.widget.RecyclerView} widget, you have to specify a
    [all...]
  /frameworks/base/docs/html-intl/intl/es/training/material/
lists-cards.jd 9 <li><a href="#RecyclerView">Crear listas</a></li>
23 {@link android.support.v7.widget.RecyclerView} y {@link android.support.v7.widget.CardView}.
27 <h2 id="RecyclerView">Crear listas</h2>
29 <p>El widget {@link android.support.v7.widget.RecyclerView} es una versión más
32 {@link android.support.v7.widget.RecyclerView} cuando tengas conjuntos de datos cuyos elementos
35 <p>La clase {@link android.support.v7.widget.RecyclerView} simplifica la pantalla y la manipulación de grandes conjuntos de
44 android.support.v7.widget.RecyclerView}.</p>
46 <img src="{@docRoot}training/material/images/RecyclerView.png" alt="" width="550" height="106" />
48 <strong>Figura 1</strong>. El widget <code>RecyclerView</code>.
51 <p>Para usar el widget {@link android.support.v7.widget.RecyclerView}, tienes que especificar u
    [all...]

Completed in 623 milliseconds

1 23 4 5 6 7 8 91011>>