本文整理匯總了Java中it.gmariotti.cardslib.library.view.component.CardThumbnailView類的典型用法代碼示例。如果您正苦於以下問題:Java CardThumbnailView類的具體用法?Java CardThumbnailView怎麽用?Java CardThumbnailView使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CardThumbnailView類屬於it.gmariotti.cardslib.library.view.component包,在下文中一共展示了CardThumbnailView類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: retrieveLayoutIDs
import it.gmariotti.cardslib.library.view.component.CardThumbnailView; //導入依賴的package包/類
/**
* Retrieve all Layouts IDs
*/
@Override
protected void retrieveLayoutIDs(){
super.retrieveLayoutIDs();
//Main Layout
mInternalMainCardLayout = (View) findViewById(R.id.card_main_layout);
//Get HeaderLayout
mInternalHeaderLayout = (CardHeaderView) findViewById(R.id.card_header_layout);
//Get ExpandHiddenView
mInternalExpandLayout = (View) findViewById(R.id.card_content_expand_layout);
//Get ContentLayout
mInternalContentLayout = (View) findViewById(R.id.card_main_content_layout);
//Get ThumbnailLayout
mInternalThumbnailLayout = (CardThumbnailView) findViewById(R.id.card_thumbnail_layout);
}
示例2: setupInnerViewElements
import it.gmariotti.cardslib.library.view.component.CardThumbnailView; //導入依賴的package包/類
@Override
public void setupInnerViewElements(ViewGroup parent, View view) {
TextView title = (TextView) view.findViewById(R.id.carddemo_mayknow_main_inner_title);
TextView subtitle = (TextView) view.findViewById(R.id.carddemo_mayknow_main_inner_subtitle);
TextView add = (TextView) view.findViewById(R.id.carddemo_mayknow_main_inner_button);
title.setText(getContext().getString(R.string.may_know_card_inner_title));
subtitle.setText(getContext().getString(R.string.may_know_card_inner_subtitle));
add.setClickable(true);
CardView cardView = getCardView();
CardThumbnailView thumb = cardView.getInternalThumbnailLayout();
if (thumb != null) {
ViewGroup.LayoutParams lp = thumb.getLayoutParams();
if (lp instanceof ViewGroup.MarginLayoutParams) {
((ViewGroup.MarginLayoutParams) lp).setMargins(25, 0, 0, 5);
}
}
}
示例3: getCardThumbnailView
import it.gmariotti.cardslib.library.view.component.CardThumbnailView; //導入依賴的package包/類
/**
* Return the CardThumbnailCardView
* @return
*/
public CardThumbnailView getCardThumbnailView() {
if (getParentCard() != null)
return getParentCard().getCardView().getInternalThumbnailLayout();
return null;
}
示例4: getInternalThumbnailLayout
import it.gmariotti.cardslib.library.view.component.CardThumbnailView; //導入依賴的package包/類
/**
* Returns the view used by Thumbnail
*
* @return {@link CardThumbnailView}
*/
public CardThumbnailView getInternalThumbnailLayout() {
return mInternalThumbnailLayout;
}