Skip to content

Commit

Permalink
Change Style themes
Browse files Browse the repository at this point in the history
Signed-off-by: nobunobuta <[email protected]>
  • Loading branch information
nobunobuta committed Jan 28, 2010
1 parent 4f1876c commit da2014c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

<activity android:name="DeskClock"
android:label="@string/app_label"
android:theme="@style/Theme.Wallpaper.NoTitleBar"
android:icon="@drawable/ic_widget_analog_clock"
android:launchMode="singleInstance"
android:configChanges="orientation|keyboardHidden|keyboard|navigation">
Expand Down Expand Up @@ -67,6 +68,7 @@
with the wallpaper background. -->
<activity android:name="AlarmAlertFullScreen"
android:excludeFromRecents="true"
android:theme="@style/Theme.Wallpaper.NoTitleBar"
android:launchMode="singleInstance"
android:taskAffinity=""
android:configChanges="orientation|keyboardHidden|keyboard|navigation"/>
Expand Down
26 changes: 26 additions & 0 deletions res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>
<!-- Default theme for windows that want to have the user's selected
wallpaper appear behind them. -->
<style name="Theme.Wallpaper" parent="android:Theme">
<item name="android:windowBackground">@android:color/transparent</item>
<!--
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowShowWallpaper">true</item>
-->
</style>

<!-- Variant of the translucent theme with no title bar -->
<style name="Theme.Wallpaper.NoTitleBar">
<item name="android:windowNoTitle">true</item>
</style>

<!-- Variant of the translucent theme that has no title bar and
fills the entire screen -->
<style name="Theme.Wallpaper.NoTitleBar.Fullscreen">
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
</resources>

0 comments on commit da2014c

Please sign in to comment.