Example usage for android.view Window FEATURE_INDETERMINATE_PROGRESS

List of usage examples for android.view Window FEATURE_INDETERMINATE_PROGRESS

Introduction

In this page you can find the example usage for android.view Window FEATURE_INDETERMINATE_PROGRESS.

Prototype

int FEATURE_INDETERMINATE_PROGRESS

To view the source code for android.view Window FEATURE_INDETERMINATE_PROGRESS.

Click Source Link

Document

Flag for indeterminate progress.

Usage

From source file:net.meiolania.apps.habrahabr.activities.HubsActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

    showActionBar();//from  w  ww  .  j a  va 2s  . c  om
}

From source file:com.foxykeep.datadroidpoc.ui.ws.PersonListActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

    setContentView(R.layout.person_list);
    bindViews();//from w  w  w  . j av a  2s .com

    getSupportLoaderManager().initLoader(0, null, this);
    mInflater = getLayoutInflater();
}

From source file:us.nineworlds.serenity.ui.activity.SerenityDrawerLayoutActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.HONEYCOMB_MR2) {
        supportRequestWindowFeature(Window.FEATURE_PROGRESS);
    }/*w  w  w  . ja  v a 2 s  .  c o m*/
    actionBar = getSupportActionBar();
    actionBar.setDisplayUseLogoEnabled(true);
    actionBar.setBackgroundDrawable(new ColorDrawable(R.color.card_background));
}

From source file:com.google.devrel.samples.memedroid.app.MainActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    setContentView(R.layout.activity_main);

    if (savedInstanceState == null) {
        getFragmentManager().beginTransaction().add(R.id.container, new StreamFragment(), TAG_STREAM).commit();
    }/*  www.j a va 2  s.co m*/
    if (savedInstanceState != null) {
        mPendingVote = savedInstanceState.getString(KEY_PENDING_VOTE);
    }

    getAccountName();
    invalidateOptionsMenu();
    mReceiver = new MemeReceiver(new Handler());
    mReceiver.setListener(this);
}

From source file:com.google.android.demos.jamendo.app.JamendoListActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    setContentView(R.layout.jamendo_list);

    mAdapter = new SimpleFeedAdapter(this, getLayout(), getFrom(), getTo());
    mItems = new Loadable(getSupportLoaderManager(), LOADER_LIST,
            new StatusViewManager(this, LOADER_LIST, this, this));

    ListView listView = (ListView) findViewById(android.R.id.list);
    listView.setAdapter(new ListDecorator(mAdapter, this));
    listView.setOnItemClickListener(this);
    listView.setOnScrollListener(new ListScrollListener(mItems));

    mItems.init();/*  w  w  w  .  j  ava  2  s  .c  om*/
}

From source file:com.nathanson.meterreader.activity.MainActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // enable progress bar in action bar.
    getWindow().requestFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

    setContentView(R.layout.activity_main);

    mNavigationDrawerFragment = (NavigationDrawerFragment) getFragmentManager()
            .findFragmentById(R.id.navigation_drawer);
    mTitle = getTitle();//  ww w. jav  a2  s . co m

    // Set up the drawer.
    mNavigationDrawerFragment.setUp(R.id.navigation_drawer, (DrawerLayout) findViewById(R.id.drawer_layout));
}

From source file:org.qeo.android.service.ui.MainActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    setContentView(R.layout.activity_single_fragment);

    if (savedInstanceState == null) {
        getSupportFragmentManager().beginTransaction().add(R.id.containerSingleFragment, new MainFragment())
                .commit();/*  w  w  w.  ja va  2  s . c o m*/
    }
    setTitle(R.string.title_info_activity);
}

From source file:org.codecyprus.android_client.ui.ActivityCategories.java

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    setContentView(R.layout.activity_categories);

    listView = (ListView) findViewById(R.id.activity_category_list_view);
    listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override/*from w  w  w.  j a v a2s .  co m*/
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            final Category category = categories[position];
            final SerializableSession serializableSession = Preferences.getSession(ActivityCategories.this,
                    category.getUUID());
            if (serializableSession != null) {
                new DialogResumeOrClear(ActivityCategories.this, serializableSession, category).show();
            } else {
                final Intent startQuizIntent = new Intent(ActivityCategories.this, ActivityStartQuiz.class);
                startQuizIntent.putExtra(ActivityStartQuiz.EXTRA_CATEGORY, category);
                startActivity(startQuizIntent);
            }
        }
    });

    final ActionBar actionBar = getActionBar();
    if (actionBar != null)
        actionBar.setDisplayHomeAsUpEnabled(true);

    progressReceiver = new ProgressReceiver();
}

From source file:ws.logv.trainmonitor.ui.MainActivity.java

@Override
protected synchronized void onCreate(Bundle savedInstanceState) {
    setTheme(R.style.Theme_Sherlock);//from  w ww  .j a  va 2 s. c o  m

    super.onCreate(savedInstanceState);
    PreferenceManager.setDefaultValues(this, R.xml.settings, false);
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    WindowMediator.setOnRefreshStateRequestHandler(new OnRefreshRequestStateHandler() {
        @Override
        public void onRefreshStart() {
            setProgressBarIndeterminateVisibility(true);
        }

        @Override
        public void onRefreshEnd() {
            setProgressBarIndeterminateVisibility(false);
        }
    });

    setContentView(R.layout.activity_main);

    mBus.postSticky(new ShowDisclaimerEvent());
}

From source file:app.philm.in.BasePhilmActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    Crashlytics.start(this);

    // Request Progress Bar in Action Bar
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

    setContentView(getContentViewLayoutId());

    mCardContainer = findViewById(R.id.card_container);

    mInsetFrameLayout = (InsetFrameLayout) findViewById(R.id.fl_insets);
    if (mInsetFrameLayout != null) {
        mInsetFrameLayout.setOnInsetsCallback(this);
    }// w  w w. j a v  a 2  s . c om

    mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
    if (mDrawerLayout != null) {
        mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, R.drawable.ic_drawer,
                R.string.drawer_open_content_desc, R.string.drawer_closed_content_desc);
        mDrawerLayout.setDrawerListener(mDrawerToggle);

        final ActionBar ab = getActionBar();
        if (ab != null) {
            ab.setDisplayHomeAsUpEnabled(true);
            ab.setHomeButtonEnabled(true);
        }
    }

    // Let SuperCardToast restore itself
    SuperCardToast.onRestoreState(savedInstanceState, this);

    mMainController = PhilmApplication.from(this).getMainController();

    mDisplay = new AndroidDisplay(this, mDrawerToggle, mDrawerLayout, mInsetFrameLayout);

    handleIntent(getIntent(), getDisplay());
}