diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-01-15 16:12:07 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-01-15 16:12:07 -0800 |
commit | b8d704a517c8a838e42dde314c7f6acdcc981e53 (patch) | |
tree | f6e90b3fb32e2b3b2c2b5a60c48f007dba845457 /samples/Snake | |
parent | 95cf464c5a9f2bb7d6bf3a231862323dcbf854f8 (diff) | |
download | android_development-b8d704a517c8a838e42dde314c7f6acdcc981e53.tar.gz android_development-b8d704a517c8a838e42dde314c7f6acdcc981e53.tar.bz2 android_development-b8d704a517c8a838e42dde314c7f6acdcc981e53.zip |
auto import from //branches/cupcake/...@126645
Diffstat (limited to 'samples/Snake')
4 files changed, 5 insertions, 6 deletions
diff --git a/samples/Snake/AndroidManifest.xml b/samples/Snake/AndroidManifest.xml index ce9b50b94..174e8b4be 100644 --- a/samples/Snake/AndroidManifest.xml +++ b/samples/Snake/AndroidManifest.xml @@ -22,7 +22,9 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.android.snake"> <application android:label="Snake on a Phone"> - <activity android:name="Snake"> + <activity android:name="Snake" + android:screenOrientation="portrait" + android:configChanges="keyboardHidden|orientation"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> diff --git a/samples/Snake/res/layout/snake_layout.xml b/samples/Snake/res/layout/snake_layout.xml index 92d97ad1b..583c0c44d 100644 --- a/samples/Snake/res/layout/snake_layout.xml +++ b/samples/Snake/res/layout/snake_layout.xml @@ -22,7 +22,7 @@ android:id="@+id/snake" android:layout_width="fill_parent" android:layout_height="fill_parent" - tileSize="12" + tileSize="24" /> <RelativeLayout diff --git a/samples/Snake/src/com/example/android/snake/SnakeView.java b/samples/Snake/src/com/example/android/snake/SnakeView.java index 7541c29cc..8dd023209 100644 --- a/samples/Snake/src/com/example/android/snake/SnakeView.java +++ b/samples/Snake/src/com/example/android/snake/SnakeView.java @@ -17,7 +17,6 @@ package com.example.android.snake; import java.util.ArrayList; -import java.util.Map; import java.util.Random; import android.content.Context; @@ -550,6 +549,5 @@ public class SnakeView extends TileView { return "Coordinate: [" + x + "," + y + "]"; } } - - + } diff --git a/samples/Snake/src/com/example/android/snake/TileView.java b/samples/Snake/src/com/example/android/snake/TileView.java index 8b2c6f496..a912c53d6 100644 --- a/samples/Snake/src/com/example/android/snake/TileView.java +++ b/samples/Snake/src/com/example/android/snake/TileView.java @@ -25,7 +25,6 @@ import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.View; -import java.util.Map; /** * TileView: a View-variant designed for handling arrays of "icons" or other |