public abstract class BaseCard extends java.lang.Object implements ICardConfig
限定符和类型 | 类和说明 |
---|---|
static class |
BaseCard.CardType |
static class |
BaseCard.Source |
限定符和类型 | 字段和说明 |
---|---|
static int |
ITEM_HEIGHT |
static int |
ITEM_HEIGHT_FOLLOW |
static int |
ITEM_HEIGHT_RECENTLY |
static int |
ITEM_HEIGHT_SQUARE |
static int |
ITEM_HEIGHT_SQUARE_3 |
OnVideoCardListener |
mAdapterListener |
android.os.Handler |
mBaseHandler |
CardDataBO |
mCardDataBO |
OnCardListener |
mListener |
PageShowListener |
mPageShowListener |
byte |
mStartWatchPage |
byte |
mStartWatchSource |
static float |
RATE_16_9 |
static float |
RATE_4_3 |
static int |
sLastScreenWidth |
static int |
STATUS_END |
static int |
STATUS_ERROR |
static int |
STATUS_NEXT_PAGE |
static int |
STATUS_NORMAL |
构造器和说明 |
---|
BaseCard() |
限定符和类型 | 方法和说明 |
---|---|
void |
checkConfig(android.view.View convertView) |
void |
configView(android.view.View convertView,
CardDataBO cardDataBO,
int position,
android.content.Context context) |
static java.lang.String |
getCaptureUrl(com.app.live.activity.VideoDataInfo vd) |
static java.lang.String |
getFollowCaptureUrl(com.app.live.activity.VideoDataInfo vd) |
int |
getItemHeight() |
static java.lang.String |
getNonNullString(java.lang.String string) |
abstract android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent,
java.lang.String type,
android.content.Context context) |
static void |
initItemSize() |
boolean |
isPageShow() |
abstract void |
onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder,
int position,
android.content.Context context,
java.lang.String type) |
static void |
onConfigurationChanged(android.content.res.Configuration newConfig) |
abstract androidx.recyclerview.widget.RecyclerView.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType,
android.content.Context context,
java.lang.String type) |
void |
setBaseHandler(android.os.Handler handler) |
static void |
setItemParams(android.view.View view,
int itemHeight) |
void |
setOnComponentClickListener(OnCardListener listener) |
void |
setOnVideoCardListener(OnVideoCardListener l) |
void |
setPageAndSource(byte startWatchPage,
byte startWatchSource) |
void |
setPageShowListener(PageShowListener l) |
void |
updateVideoIndex(java.lang.String type,
CardDataBO cardDataBO,
int position)
这个方法是基于adapter的getview中的position建立的视频索引
|
public static final float RATE_4_3
public static final float RATE_16_9
public static int sLastScreenWidth
public static int ITEM_HEIGHT
public static int ITEM_HEIGHT_SQUARE
public static int ITEM_HEIGHT_SQUARE_3
public static int ITEM_HEIGHT_FOLLOW
public static int ITEM_HEIGHT_RECENTLY
public static final int STATUS_NORMAL
public static final int STATUS_END
public static final int STATUS_ERROR
public static final int STATUS_NEXT_PAGE
public CardDataBO mCardDataBO
public OnCardListener mListener
public android.os.Handler mBaseHandler
public OnVideoCardListener mAdapterListener
public PageShowListener mPageShowListener
public byte mStartWatchPage
public byte mStartWatchSource
public void setOnVideoCardListener(OnVideoCardListener l)
public abstract android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent, java.lang.String type, android.content.Context context)
getView
在接口中 ICardConfig
public void configView(android.view.View convertView, CardDataBO cardDataBO, int position, android.content.Context context)
configView
在接口中 ICardConfig
public void checkConfig(android.view.View convertView)
public int getItemHeight()
public void setOnComponentClickListener(OnCardListener listener)
public abstract androidx.recyclerview.widget.RecyclerView.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType, android.content.Context context, java.lang.String type)
public abstract void onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder, int position, android.content.Context context, java.lang.String type)
public void setBaseHandler(android.os.Handler handler)
public void updateVideoIndex(java.lang.String type, CardDataBO cardDataBO, int position)
type
- cardDataBO
- position
- public void setPageAndSource(byte startWatchPage, byte startWatchSource)
public void setPageShowListener(PageShowListener l)
public boolean isPageShow()
public static java.lang.String getCaptureUrl(com.app.live.activity.VideoDataInfo vd)
public static java.lang.String getFollowCaptureUrl(com.app.live.activity.VideoDataInfo vd)
public static java.lang.String getNonNullString(java.lang.String string)
public static void setItemParams(android.view.View view, int itemHeight)
public static void onConfigurationChanged(android.content.res.Configuration newConfig)
public static void initItemSize()