public class BaseRecyViewAdapterHolder
extends android.support.v7.widget.RecyclerView.ViewHolder
| 限定符和类型 | 方法和说明 |
|---|---|
static BaseRecyViewAdapterHolder |
createHolderByRedId(android.content.Context context,
int resId,
android.view.ViewGroup root,
boolean attachToRoot)
根据ResId创建Holder
|
static BaseRecyViewAdapterHolder |
createHolderByView(android.view.View mContentView)
根据View创建Holder
|
android.view.View |
getContentView()
获取跟View
|
<T extends android.view.View> |
getViewById(int resId)
根据RedId获取VIew实例
|
public static BaseRecyViewAdapterHolder createHolderByRedId(@NonNull android.content.Context context, @NonNull int resId, android.view.ViewGroup root, boolean attachToRoot)
context - resId - public static BaseRecyViewAdapterHolder createHolderByView(@NonNull android.view.View mContentView)
mContentView - public <T extends android.view.View> T getViewById(@NonNull
int resId)
T - resId - public android.view.View getContentView()