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