本文整理匯總了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);
}
示例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);
}
示例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();
}
});
}