Skip to content

Instantly share code, notes, and snippets.

@ChrisRisner
Last active December 24, 2015 15:29
Show Gist options
  • Save ChrisRisner/6820727 to your computer and use it in GitHub Desktop.
Save ChrisRisner/6820727 to your computer and use it in GitHub Desktop.
<style name="ActionBarStyle" parent="android:style/Widget.Holo.Light.ActionBar">
<item name="android:colorBackground">@color/dull_purple</item>
<item name="android:background">@color/dull_purple</item>
<item name="android:textColor">@android:color/white</item>
<item name="android:titleTextStyle">@style/TitleTextStyle</item>
</style>
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
</resources>
@Override
protected void onCreate(Bundle savedInstanceState) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
super.onCreate(savedInstanceState, true);
setContentView(R.layout.activity_pies_list);
// Show the Up button in the action bar.
setupActionBar();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment