/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/ |
AlarmAdapter.java | 25 import android.support.v7.widget.RecyclerView; 40 * Adapter responsible for interactions between the {@link RecyclerView} and the 43 public class AlarmAdapter extends RecyclerView.Adapter<AlarmAdapter.AlarmViewHolder> { 110 public static class AlarmViewHolder extends RecyclerView.ViewHolder { 164 * ItemDecoration that draws an divider between items in a RecyclerView. 166 public static class DividerItemDecoration extends RecyclerView.ItemDecoration { 175 public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { 180 RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) chil [all...] |
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/ |
HeaderRecyclerView.java | 22 import android.support.v7.widget.RecyclerView; 34 * A RecyclerView that can display a header item at the start of the list. The header can be set by 38 public class HeaderRecyclerView extends RecyclerView { 59 * An adapter that can optionally add one header item to the RecyclerView. 61 public static class HeaderAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { 65 private RecyclerView.Adapter mAdapter; 97 public HeaderAdapter(RecyclerView.Adapter adapter) { 159 public RecyclerView.Adapter getWrappedAdapter() { 204 * Gets the header view of this RecyclerView, or {@code null} if there are no headers [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
DividerItemDecoration.java | 31 * DividerItemDecoration is a {@link RecyclerView.ItemDecoration} that can be used as a divider 36 * mDividerItemDecoration = new DividerItemDecoration(recyclerView.getContext(), 38 * recyclerView.addItemDecoration(mDividerItemDecoration); 41 public class DividerItemDecoration extends RecyclerView.ItemDecoration { 57 * Creates a divider {@link RecyclerView.ItemDecoration} that can be used with a 72 * {@link RecyclerView.LayoutManager} changes orientation. 97 public void onDraw(Canvas c, RecyclerView parent) { 108 private void drawVertical(Canvas canvas, RecyclerView parent) { 134 private void drawHorizontal(Canvas canvas, RecyclerView parent) { 161 public void getItemOffsets(Rect outRect, int itemPosition, RecyclerView parent) [all...] |
ScrollbarHelper.java | 29 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, 30 View startChild, View endChild, RecyclerView.LayoutManager lm, 60 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, 61 View startChild, View endChild, RecyclerView.LayoutManager lm, 79 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, 80 View startChild, View endChild, RecyclerView.LayoutManager lm,
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
TestedFrameLayout.java | 43 RecyclerView recyclerView = getRvChild(); 44 if (recyclerView == null) { 48 FullControlLayoutParams lp = (FullControlLayoutParams) recyclerView.getLayoutParams(); 76 recyclerView.measure(childWidthMeasureSpec, childHeightMeasureSpec); 86 recyclerView.getWidth() + getPaddingLeft() + getPaddingRight(), 89 recyclerView.getHeight() + getPaddingTop() + getPaddingBottom(), 109 private RecyclerView getRvChild() { 111 if (getChildAt(i) instanceof RecyclerView) { 112 return (RecyclerView) getChildAt(i) [all...] |
WrapContentBasicTest.java | 49 private RecyclerView mRecyclerView; 61 RecyclerView rv = new RecyclerView(getContext()); 185 v.setLayoutParams(new RecyclerView.LayoutParams(1, 1)); 193 public class WrapContentLayoutManager extends RecyclerView.LayoutManager { 196 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { 201 public RecyclerView.LayoutParams generateDefaultLayoutParams() { 202 return new RecyclerView.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 207 public class WrapAdapter extends RecyclerView.Adapter [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/ |
PermissionsFrameFragment.java | 24 import android.support.v7.widget.RecyclerView; 44 @Nullable private RecyclerView mGridView; 134 public RecyclerView onCreateRecyclerView(LayoutInflater inflater, ViewGroup parent, 145 protected RecyclerView.Adapter<?> onCreateAdapter(PreferenceScreen preferenceScreen) { 146 final RecyclerView.Adapter<?> adapter = super.onCreateAdapter(preferenceScreen); 151 final RecyclerView recyclerView = getListView(); 152 adapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() { 171 recyclerView.setVisibility(isEmpty && adapter.getItemCount() == 0 ? 181 recyclerView.setVisibility(isEmpty && adapter.getItemCount() == 0 [all...] |
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/ |
DividerItemDecoration.java | 26 import android.support.v7.widget.RecyclerView; 33 * An {@link android.support.v7.widget.RecyclerView.ItemDecoration} for RecyclerView to draw 41 public class DividerItemDecoration extends RecyclerView.ItemDecoration { 105 public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { 123 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, 124 RecyclerView.State state) { 130 private boolean shouldDrawDividerBelow(View view, RecyclerView parent) { 131 final RecyclerView.ViewHolder holder = parent.getChildViewHolder(view) [all...] |
/frameworks/support/v14/preference/src/android/support/v14/preference/ |
PreferenceFragment.java | 45 import android.support.v7.widget.RecyclerView; 134 private RecyclerView mList; 284 final RecyclerView listView = onCreateRecyclerView(themedInflater, listContainer, 287 throw new RuntimeException("Could not create RecyclerView"); 562 public final RecyclerView getListView() { 567 * Creates the {@link android.support.v7.widget.RecyclerView} used to display the preferences. 569 * {@link android.support.v7.widget.RecyclerView}. 571 * {@link android.support.v7.widget.RecyclerView}. 572 * @param parent The parent {@link android.view.View} that the RecyclerView will be attached to. 577 * @return A new RecyclerView object to be placed into the view hierarch [all...] |
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
PreferenceFragmentCompat.java | 34 import android.support.v7.widget.RecyclerView; 123 private RecyclerView mList; 272 final RecyclerView listView = onCreateRecyclerView(themedInflater, listContainer, 275 throw new RuntimeException("Could not create RecyclerView"); 552 public final RecyclerView getListView() { 557 * Creates the {@link android.support.v7.widget.RecyclerView} used to display the preferences. 559 * {@link android.support.v7.widget.RecyclerView}. 561 * {@link android.support.v7.widget.RecyclerView}. 562 * @param parent The parent {@link android.view.View} that the RecyclerView will be attached to. 567 * @return A new RecyclerView object to be placed into the view hierarch [all...] |
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/ |
RecyclerItemAdapter.java | 22 import android.support.v7.widget.RecyclerView; 31 * An adapter used with RecyclerView to display an {@link ItemHierarchy}. The item hierarchy used to 35 public class RecyclerItemAdapter extends RecyclerView.Adapter<ItemViewHolder> 61 return id > 0 ? id : RecyclerView.NO_ID; 63 return RecyclerView.NO_ID; 124 // Use layout resource as item view type. RecyclerView item type does not have to be
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
DragAndDropActivity.java | 25 import android.support.v7.widget.RecyclerView; 89 public void clearView(RecyclerView.ViewHolder viewHolder) { 97 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { 122 public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
BottomSheetDynamicContent.java | 24 import android.support.v7.widget.RecyclerView; 41 private BottomSheetBehavior<RecyclerView> mBehavior; 84 RecyclerView list = (RecyclerView) findViewById(R.id.list); 111 private static class ViewHolder extends RecyclerView.ViewHolder { 122 private static class DynamicAdapter extends RecyclerView.Adapter<ViewHolder> {
|
/packages/services/Car/car-support-lib/ |
Android.mk | 27 --extra-packages android.support.v7.recyclerview \ 34 LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res 44 android-support-v7-recyclerview \ 62 LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res 67 --extra-packages android.support.v7.recyclerview \ 86 android-support-v7-recyclerview \
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
PagedListView.java | 26 import android.support.v7.widget.RecyclerView; 38 * Custom {@link android.support.v7.widget.RecyclerView} that displays a list of items that 67 private RecyclerView.Adapter<? extends RecyclerView.ViewHolder> mAdapter; 73 * Interface for a {@link android.support.v7.widget.RecyclerView.Adapter} to cap the 76 * {@link android.support.v7.widget.RecyclerView.Adapter#getItemCount()}. 202 @NonNull RecyclerView.Adapter<? extends RecyclerView.ViewHolder> adapter) { 220 public RecyclerView.Adapter<? extends RecyclerView.ViewHolder> getAdapter() [all...] |
/developers/build/prebuilts/gradle/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
PlanetAdapter.java | 20 import android.support.v7.widget.RecyclerView; 30 public class PlanetAdapter extends RecyclerView.Adapter<PlanetAdapter.ViewHolder> { 44 public static class ViewHolder extends RecyclerView.ViewHolder {
|
/developers/samples/android/ui/views/NavigationDrawer/Application/src/main/java/com/example/android/navigationdrawer/ |
PlanetAdapter.java | 20 import android.support.v7.widget.RecyclerView; 30 public class PlanetAdapter extends RecyclerView.Adapter<PlanetAdapter.ViewHolder> { 44 public static class ViewHolder extends RecyclerView.ViewHolder {
|
/development/samples/browseable/NavigationDrawer/src/com.example.android.navigationdrawer/ |
PlanetAdapter.java | 20 import android.support.v7.widget.RecyclerView; 30 public class PlanetAdapter extends RecyclerView.Adapter<PlanetAdapter.ViewHolder> { 44 public static class ViewHolder extends RecyclerView.ViewHolder {
|
/frameworks/base/packages/DocumentsUI/ |
Android.mk | 15 LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview 25 frameworks/support/v7/recyclerview/res 32 --extra-packages android.support.v7.recyclerview
|
/frameworks/base/packages/SystemUI/ |
Android.mk | 25 android-support-v7-recyclerview \ 47 frameworks/support/v7/recyclerview/res \ 51 --extra-packages com.android.keyguard:android.support.v7.recyclerview:android.support.v7.preference:android.support.v14.preference:android.support.v7.appcompat \
|
/frameworks/support/samples/SupportDesignDemos/ |
Android.mk | 30 android-support-v7-recyclerview \ 35 frameworks/support/v7/recyclerview/res \ 40 --extra-packages android.support.v7.recyclerview \
|
/packages/apps/Dialer/ |
Android.mk | 36 $(support_library_root_dir)/v7/recyclerview/res \ 44 --extra-packages android.support.v7.recyclerview \ 56 android-support-v7-recyclerview \
|
/packages/apps/EmergencyInfo/ |
Android.mk | 30 android-support-v7-recyclerview \ 38 $(support_library_root_dir)/v7/recyclerview/res \ 47 --extra-packages android.support.v7.recyclerview \
|
/packages/apps/Launcher3/ |
Android.mk | 28 android-support-v7-recyclerview 36 frameworks/support/v7/recyclerview/res 44 --extra-packages android.support.v7.recyclerview
|
/packages/apps/Settings/ |
Android.mk | 18 android-support-v7-recyclerview \ 34 frameworks/support/v7/recyclerview/res 43 --extra-packages android.support.v7.preference:android.support.v14.preference:android.support.v17.preference:android.support.v7.appcompat:android.support.v7.recyclerview
|