List of usage examples for android.view Window FEATURE_ACTION_BAR_OVERLAY
int FEATURE_ACTION_BAR_OVERLAY
To view the source code for android.view Window FEATURE_ACTION_BAR_OVERLAY.
Click Source Link
From source file:com.klinker.android.twitter.activities.drawer_activities.discover.DiscoverPager.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = this; sharedPrefs = context.getSharedPreferences("com.klinker.android.twitter_world_preferences", 0); settings = AppSettings.getInstance(this); requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); setUpTheme();/*from w ww . ja v a2 s .co m*/ setContentView(R.layout.trends_activity); setUpDrawer(0, getResources().getString(R.string.trends)); actionBar = getActionBar(); actionBar.setTitle(getResources().getString(R.string.trends)); if (!settings.isTwitterLoggedIn) { Intent login = new Intent(context, LoginActivity.class); startActivity(login); finish(); } mSectionsPagerAdapter = new TrendsPagerAdapter(getFragmentManager(), context); mViewPager = (ViewPager) findViewById(R.id.pager); mViewPager.setAdapter(mSectionsPagerAdapter); mViewPager.setOverScrollMode(ViewPager.OVER_SCROLL_NEVER); mViewPager.setOffscreenPageLimit(3); if (settings.addonTheme) { PagerTitleStrip strip = (PagerTitleStrip) findViewById(R.id.pager_title_strip); strip.setBackgroundColor(settings.pagerTitleInt); } }
From source file:com.klinker.android.twitter.ui.drawer_activities.discover.DiscoverPager.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = this; sharedPrefs = context.getSharedPreferences("com.klinker.android.twitter_world_preferences", Context.MODE_WORLD_READABLE + Context.MODE_WORLD_WRITEABLE); settings = AppSettings.getInstance(this); requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); setUpTheme();//from w w w .j a v a 2 s.com setContentView(R.layout.trends_activity); setUpDrawer(3, getResources().getString(R.string.trends)); actionBar = getActionBar(); actionBar.setTitle(getResources().getString(R.string.trends)); if (!settings.isTwitterLoggedIn) { Intent login = new Intent(context, LoginActivity.class); startActivity(login); finish(); } mSectionsPagerAdapter = new TrendsPagerAdapter(getFragmentManager(), context); mViewPager = (ViewPager) findViewById(R.id.pager); mViewPager.setAdapter(mSectionsPagerAdapter); mViewPager.setOverScrollMode(ViewPager.OVER_SCROLL_NEVER); mViewPager.setOffscreenPageLimit(3); if (settings.addonTheme) { PagerTitleStrip strip = (PagerTitleStrip) findViewById(R.id.pager_title_strip); strip.setBackgroundColor(settings.pagerTitleInt); } }
From source file:com.battlelancer.seriesguide.ui.FullscreenImageActivity.java
/** * {@inheritDoc}/*from w w w .j av a2 s . co m*/ */ @Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); super.onCreate(savedInstanceState); setContentView(R.layout.activity_fullscreen_image); setupActionBar(); setupViews(); }
From source file:com.klinker.android.twitter.settings.configure_pages.ConfigurePagerActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = this; sharedPrefs = context.getSharedPreferences("com.klinker.android.twitter_world_preferences", Context.MODE_WORLD_READABLE + Context.MODE_WORLD_WRITEABLE); settings = AppSettings.getInstance(this); try {//from www. j a va 2 s . com requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); } catch (Throwable e) { // don't have a clue why } Utils.setUpTheme(context, settings); setContentView(R.layout.configuration_activity); setUpDoneDiscard(); actionBar = getActionBar(); if (!settings.isTwitterLoggedIn) { Intent login = new Intent(context, LoginActivity.class); startActivity(login); finish(); } mSectionsPagerAdapter = new ConfigurationPagerAdapter(getFragmentManager(), context); mViewPager = (ViewPager) findViewById(R.id.pager); mViewPager.setAdapter(mSectionsPagerAdapter); mViewPager.setOverScrollMode(ViewPager.OVER_SCROLL_NEVER); mViewPager.setOffscreenPageLimit(3); }
From source file:com.hero.fm.FileExplorerTabActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); if (USE_HTCSTYLE) { requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); SetupActionBar();//from w w w . j a va 2 s. co m } if (!USE_ACTIONBAR) getActionBar().hide(); super.onCreate(savedInstanceState); final int rootId = 1; FrameLayout viewRoot = new FrameLayout(this); viewRoot.setId(rootId); setContentView(viewRoot); mCarousel = new Carousel(); FragmentTransaction ft = getFragmentManager().beginTransaction(); ft.add(rootId, mCarousel); ft.commit(); registerForContextMenu(viewRoot); }
From source file:com.miz.mizuu.Actor.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (!MizLib.isPortrait(this)) if (isFullscreen()) setTheme(R.style.Theme_Example_NoBackGround_FullScreen); else/*from w ww . j a va2 s .co m*/ setTheme(R.style.Theme_Example_NoBackGround); getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY); setContentView(R.layout.viewpager); findViewById(R.id.layout).setBackgroundResource(R.drawable.bg); pbar = (ProgressBar) findViewById(R.id.progressbar); pbar.setVisibility(View.VISIBLE); actorId = getIntent().getExtras().getString("actorID"); actorName = getIntent().getExtras().getString("actorName"); setTitle(actorName); awesomePager = (ViewPager) findViewById(R.id.awesomepager); awesomePager.setOffscreenPageLimit(3); awesomePager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { @Override public void onPageSelected(int position) { actionBar.setSelectedNavigationItem(position); } }); if (savedInstanceState != null) { json = savedInstanceState.getString("json", ""); baseUrl = savedInstanceState.getString("baseUrl"); setupActionBarStuff(); awesomePager.setCurrentItem(savedInstanceState.getInt("tab", 0)); } else { new ActorLoader().execute(actorId); } }
From source file:com.google.android.apps.santatracker.games.common.GameActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); supportRequestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayShowTitleEnabled(false); actionBar.setHomeButtonEnabled(false); actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setBackgroundDrawable( new ColorDrawable(ContextCompat.getColor(this, android.R.color.transparent))); }/* ww w. j a v a2s . c o m*/ mGamesFragment = PlayGamesFragment.getInstance(this, this); mApiClient = new GoogleApiClient.Builder(this).addApi(AppIndex.APP_INDEX_API).build(); // add App Indexing API BASE_APP_URI = Uri.parse("android-app://" + getApplicationContext().getPackageName() + "/" + getResources().getString(R.string.santa_tracker_deep_link_prefix)); if (Utils.hasKitKat()) { ImmersiveModeHelper.setImmersiveSticky(getWindow()); ImmersiveModeHelper.installSystemUiVisibilityChangeListener(getWindow()); } }
From source file:de.stadtrallye.rallyesoft.PictureGalleryActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); setContentView(R.layout.activity_image_view); // Show the Up button in the action bar. actionBar = getActionBar();/*from w w w. j av a 2 s . c o m*/ actionBar.setDisplayHomeAsUpEnabled(true); pager = (GalleryPager) findViewById(R.id.image_pager); pager.setPageMargin(getResources().getDimensionPixelSize(R.dimen.pager_margin)); // server = Model.getInstance(getApplicationContext()); // Bundle b = getIntent().getExtras(); // chatroom = server.getChatroom(b.getInt(Std.CHATROOM)); // gallery = chatroom.getPictureGallery(b.getInt(Std.IMAGE)); String defaultSize = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()) .getString("default_download_size", null); gallery = (IPictureGallery) getIntent().getSerializableExtra(Std.PICTURE_GALLERY); gallery.setImageSize(PictureSize.fromString(defaultSize)); adapter = new ImageAdapter(); pager.setAdapter(adapter); pager.setCurrentItem(gallery.getInitialPosition()); }
From source file:com.twolinessoftware.smarterlist.activity.BaseActivity.java
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override/*from ww w .ja va2 s . c o m*/ protected void onCreate(final Bundle savedInstanceState) { getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY); getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS); supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); setContentView(getContentView()); if (getSupportActionBar() != null) { getSupportActionBar().setElevation(getResources().getDimensionPixelSize(R.dimen.toolbar_elevation)); getSupportActionBar().setHomeButtonEnabled(true); } Injector.inject(this); }
From source file:com.pickr.activities.PhotosPagerActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mHandler = new Handler(this); requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.activity_photos_pager); ActionBar actionBar = getActionBar(); actionBar.setTitle(null);//from ww w . j a va 2s . c o m actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#99333333"))); mPager = (ViewPager) findViewById(R.id.photosPager); mPager.setOnPageChangeListener(this); mPager.setPageMargin(10); }