use of android.widget.ProgressBar in project android_frameworks_base by DirtyUnicorns.
the class NotificationTemplateViewWrapper method resolveTemplateViews.
private void resolveTemplateViews(StatusBarNotification notification) {
mPicture = (ImageView) mView.findViewById(com.android.internal.R.id.right_icon);
mPicture.setTag(ImageTransformState.ICON_TAG, notification.getNotification().getLargeIcon());
mTitle = (TextView) mView.findViewById(com.android.internal.R.id.title);
mText = (TextView) mView.findViewById(com.android.internal.R.id.text);
final View progress = mView.findViewById(com.android.internal.R.id.progress);
if (progress instanceof ProgressBar) {
mProgressBar = (ProgressBar) progress;
} else {
// It's still a viewstub
mProgressBar = null;
}
mActionsContainer = mView.findViewById(com.android.internal.R.id.actions_container);
}
use of android.widget.ProgressBar in project WordPress-Android by wordpress-mobile.
the class ReaderSubsActivity method showProgress.
/*
* called prior to following to show progress and disable controls
*/
private void showProgress() {
final ProgressBar progress = (ProgressBar) findViewById(R.id.progress_follow);
progress.setVisibility(View.VISIBLE);
mEditAdd.setEnabled(false);
mBtnAdd.setEnabled(false);
}
use of android.widget.ProgressBar in project WordPress-Android by wordpress-mobile.
the class ReaderSubsActivity method hideProgress.
/*
* called after following to hide progress and re-enable controls
*/
private void hideProgress() {
final ProgressBar progress = (ProgressBar) findViewById(R.id.progress_follow);
progress.setVisibility(View.GONE);
mEditAdd.setEnabled(true);
mBtnAdd.setEnabled(true);
}
use of android.widget.ProgressBar in project android_frameworks_base by DirtyUnicorns.
the class RevealActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
ProgressBar spinner = new ProgressBar(this, null, android.R.attr.progressBarStyleLarge);
layout.addView(spinner, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
View revealView = new MyView(this);
layout.addView(revealView, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
setContentView(layout);
revealView.setOnClickListener(this);
}
use of android.widget.ProgressBar in project android_frameworks_base by DirtyUnicorns.
the class CirclePropActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
ProgressBar spinner = new ProgressBar(this, null, android.R.attr.progressBarStyleLarge);
layout.addView(spinner, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
// For testing with a functor in the tree
// WebView wv = new WebView(this);
// wv.setWebViewClient(new WebViewClient());
// wv.setWebChromeClient(new WebChromeClient());
// wv.loadUrl("http://theverge.com");
// layout.addView(wv, new LayoutParams(LayoutParams.MATCH_PARENT, 100));
layout.addView(new CircleView(this), new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
setContentView(layout);
}
Aggregations