From b8a884fbab7d8004211534ec6dd68d8960b41321 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 2 Apr 2010 22:05:14 -0700 Subject: [PATCH] Implementation of the tic-tac-toe sample. Added some README.txt Change-Id: Ie2703ffdfdeba773d0fd27153ec0cdb806b2e2dc --- samples/TicTacToeLib/AndroidManifest.xml | 3 - samples/TicTacToeLib/README.txt | 7 + samples/TicTacToeLib/default.properties | 6 +- .../TicTacToeLib/res/layout-land/lib_game.xml | 60 +++ samples/TicTacToeLib/res/layout/lib_game.xml | 12 +- samples/TicTacToeLib/res/values/strings.xml | 3 +- .../tictactoe/library/GameActivity.java | 232 ++++++++++- .../example/tictactoe/library/GameView.java | 374 ++++++++++++++++-- samples/TicTacToeMain/AndroidManifest.xml | 2 +- samples/TicTacToeMain/README.txt | 48 +++ samples/TicTacToeMain/default.properties | 3 +- samples/TicTacToeMain/res/values/strings.xml | 1 - .../com/example/tictactoe/MainActivity.java | 4 +- 13 files changed, 697 insertions(+), 58 deletions(-) create mode 100755 samples/TicTacToeLib/README.txt create mode 100755 samples/TicTacToeLib/res/layout-land/lib_game.xml create mode 100755 samples/TicTacToeMain/README.txt diff --git a/samples/TicTacToeLib/AndroidManifest.xml b/samples/TicTacToeLib/AndroidManifest.xml index cc667ee2e..9772b88c5 100755 --- a/samples/TicTacToeLib/AndroidManifest.xml +++ b/samples/TicTacToeLib/AndroidManifest.xml @@ -19,7 +19,4 @@ package="com.example.tictactoe.library" android:versionCode="1" android:versionName="1.0"> - - - \ No newline at end of file diff --git a/samples/TicTacToeLib/README.txt b/samples/TicTacToeLib/README.txt new file mode 100755 index 000000000..a43b2f156 --- /dev/null +++ b/samples/TicTacToeLib/README.txt @@ -0,0 +1,7 @@ +Sample: TicTacToeLib and TicTacToeMain. + +These two projects work together. They demonstrate how to use the ability to +split an APK into multiple projects. + +Please see the README.txt file in ../TicTacToeMain for more details. + diff --git a/samples/TicTacToeLib/default.properties b/samples/TicTacToeLib/default.properties index 4ac577ca4..89927d72e 100755 --- a/samples/TicTacToeLib/default.properties +++ b/samples/TicTacToeLib/default.properties @@ -16,13 +16,13 @@ # 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. android.library=true # Project target. -target=android-7 +target=android-3 diff --git a/samples/TicTacToeLib/res/layout-land/lib_game.xml b/samples/TicTacToeLib/res/layout-land/lib_game.xml new file mode 100755 index 000000000..c0f5cbab2 --- /dev/null +++ b/samples/TicTacToeLib/res/layout-land/lib_game.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + +