Skip to content

Commit

Permalink
Adding the new live Wallpaper demos
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmcdonagh committed Feb 11, 2010
1 parent 97c36e3 commit 967ea4b
Show file tree
Hide file tree
Showing 31 changed files with 804 additions and 0 deletions.
1 change: 1 addition & 0 deletions Livewallpaper/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Since Android 2.1
24 changes: 24 additions & 0 deletions Livewallpaper/switch_animation/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.novoda.wallpaper">

<uses-sdk android:minSdkVersion="7"
android:targetSdkVersion="7"/>

<application
android:label="@string/wallpapers"
android:icon="@drawable/ic_launcher_wallpaper">

<service
android:label="@string/title"
android:name=".AnimSwitchWallPaper"
android:permission="android.permission.BIND_WALLPAPER">
<intent-filter>
<action android:name="android.service.wallpaper.WallpaperService" />
</intent-filter>
<meta-data android:name="android.service.wallpaper" android:resource="@xml/wallpaper" />
</service>

</application>
</manifest>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
121 changes: 121 additions & 0 deletions Livewallpaper/switch_animation/res/values/shapes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 4008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->

<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">

<string-array name="cube2_shapenames">
<item>"Cube"</item>
<item>"Dodecahedron"</item>
</string-array>

<string-array name="cube2_shapeprefix">
<item>"cube"</item>
<item>"dodecahedron"</item>
</string-array>

<!-- x,y,z tuples for the points defining the object -->
<!-- stored as strings for easier human readability -->
<string-array name="cubepoints">
<item>"-400 -400 -400"</item>
<item>"400 -400 -400"</item>
<item>"400 400 -400"</item>
<item>"-400 400 -400"</item>
<item>"-400 -400 400"</item>
<item>"400 -400 400"</item>
<item>"400 400 400"</item>
<item>"-400 400 400"</item>
</string-array>

<!-- start,end point index tuples of the lines defining the object -->
<string-array name="cubelines">
<!-- lines forming one face -->
<item>"0 1"</item>
<item>"1 2"</item>
<item>"2 3"</item>
<item>"3 0"</item>

<!-- lines forming the opposite face -->
<item>"4 5"</item>
<item>"5 6"</item>
<item>"6 7"</item>
<item>"7 4"</item>

<!-- lines connecting the two faces -->
<item>"0 4"</item>
<item>"1 5"</item>
<item>"2 6"</item>
<item>"3 7"</item>
</string-array>

<string-array name="dodecahedronpoints">
<item>"333.850000 0.000000 437.250000"</item>
<item>"103.400000 317.350000 437.250000"</item>
<item>"-270.050000 196.350000 437.250000"</item>
<item>"-270.050000 -196.350000 437.250000"</item>
<item>"103.400000 -317.350000 437.250000"</item>
<item>"540.100000 0.000000 103.400000"</item>
<item>"167.200000 513.700000 103.400000"</item>
<item>"-437.250000 317.350000 103.400000"</item>
<item>"-437.250000 -317.350000 103.400000"</item>
<item>"167.200000 -513.700000 103.400000"</item>
<item>"437.250000 317.350000 -103.400000"</item>
<item>"-167.200000 513.700000 -103.400000"</item>
<item>"-540.100000 0.000000 -103.400000"</item>
<item>"-167.200000 -513.700000 -103.400000"</item>
<item>"437.250000 -317.350000 -103.400000"</item>
<item>"270.050000 196.350000 -437.250000"</item>
<item>"-103.400000 317.350000 -437.250000"</item>
<item>"-333.850000 0.000000 -437.250000"</item>
<item>"-103.400000 -317.350000 -437.250000"</item>
<item>"270.050000 -196.350000 -437.250000"</item>
</string-array>

<string-array name="dodecahedronlines">
<item>"0 1"</item>
<item>"0 4"</item>
<item>"0 5"</item>
<item>"1 2"</item>
<item>"1 6"</item>
<item>"2 3"</item>
<item>"2 7"</item>
<item>"3 4"</item>
<item>"3 8"</item>
<item>"4 9"</item>
<item>"5 10"</item>
<item>"5 14"</item>
<item>"6 10"</item>
<item>"6 11"</item>
<item>"7 11"</item>
<item>"7 12"</item>
<item>"8 12"</item>
<item>"8 13"</item>
<item>"9 13"</item>
<item>"9 14"</item>
<item>"10 15"</item>
<item>"11 16"</item>
<item>"12 17"</item>
<item>"13 18"</item>
<item>"14 19"</item>
<item>"15 16"</item>
<item>"15 19"</item>
<item>"16 17"</item>
<item>"17 18"</item>
<item>"18 19"</item>
</string-array>
</resources>
38 changes: 38 additions & 0 deletions Livewallpaper/switch_animation/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->

<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- General -->
<skip />
<!-- Application name -->
<string name="wallpapers">Outrun wallpaper</string>

<!-- Wallpaper showing a cube -->
<string name="title">Outrun</string>

<!-- Wallpaper showing a cube or dodecahedron, data read from resource -->
<string name="wallpaper_cube2">Cube - resource</string>

<!-- Wallpaper showing a cube, renderscript version -->
<string name="wallpaper_cube3">Cube - RenderScript</string>

<string name="cube2_settings">Settings</string>
<string name="cube2_settings_title">Select shape</string>
<string name="cube2_settings_summary">Choose whether to display a cube or a dodecahedron</string>
</resources>
22 changes: 22 additions & 0 deletions Livewallpaper/switch_animation/res/xml/wallpaper.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2009, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->

<!-- The attributes in this XML file provide configuration information -->

<wallpaper xmlns:android="http://schemas.android.com/apk/res/android"/>
Loading

0 comments on commit 967ea4b

Please sign in to comment.