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:net.meiolania.apps.habrahabr.activities.HubsShowActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); loadExtras();//from ww w. j a v a2s .c o m showActionBar(); loadHubsPosts(); }
From source file:com.bukanir.android.activities.SearchActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { Log.d(TAG, "onCreate"); super.onCreate(savedInstanceState); supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.activity_movie_list); if (findViewById(R.id.movie_container) != null) { twoPane = true;//from w ww. j a v a2s .c o m } if (savedInstanceState != null) { movies = (ArrayList<Movie>) savedInstanceState.getSerializable("search"); } else { Bundle bundle = getIntent().getExtras(); movies = (ArrayList<Movie>) bundle.get("search"); } final ActionBar actionBar = getSupportActionBar(); actionBar.setDisplayShowTitleEnabled(true); actionBar.setDisplayHomeAsUpEnabled(true); beginTransaction(movies); }
From source file:com.wuman.androidimageloader.samples.BaseActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); }
From source file:com.dwdesign.tweetings.activity.BrowserActivity.java
@Override public void onCreate(final Bundle savedInstanceState) { requestSupportWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); setContentView(new FrameLayout(this)); getSupportActionBar().setDisplayHomeAsUpEnabled(true); mUri = getIntent().getData();//w w w . java 2 s . c om 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(android.R.id.content, fragment); ft.commit(); }
From source file:com.f2prateek.xkcd.ui.base.BaseActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Perform injection so that when this call returns all dependencies will be available for use. ((XKCDApplication) getApplication()).inject(this); // All activities will require this requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); }
From source file:net.meiolania.apps.habrahabr.activities.HubsSearchActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); loadExtras();/*w w w. j a va2 s .com*/ showActionBar(); loadSearchedHubs(); }
From source file:com.blandware.android.atleap.sample.ui.MainActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.activity_main); }
From source file:net.meiolania.apps.habrahabr.activities.UsersSearchActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); loadExtras();/* w w w. j a v a2s . c o m*/ showActionBar(); loadSearchedPeople(); }
From source file:com.pocketsoap.admin.BaseFragmentActivity.java
@Override public void onCreate(Bundle state) { super.onCreate(state); helper = new ActivityHelper(this); getWindow().requestFeature(Window.FEATURE_INDETERMINATE_PROGRESS); }
From source file:semanticweb.hws14.movapp.activities.Criteria.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.activity_criteria); that = this;/* w w w . j a v a2 s. c om*/ initCriteriaView(); //Get the Tabpager criteriaPagerAdapter = new CriteriaPagerAdapter(getSupportFragmentManager()); mViewPager = (ViewPager) findViewById(R.id.pager); mViewPager.setAdapter(criteriaPagerAdapter); mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { @Override public void onPageSelected(int position) { getActionBar().setSelectedNavigationItem(position); } }); ActionBar actionBar = getActionBar(); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); // Create a tab listener that is called when the user changes tabs. ActionBar.TabListener tabListener = new ActionBar.TabListener() { public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { mViewPager.setCurrentItem(tab.getPosition()); tabPosition = tab.getPosition(); } public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) { // hide the given tab } public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) { // probably ignore this event } }; //add the two tabs actionBar.addTab(actionBar.newTab().setText("Movies").setTabListener(tabListener)); actionBar.addTab(actionBar.newTab().setText("Actors").setTabListener(tabListener)); }