Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

up

  • Loading branch information...
commit e36deca12a0e6a53aa0548aa2f4bbd2d0c260149 1 parent 64f59c8
@lllllT authored
Showing with 186 additions and 0 deletions.
  1. +7 −0 skin/sample/.classpath
  2. +2 −0  skin/sample/.cvsignore
  3. +33 −0 skin/sample/.project
  4. +19 −0 skin/sample/AndroidManifest.xml
  5. +11 −0 skin/sample/default.properties
  6. BIN  skin/sample/res/drawable-hdpi/icon.png
  7. BIN  skin/sample/res/drawable-ldpi/icon.png
  8. BIN  skin/sample/res/drawable/awake.png
  9. BIN  skin/sample/res/drawable/down1.png
  10. BIN  skin/sample/res/drawable/down2.png
  11. BIN  skin/sample/res/drawable/dwleft1.png
  12. BIN  skin/sample/res/drawable/dwleft2.png
  13. BIN  skin/sample/res/drawable/dwright1.png
  14. BIN  skin/sample/res/drawable/dwright2.png
  15. 0  skin/sample/res/{drawable-mdpi → drawable}/icon.png
  16. BIN  skin/sample/res/drawable/left1.png
  17. BIN  skin/sample/res/drawable/left2.png
  18. BIN  skin/sample/res/drawable/right1.png
  19. BIN  skin/sample/res/drawable/right2.png
  20. BIN  skin/sample/res/drawable/stop.png
  21. BIN  skin/sample/res/drawable/up1.png
  22. BIN  skin/sample/res/drawable/up2.png
  23. BIN  skin/sample/res/drawable/upleft1.png
  24. BIN  skin/sample/res/drawable/upleft2.png
  25. BIN  skin/sample/res/drawable/upright1.png
  26. BIN  skin/sample/res/drawable/upright2.png
  27. BIN  skin/sample/res/drawable/wait.png
  28. BIN  skin/sample/res/drawable/wallleft1.png
  29. BIN  skin/sample/res/drawable/wallleft2.png
  30. BIN  skin/sample/res/drawable/wallright1.png
  31. BIN  skin/sample/res/drawable/wallright2.png
  32. +5 −0 skin/sample/res/values/strings.xml
  33. +94 −0 skin/sample/res/xml/skin.xml
  34. +15 −0 skin/sample/src/com/example/aneko/sample/SampleSkinActivity.java
View
7 skin/sample/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
View
2  skin/sample/.cvsignore
@@ -0,0 +1,2 @@
+bin
+gen
View
33 skin/sample/.project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>SampleSkin</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
19 skin/sample/AndroidManifest.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.example.aneko.sample"
+ android:versionCode="1"
+ android:versionName="1.0">
+
+ <uses-sdk android:minSdkVersion="5" />
+
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:name=".SampleSkinActivity"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="org.tamanegi.aneko.action.GET_SKIN" />
+ </intent-filter>
+ <meta-data android:name="org.tamanegi.aneko.skin"
+ android:resource="@xml/skin" />
+ </activity>
+ </application>
+</manifest>
View
11 skin/sample/default.properties
@@ -0,0 +1,11 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-5
View
BIN  skin/sample/res/drawable-hdpi/icon.png
Deleted file not rendered
View
BIN  skin/sample/res/drawable-ldpi/icon.png
Deleted file not rendered
View
BIN  skin/sample/res/drawable/awake.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/down1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/down2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/dwleft1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/dwleft2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/dwright1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/dwright2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  skin/sample/res/drawable-mdpi/icon.png → skin/sample/res/drawable/icon.png
File renamed without changes
View
BIN  skin/sample/res/drawable/left1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/left2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/right1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/right2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/stop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/up1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/up2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/upleft1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/upleft2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/upright1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/upright2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/wait.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/wallleft1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/wallleft2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/wallright1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  skin/sample/res/drawable/wallright2.png
Diff not rendered
View
5 skin/sample/res/values/strings.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">Hello World, SampleSkinActivity!</string>
+ <string name="app_name">SampleSkin</string>
+</resources>
View
94 skin/sample/res/xml/skin.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<motion-params acceleration="160"
+ maxVelocity="100"
+ deaccelerationDistance="60"
+ proximityDistance="10"
+ initialState="stop"
+ awakeState="awake"
+ moveStatePrefix="move"
+ wallStatePrefix="wall"
+ >
+ <motion state="stop" nextState="wait" checkWall="true">
+ <item drawable="@drawable/stop" duration="5000" />
+ </motion>
+
+ <motion state="wait">
+ <item drawable="@drawable/wait" />
+ </motion>
+
+ <motion state="awake" nextState="stop" checkMove="true">
+ <item drawable="@drawable/awake" duration="750" />
+ </motion>
+
+ <motion state="moveUp">
+ <repeat-item>
+ <item drawable="@drawable/up1" duration="250" />
+ <item drawable="@drawable/up2" duration="250" />
+ </repeat-item>
+ </motion>
+
+ <motion state="moveDown">
+ <repeat-item>
+ <item drawable="@drawable/down1" duration="250" />
+ <item drawable="@drawable/down2" duration="250" />
+ </repeat-item>
+ </motion>
+
+ <motion state="moveLeft">
+ <repeat-item>
+ <item drawable="@drawable/left1" duration="250" />
+ <item drawable="@drawable/left2" duration="250" />
+ </repeat-item>
+ </motion>
+
+ <motion state="moveRight">
+ <repeat-item>
+ <item drawable="@drawable/right1" duration="250" />
+ <item drawable="@drawable/right2" duration="250" />
+ </repeat-item>
+ </motion>
+
+ <motion state="moveUpLeft">
+ <repeat-item>
+ <item drawable="@drawable/upleft1" duration="250" />
+ <item drawable="@drawable/upleft2" duration="250" />
+ </repeat-item>
+ </motion>
+
+ <motion state="moveUpRight">
+ <repeat-item>
+ <item drawable="@drawable/upright1" duration="250" />
+ <item drawable="@drawable/upright2" duration="250" />
+ </repeat-item>
+ </motion>
+
+ <motion state="moveDownRight">
+ <repeat-item>
+ <item drawable="@drawable/dwright1" duration="250" />
+ <item drawable="@drawable/dwright2" duration="250" />
+ </repeat-item>
+ </motion>
+
+ <motion state="moveDownLeft">
+ <repeat-item>
+ <item drawable="@drawable/dwleft1" duration="250" />
+ <item drawable="@drawable/dwleft2" duration="250" />
+ </repeat-item>
+ </motion>
+
+ <!-- optional: when left side of display -->
+ <motion state="wallLeft" nextState="wait">
+ <repeat-item repeatCount="3">
+ <item drawable="@drawable/wallleft1" duration="250" />
+ <item drawable="@drawable/wallleft2" duration="250" />
+ </repeat-item>
+ </motion>
+
+ <!-- optional: when right side of display -->
+ <motion state="wallRight" nextState="wait">
+ <repeat-item repeatCount="3">
+ <item drawable="@drawable/wallright1" duration="250" />
+ <item drawable="@drawable/wallright2" duration="250" />
+ </repeat-item>
+ </motion>
+</motion-params>
View
15 skin/sample/src/com/example/aneko/sample/SampleSkinActivity.java
@@ -0,0 +1,15 @@
+package com.example.aneko.sample;
+
+import android.app.Activity;
+import android.os.Bundle;
+
+public class SampleSkinActivity extends Activity
+{
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ // nothing to do: just for place holder
+ finish();
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.