R
- The type of network responseE
- The type of error (if any)D
- The type of data in the adapterpublic static class ValuesCacheAdapterWrapper.ContentValuesRecyclerViewAdapter<R,E,D> extends BaseRecyclerViewAdapter<ContentValues,R,E,D,RecyclerView.ViewHolder>
ContentValues
-based implementation of the BaseRecyclerViewAdapter
.BaseRecyclerViewAdapter.ViewHolderCreator<VH extends RecyclerView.ViewHolder>
mLayoutId, mViewHolderCreator
Constructor and Description |
---|
ValuesCacheAdapterWrapper.ContentValuesRecyclerViewAdapter(Context context,
int layoutId,
String[] from,
int[] to,
BaseCacheAdapter<ContentValues,R,E,D> baseCacheAdapter)
Initialises a newly created
ContentValuesRecyclerViewAdapter object. |
Modifier and Type | Method and Description |
---|---|
RecyclerView.ViewHolder |
onCreateViewHolder(ViewGroup parent,
int viewType)
Please refer to the base method description.
|
getAdapterViewBinder, getItemCount, getViewHolderCreator, onBindViewHolder, setAdapterViewBinder, setViewHolderCreator
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
public ValuesCacheAdapterWrapper.ContentValuesRecyclerViewAdapter(@NonNull Context context, @LayoutRes int layoutId, @NonNull String[] from, @NonNull int[] to, @NonNull BaseCacheAdapter<ContentValues,R,E,D> baseCacheAdapter)
ContentValuesRecyclerViewAdapter
object.context
- The ContextlayoutId
- The resource identifier of a layout file that defines the viewsfrom
- The list of names representing the data to bind to the UIto
- The views that should display data in the "from" parameterbaseCacheAdapter
- The BaseCacheAdapter
to wrappublic RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
onCreateViewHolder
in class BaseRecyclerViewAdapter<ContentValues,R,E,D,RecyclerView.ViewHolder>
Copyright © 2015-2017 akha, a.k.a. Alexander Kharitonov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.