List of usage examples for android.view Window FEATURE_INDETERMINATE_PROGRESS
int FEATURE_INDETERMINATE_PROGRESS
To view the source code for android.view Window FEATURE_INDETERMINATE_PROGRESS.
Click Source Link
From source file:ru.gkpromtech.exhibition.NavigationActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); if (isNavigationDrawerEnabled()) { setContentView(R.layout.activity_main); View drawer = findViewById(R.id.drawer_layout); mNavigationDrawerFragment = (NavigationDrawerFragment) getSupportFragmentManager() .findFragmentById(R.id.navigation_drawer); if (drawer != null) { // Set up the drawer. mNavigationDrawerFragment.setUp(R.id.navigation_drawer, (DrawerLayout) drawer); }/* w ww . j av a2 s .co m*/ } else { setContentView(R.layout.activity_main_no_nav); onNavigationDrawerShowView(getIntent().getIntExtra("position", 0)); } mTitle = getTitle(); }
From source file:prince.app.sphotos.Activity_Albums.java
@Override public void onCreate(Bundle oldState) { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(oldState); setContentView(R.layout.fb_album_activity); if (oldState == null) { getSupportFragmentManager().beginTransaction() .add(R.id.frame_fb_album_activity, new Fragment_Albums(), TAG).commit(); }/* w ww . j a v a 2 s .c om*/ if (oldState != null) { Boolean visible = oldState.getBoolean(GRID_VISIBLE); Fragment_Albums frag = (Fragment_Albums) Global.findFrag(this, TAG); if (frag != null) frag.setmGridVisible(visible); } // Enable Top Left Back Icon getActionBar().setDisplayHomeAsUpEnabled(true); }
From source file:com.fastbootmobile.encore.app.SearchActivity.java
@Override protected void onCreate(Bundle savedInstance) { super.onCreate(savedInstance); mHandler = new Handler(); supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.activity_search); mToolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(mToolbar);//from ww w. j a va2s . c om FragmentManager fm = getSupportFragmentManager(); mActiveFragment = (SearchFragment) fm.findFragmentByTag(TAG_FRAGMENT); if (mActiveFragment == null) { mActiveFragment = new SearchFragment(); fm.beginTransaction().add(R.id.search_container, mActiveFragment, TAG_FRAGMENT).commit(); } handleIntent(getIntent()); }
From source file:com.gark.aircraftviewer.ui.LicenseActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); // setContentView(R.layout.main); ////w ww.j av a 2 s . co m // mStatusText = (TextView) findViewById(R.id.status_text); // mCheckLicenseButton = (Button) findViewById(R.id.check_license_button); // mCheckLicenseButton.setOnClickListener(new View.OnClickListener() { // public void onClick(View view) { // doCheck(); // } // }); mHandler = new Handler(); // Try to use more data here. ANDROID_ID is a single point of attack. String deviceId = Secure.getString(getContentResolver(), Secure.ANDROID_ID); // Library calls this when it's done. mLicenseCheckerCallback = new MyLicenseCheckerCallback(); // Construct the LicenseChecker with a policy. mChecker = new LicenseChecker(this, new ServerManagedPolicy(this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); doCheck(); }
From source file:org.codecyprus.android_client.ui.ActivityScoreBoard.java
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.activity_score_board); scoreBoardTitle = (TextView) findViewById(R.id.activity_score_board_title); listView = (ListView) findViewById(R.id.activity_score_board_list_view); final ActionBar actionBar = getActionBar(); if (actionBar != null) actionBar.setDisplayHomeAsUpEnabled(true); progressReceiver = new ProgressReceiver(); }
From source file:org.onebusaway.android.ui.SituationActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); UIUtils.setupActionBar(this); FragmentManager fm = getSupportFragmentManager(); // Create the fragment and add it as our sole content. if (fm.findFragmentById(android.R.id.content) == null) { SituationFragment list = new SituationFragment(); list.setArguments(FragmentUtils.getIntentArgs(getIntent())); fm.beginTransaction().add(android.R.id.content, list).commit(); }/*from w w w . ja va2 s . c o m*/ }
From source file:li.barter.AbstractBarterLiActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { getWindow().requestFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); if (getActionBar() != null) { getActionBar().setDisplayOptions(ACTION_BAR_DISPLAY_MASK); setActionBarTitle(getTitle().toString()); }//from w w w .j av a 2 s .c om mRequestQueue = ((IVolleyHelper) getApplication()).getRequestQueue(); mImageLoader = ((IVolleyHelper) getApplication()).getImageLoader(); mRequestCounter = new AtomicInteger(0); setProgressBarIndeterminateVisibility(false); }
From source file:th.in.ffc.person.PersonDetailEditActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { if (getIntent().getAction().equals(Action.INSERT)) setCheckData(false);//from w w w. java 2s . c o m requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); setSupportProgressBarIndeterminateVisibility(false); setContentView(R.layout.default_scrollable_activity); Bundle args = new Bundle(); args.putString(PersonColumns._PCUCODEPERSON, getPcucodePerson()); args.putString(PersonColumns._PID, getPid()); args.putString("action", getIntent().getAction()); args.putString(Person.HCODE, getIntent().getStringExtra(Person.HCODE)); FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); Fragment pd = fm.findFragmentByTag("detail"); if (pd == null) { pd = Fragment.instantiate(this, PersonDetailEditFragment.class.getName(), args); ft.add(R.id.content, pd, "detail"); } ft.commit(); }
From source file:com.google.android.demos.jamendo.app.SearchActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.jamendo_list); Resources resources = getResources(); mImageSize = resources.getDimensionPixelSize(R.dimen.gallery_size); mResults = new Loadable(getSupportLoaderManager(), LOADER_SEARCH, new StatusViewManager(this, LOADER_SEARCH, this, this)); mAdapter = new SearchAdapter(this); ListView listView = (ListView) findViewById(android.R.id.list); listView.setAdapter(mAdapter);/*from www. jav a 2 s. co m*/ listView.setOnItemClickListener(this); Intent intent = getIntent(); String action = intent.getAction(); if (action.equals(Intent.ACTION_VIEW)) { // Forward intents from suggest system to correct activity // // TODO: Is there a way to force suggest system to // not set the component? intent.setComponent(null); startActivity(intent); finish(); } else { mResults.init(); } }
From source file:org.onebusaway.android.ui.ReportStopProblemActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); UIUtils.setupActionBar(this); FragmentManager fm = getSupportFragmentManager(); // Create the fragment and add it as our sole content. if (fm.findFragmentById(android.R.id.content) == null) { ReportStopProblemFragment list = new ReportStopProblemFragment(); list.setArguments(FragmentUtils.getIntentArgs(getIntent())); fm.beginTransaction().add(android.R.id.content, list).commit(); }//from w w w . j ava2 s . c o m }