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:org.anhonesteffort.flock.ImportCalendarsActivity.java

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

    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    requestWindowFeature(Window.FEATURE_PROGRESS);

    setContentView(R.layout.activity_with_action_button);
    getActionBar().setDisplayHomeAsUpEnabled(true);
    getActionBar().setTitle(R.string.title_import_calendars);

    FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
    Fragment importCalendarsFragment = new ImportCalendarsFragment();

    importCalendarsFragment.setHasOptionsMenu(false);
    fragmentTransaction.replace(R.id.fragment_view, importCalendarsFragment);
    fragmentTransaction.commit();/*from w  w w.  j  ava2  s. c  o m*/
}

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

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

    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

    showActionBar();/*from  w w w .j a va2  s  . c  om*/
    loadPeopleList();
}

From source file:jupiter.broadcasting.live.holo.Catalogue.java

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    final Vector<String> fileArray = new Vector<String>();
    final Vector<String> type = new Vector<String>();
    final Vector<String> path = new Vector<String>();

    supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    setContentView(R.layout.episodelist_fragment);
    getSupportActionBar().setTitle(R.string.cat);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    getSupportActionBar().setHomeButtonEnabled(true);

    catList = (ListView) findViewById(R.id.episodelist);
    catList.setOnItemLongClickListener(liListener);

    cadapter = new CatalogueAdapter(getApplicationContext());

    File fileList = new File(
            Environment.getExternalStorageDirectory() + "/" + Environment.DIRECTORY_PODCASTS + "/JB");
    File[] filenames = fileList.listFiles();
    if (filenames != null) {
        for (File tmpf : filenames) {
            if (tmpf.toString().contains(".mp3")) {
                path.add(tmpf.toString());
                String curName = tmpf.toString().split("/")[tmpf.toString().split("/").length - 1];
                fileArray.add(curName.split(".mp3")[0]);
                type.add(getString(R.string.audio));
                cadapter.add(curName.split(".mp3")[0], 0);
            } else if (tmpf.toString().contains(".mp4")) {
                path.add(tmpf.toString());
                String curName = tmpf.toString().split("/")[tmpf.toString().split("/").length - 1];
                fileArray.add(curName.split(".mp4")[0]);
                type.add(getString(R.string.video));
                cadapter.add(curName.split(".mp4")[0], 1);
            }//  w ww . j  a va2s  .  c o  m
        }
    }

    catList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            if (mActionMode == null) {
                Intent p = new Intent(getBaseContext(), JBPlayer.class);

                p.putExtra("title", fileArray.get(position));
                p.putExtra("offline", true);
                p.putExtra("loc", path.get(position));
                int t = type.get(position).equalsIgnoreCase(getString(R.string.audio)) ? 0 : 1;
                p.putExtra("type", t);
                startActivity(p);
            } else {
                cadapter.change(position, true);
            }
        }
    });
    catList.setAdapter(cadapter);
}

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

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

    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

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

From source file:com.pinkwerther.support.activities.PinkwertherFragmentActivity.java

@Override
protected void onCreate(Bundle arg0) {
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    setContentView(R.layout.vertical_adbottom);
    super.onCreate(arg0);
    pwSupport = getPinkwertherSupport();
    if (arg0 == null)
        getSupportFragmentManager().beginTransaction().add(pwSupport, "PinkwertherSupport").commit();
}

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

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

    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

    loadExtras();//from  w  w  w . j a  v  a 2 s  . com
    showActionBar();
    loadSearchedQuestions();
}

From source file:org.onebusaway.android.ui.SearchActivity.java

@Override
public void onCreate(Bundle savedInstanceState) {
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    super.onCreate(savedInstanceState);
    UIUtils.setupActionBar(this);
    handleIntent(getIntent());//ww w .ja  v a2  s .com
}

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

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

    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

    loadExtras();/*from   w w w.  j  a v  a 2s.  co m*/
    showActionBar();
    loadSearchedPosts();
}

From source file:org.mariotaku.twidere.activity.BrowserActivity.java

@Override
public void onCreate(final Bundle savedInstanceState) {
    requestSupportWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.base);/*from ww  w  .j  av a 2s .  c  o  m*/
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    mUri = getIntent().getData();
    if (mUri == null) {
        Toast.makeText(this, R.string.error_occurred, Toast.LENGTH_SHORT).show();
        finish();
        return;
    }
    final FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
    final Fragment fragment = Fragment.instantiate(this, WebViewFragment.class.getName());
    final Bundle bundle = new Bundle();
    bundle.putString(INTENT_KEY_URI, mUri.toString());
    fragment.setArguments(bundle);
    ft.replace(R.id.main, fragment);
    ft.commit();
}

From source file:com.github.jobs.ui.activity.BaseActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    super.onCreate(savedInstanceState);
    ((GithubJobsApplication) getApplication()).inject(this);
}