當前位置: 首頁>>代碼示例>>Java>>正文


Java CardThumbnailView類代碼示例

本文整理匯總了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);
}
 
開發者ID:Daniele-Comi,項目名稱:System-Monitor,代碼行數:24,代碼來源:CardView.java

示例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);
        }
    }


}
 
開發者ID:tajchert,項目名稱:CEEHack,代碼行數:23,代碼來源:MayKnowCard.java

示例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;
}
 
開發者ID:Daniele-Comi,項目名稱:System-Monitor,代碼行數:12,代碼來源:CardThumbnail.java

示例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;
}
 
開發者ID:Daniele-Comi,項目名稱:System-Monitor,代碼行數:9,代碼來源:BaseCardView.java


注:本文中的it.gmariotti.cardslib.library.view.component.CardThumbnailView類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。