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


Java ContentLoadingProgressBar.show方法代碼示例

本文整理匯總了Java中android.support.v4.widget.ContentLoadingProgressBar.show方法的典型用法代碼示例。如果您正苦於以下問題:Java ContentLoadingProgressBar.show方法的具體用法?Java ContentLoadingProgressBar.show怎麽用?Java ContentLoadingProgressBar.show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.support.v4.widget.ContentLoadingProgressBar的用法示例。


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

示例1: initView

import android.support.v4.widget.ContentLoadingProgressBar; //導入方法依賴的package包/類
private void initView() {
    mSelectedApplicationInfos = new HashSet<>();
    mLoadingProgressBar = (ContentLoadingProgressBar) findViewById(R.id.loading);

    mAppListView = (RecyclerView) findViewById(R.id.app_list);

    mLoadingProgressBar.show();
    final Handler handler = new Handler();
    new Thread(new Runnable() {
        @Override
        public void run() {
            queryFilterAppInfo();
            querySelectedApp();
            handler.post(new Runnable() {
                @Override
                public void run() {
                    mLoadingProgressBar.hide();
                    initAppList();
                    mAppListView.setVisibility(View.VISIBLE);
                }
            });
        }
    }).start();
}
 
開發者ID:l465659833,項目名稱:Bigbang,代碼行數:25,代碼來源:FloatViewWhiteListActivity.java

示例2: onCreate

import android.support.v4.widget.ContentLoadingProgressBar; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_main);

	mProgressBar = (HorizontalProgressBar) findViewById(R.id.id_progressbar01);
	mHandler.sendEmptyMessage(MSG_PROGRESS_UPDATE);

	ContentLoadingProgressBar content_progress_bar = (ContentLoadingProgressBar) findViewById(R.id.content_progress_bar);
	content_progress_bar.show();

}
 
開發者ID:xu6148152,項目名稱:binea_project_for_android,代碼行數:13,代碼來源:MainActivity.java

示例3: onCreate

import android.support.v4.widget.ContentLoadingProgressBar; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    getWindow().setBackgroundDrawableResource(R.color.atlas_image_popup_background);
    setContentView(R.layout.atlas_image_popup);
    mImageView = (SubsamplingScaleImageView) findViewById(R.id.image_popup);
    mProgressBar = (ContentLoadingProgressBar) findViewById(R.id.image_popup_progress);

    mImageView.setPanEnabled(true);
    mImageView.setZoomEnabled(true);
    mImageView.setDoubleTapZoomDpi(160);
    mImageView.setMinimumDpi(80);
    mImageView.setBitmapDecoderClass(MessagePartDecoder.class);
    mImageView.setRegionDecoderClass(MessagePartRegionDecoder.class);

    Intent intent = getIntent();
    if (intent == null) return;
    mMessagePartId = intent.getParcelableExtra("fullId");
    Uri previewId = intent.getParcelableExtra("previewId");
    ThreePartImageCellFactory.Info info = intent.getParcelableExtra("info");

    mProgressBar.show();
    if (previewId != null && info != null) {
        // ThreePartImage
        switch (info.orientation) {
            case ThreePartImageUtils.ORIENTATION_0:
                mImageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_0);
                mImageView.setImage(
                        ImageSource.uri(mMessagePartId).dimensions(info.width, info.height),
                        ImageSource.uri(previewId));
                break;
            case ThreePartImageUtils.ORIENTATION_90:
                mImageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_270);
                mImageView.setImage(
                        ImageSource.uri(mMessagePartId).dimensions(info.height, info.width),
                        ImageSource.uri(previewId));
                break;
            case ThreePartImageUtils.ORIENTATION_180:
                mImageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_180);
                mImageView.setImage(
                        ImageSource.uri(mMessagePartId).dimensions(info.width, info.height),
                        ImageSource.uri(previewId));
                break;
            case ThreePartImageUtils.ORIENTATION_270:
                mImageView.setOrientation(SubsamplingScaleImageView.ORIENTATION_90);
                mImageView.setImage(
                        ImageSource.uri(mMessagePartId).dimensions(info.height, info.width),
                        ImageSource.uri(previewId));
                break;
        }
    } else {
        // SinglePartImage
        mImageView.setImage(ImageSource.uri(mMessagePartId));
    }
    mImageView.setOnImageEventListener(this);
}
 
開發者ID:layerhq,項目名稱:Atlas-Android,代碼行數:58,代碼來源:AtlasImagePopupActivity.java


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