Search in sources :

Example 56 with ProgressBar

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);
}
Also used : TextView(android.widget.TextView) ImageView(android.widget.ImageView) View(android.view.View) TransformableView(com.android.systemui.statusbar.TransformableView) ProgressBar(android.widget.ProgressBar)

Example 57 with ProgressBar

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);
}
Also used : ProgressBar(android.widget.ProgressBar)

Example 58 with ProgressBar

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);
}
Also used : ProgressBar(android.widget.ProgressBar)

Example 59 with ProgressBar

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);
}
Also used : LayoutParams(android.widget.LinearLayout.LayoutParams) ProgressBar(android.widget.ProgressBar) View(android.view.View) LinearLayout(android.widget.LinearLayout)

Example 60 with ProgressBar

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);
}
Also used : LayoutParams(android.widget.LinearLayout.LayoutParams) ProgressBar(android.widget.ProgressBar) LinearLayout(android.widget.LinearLayout)

Aggregations

ProgressBar (android.widget.ProgressBar)193 TextView (android.widget.TextView)66 View (android.view.View)63 ImageView (android.widget.ImageView)41 LinearLayout (android.widget.LinearLayout)30 Context (android.content.Context)18 ViewGroup (android.view.ViewGroup)16 WindowManager (android.view.WindowManager)14 FrameLayout (android.widget.FrameLayout)14 Drawable (android.graphics.drawable.Drawable)13 Dialog (android.app.Dialog)12 Button (android.widget.Button)12 RelativeLayout (android.widget.RelativeLayout)12 LayoutInflater (android.view.LayoutInflater)11 SuppressLint (android.annotation.SuppressLint)10 LayoutParams (android.widget.LinearLayout.LayoutParams)9 Intent (android.content.Intent)8 LayoutParams (android.view.ViewGroup.LayoutParams)8 AlertDialog (android.app.AlertDialog)7 TypedArray (android.content.res.TypedArray)7