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


Java TintedImageView類代碼示例

本文整理匯總了Java中org.chromium.chrome.browser.widget.TintedImageView的典型用法代碼示例。如果您正苦於以下問題:Java TintedImageView類的具體用法?Java TintedImageView怎麽用?Java TintedImageView使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


TintedImageView類屬於org.chromium.chrome.browser.widget包,在下文中一共展示了TintedImageView類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onFinishInflate

import org.chromium.chrome.browser.widget.TintedImageView; //導入依賴的package包/類
@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    mIconView = (TintedImageView) findViewById(R.id.icon_view);
    mFilenameView = (TextView) findViewById(R.id.filename_view);
    mHostnameView = (TextView) findViewById(R.id.hostname_view);
    mFilesizeView = (TextView) findViewById(R.id.filesize_view);
}
 
開發者ID:rkshuai,項目名稱:chromium-for-android-56-debug-video,代碼行數:9,代碼來源:DownloadItemView.java

示例2: onFinishInflate

import org.chromium.chrome.browser.widget.TintedImageView; //導入依賴的package包/類
@Override
protected void onFinishInflate() {
    super.onFinishInflate();

    mIconView = (TintedImageView) findViewById(R.id.icon_view);
    mPageCountHeader = (TextView) findViewById(R.id.page_count_text);
    mFileSizeView = (TextView) findViewById(R.id.filesize_view);
    mExpandImage = (ImageView) findViewById(R.id.expand_icon);
}
 
開發者ID:mogoweb,項目名稱:365browser,代碼行數:10,代碼來源:OfflineGroupHeaderView.java

示例3: SnippetArticleViewHolder

import org.chromium.chrome.browser.widget.TintedImageView; //導入依賴的package包/類
/**
 * Constructs a {@link SnippetArticleViewHolder} item used to display snippets.
 * @param parent The SuggestionsRecyclerView that is going to contain the newly created view.
 * @param contextMenuManager The manager responsible for the context menu.
 * @param uiDelegate The delegate object used to open an article, fetch thumbnails, etc.
 * @param uiConfig The NTP UI configuration object used to adjust the article UI.
 */
public SnippetArticleViewHolder(SuggestionsRecyclerView parent,
        ContextMenuManager contextMenuManager, SuggestionsUiDelegate uiDelegate,
        UiConfig uiConfig) {
    super(R.layout.new_tab_page_snippets_card, parent, uiConfig, contextMenuManager);

    mUiDelegate = uiDelegate;
    mUiConfig = uiConfig;

    mThumbnailView = (TintedImageView) itemView.findViewById(R.id.article_thumbnail);
    mThumbnailSize =
            itemView.getResources().getDimensionPixelSize(R.dimen.snippets_thumbnail_size);

    mHeadlineTextView = (TextView) itemView.findViewById(R.id.article_headline);
    mPublisherTextView = (TextView) itemView.findViewById(R.id.article_publisher);
    mArticleSnippetTextView = (TextView) itemView.findViewById(R.id.article_snippet);
    mArticleAgeTextView = (TextView) itemView.findViewById(R.id.article_age);
    mPublisherBar = itemView.findViewById(R.id.publisher_bar);
    mOfflineBadge = (ImageView) itemView.findViewById(R.id.offline_icon);

    mThumbnailFootprintPx = mThumbnailSize
            + itemView.getResources().getDimensionPixelSize(R.dimen.snippets_thumbnail_margin);
    mUseFaviconService = CardsVariationParameters.isFaviconServiceEnabled();

    mIconBackgroundColor = DownloadUtils.getIconBackgroundColor(parent.getContext());
    mIconForegroundColorList = DownloadUtils.getIconForegroundColorList(parent.getContext());

    // TODO(bauerb): Share ThumbnailProvider between instances
    mThumbnailProvider = new ThumbnailProviderImpl(mThumbnailSize);

    new ImpressionTracker(itemView, this);
    new DisplayStyleObserverAdapter(itemView, uiConfig, new DisplayStyleObserver() {
        @Override
        public void onDisplayStyleChanged(UiConfig.DisplayStyle newDisplayStyle) {
            updateLayout();
        }
    });
}
 
開發者ID:mogoweb,項目名稱:365browser,代碼行數:45,代碼來源:SnippetArticleViewHolder.java


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