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


Java LoadingView類代碼示例

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


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

示例1: onFinishInflate

import org.chromium.chrome.browser.widget.LoadingView; //導入依賴的package包/類
@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    mItemsContainer = (BookmarkRecyclerView) findViewById(R.id.bookmark_items_container);
    TextView emptyView = (TextView) findViewById(R.id.bookmark_empty_view);
    emptyView.setText(R.string.bookmarks_folder_empty);
    mItemsContainer.setEmptyView(emptyView);
    mActionBar = (BookmarkActionBar) findViewById(R.id.bookmark_action_bar);
    mLoadingView = (LoadingView) findViewById(R.id.bookmark_initial_loading_view);
    FadingShadowView shadow = (FadingShadowView) findViewById(R.id.shadow);
    if (DeviceFormFactor.isLargeTablet(getContext())) {
        shadow.setVisibility(View.GONE);
    } else {
        shadow.init(ApiCompatibilityUtils.getColor(getResources(),
                R.color.toolbar_shadow_color), FadingShadow.POSITION_TOP);
    }
}
 
開發者ID:rkshuai,項目名稱:chromium-for-android-56-debug-video,代碼行數:18,代碼來源:BookmarkContentView.java

示例2: LogoView

import org.chromium.chrome.browser.widget.LoadingView; //導入依賴的package包/類
/**
 * Constructor used to inflate a LogoView from XML.
 */
public LogoView(Context context, AttributeSet attrs) {
    super(context, attrs);

    mLogo = getDefaultLogo();
    mLogoMatrix = new Matrix();
    mLogoIsDefault = true;

    mPaint = new Paint();
    mPaint.setFilterBitmap(true);

    // Mark this view as non-clickable so that accessibility will ignore it. When a non-default
    // logo is shown, this view will be marked clickable again.
    setOnClickListener(this);
    setClickable(false);
    setWillNotDraw(false);

    mLoadingView = new LoadingView(getContext());
    LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
    lp.gravity = Gravity.CENTER;
    mLoadingView.setLayoutParams(lp);
    mLoadingView.setVisibility(View.GONE);
    addView(mLoadingView);
}
 
開發者ID:rkshuai,項目名稱:chromium-for-android-56-debug-video,代碼行數:27,代碼來源:LogoView.java

示例3: onFinishInflate

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

    LayoutInflater.from(getContext()).inflate(R.layout.selectable_list_layout, this);

    mEmptyView = (TextView) findViewById(R.id.empty_view);
    mLoadingView = (LoadingView) findViewById(R.id.loading_view);
    mLoadingView.showLoadingUI();

    mToolbarStub = (ViewStub) findViewById(R.id.action_bar_stub);

    FadingShadowView shadow = (FadingShadowView) findViewById(R.id.shadow);
    if (DeviceFormFactor.isLargeTablet(getContext())) {
        shadow.setVisibility(View.GONE);
    } else {
        shadow.init(ApiCompatibilityUtils.getColor(getResources(),
                R.color.toolbar_shadow_color), FadingShadow.POSITION_TOP);
    }
}
 
開發者ID:rkshuai,項目名稱:chromium-for-android-56-debug-video,代碼行數:21,代碼來源:SelectableListLayout.java

示例4: onFinishInflate

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

    LayoutInflater.from(getContext()).inflate(R.layout.selectable_list_layout, this);

    // TODO(twellington): Remove this fork in the code after UX decides on final design
    // for empty and loading views.
    mChromeHomeEmptyAndLoadingViewTopPadding =
            getResources().getDimensionPixelSize(R.dimen.chrome_home_empty_view_top_padding);

    mEmptyView = (TextView) findViewById(R.id.empty_view);
    setEmptyOrLoadingViewStyle(mEmptyView);
    mLoadingView = (LoadingView) findViewById(R.id.loading_view);
    setEmptyOrLoadingViewStyle(mLoadingView);
    mLoadingView.showLoadingUI();

    mToolbarStub = (ViewStub) findViewById(R.id.action_bar_stub);

    setFocusable(true);
    setFocusableInTouchMode(true);
}
 
開發者ID:mogoweb,項目名稱:365browser,代碼行數:23,代碼來源:SelectableListLayout.java


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