Project-lib sample: set namespace to com.example.android
This is a pure namespace refactoring change. Change-Id: I33f5998f876cdc9893d8d45983422ca0e331b3c4
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.example.tictactoe.library"
|
package="com.example.android.tictactoe.library"
|
||||||
android:versionCode="1"
|
android:versionCode="1"
|
||||||
android:versionName="1.0">
|
android:versionName="1.0">
|
||||||
</manifest>
|
</manifest>
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
android:gravity="center_vertical|center_horizontal"
|
android:gravity="center_vertical|center_horizontal"
|
||||||
>
|
>
|
||||||
|
|
||||||
<com.example.tictactoe.library.GameView
|
<com.example.android.tictactoe.library.GameView
|
||||||
android:id="@+id/game_view"
|
android:id="@+id/game_view"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
>
|
>
|
||||||
|
|
||||||
<com.example.tictactoe.library.GameView
|
<com.example.android.tictactoe.library.GameView
|
||||||
android:id="@+id/game_view"
|
android:id="@+id/game_view"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.example.tictactoe.library;
|
package com.example.android.tictactoe.library;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
@@ -28,15 +28,15 @@ import android.view.View.OnClickListener;
|
|||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.example.tictactoe.library.GameView.ICellListener;
|
import com.example.android.tictactoe.library.GameView.ICellListener;
|
||||||
import com.example.tictactoe.library.GameView.State;
|
import com.example.android.tictactoe.library.GameView.State;
|
||||||
|
|
||||||
|
|
||||||
public class GameActivity extends Activity {
|
public class GameActivity extends Activity {
|
||||||
|
|
||||||
/** Start player. Must be 1 or 2. Default is 1. */
|
/** Start player. Must be 1 or 2. Default is 1. */
|
||||||
public static final String EXTRA_START_PLAYER =
|
public static final String EXTRA_START_PLAYER =
|
||||||
"com.example.tictactoe.library.GameActivity.EXTRA_START_PLAYER";
|
"com.example.android.tictactoe.library.GameActivity.EXTRA_START_PLAYER";
|
||||||
|
|
||||||
private static final int MSG_COMPUTER_TURN = 1;
|
private static final int MSG_COMPUTER_TURN = 1;
|
||||||
private static final long COMPUTER_DELAY_MS = 500;
|
private static final long COMPUTER_DELAY_MS = 500;
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.example.tictactoe.library;
|
package com.example.android.tictactoe.library;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.example.tictactoe"
|
package="com.example.android.tictactoe"
|
||||||
android:versionCode="1"
|
android:versionCode="1"
|
||||||
android:versionName="1.0">
|
android:versionName="1.0">
|
||||||
<application android:icon="@drawable/icon" android:label="@string/app_name">
|
<application android:icon="@drawable/icon" android:label="@string/app_name">
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
<!-- This is defined in TicTacToeLib. Right now we need to manually
|
<!-- This is defined in TicTacToeLib. Right now we need to manually
|
||||||
copy it here. Eventually it should get merged automatically. -->
|
copy it here. Eventually it should get merged automatically. -->
|
||||||
<activity android:name="com.example.tictactoe.library.GameActivity" />
|
<activity android:name="com.example.android.tictactoe.library.GameActivity" />
|
||||||
|
|
||||||
|
|
||||||
</application>
|
</application>
|
||||||
|
|||||||
@@ -13,10 +13,8 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package com.example.tictactoe;
|
|
||||||
|
|
||||||
import com.example.tictactoe.library.GameActivity;
|
package com.example.android.tictactoe;
|
||||||
import com.example.tictactoe.library.GameView.State;
|
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
@@ -24,6 +22,9 @@ import android.os.Bundle;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
|
|
||||||
|
import com.example.android.tictactoe.library.GameActivity;
|
||||||
|
import com.example.android.tictactoe.library.GameView.State;
|
||||||
|
|
||||||
public class MainActivity extends Activity {
|
public class MainActivity extends Activity {
|
||||||
/** Called when the activity is first created. */
|
/** Called when the activity is first created. */
|
||||||
@Override
|
@Override
|
||||||
Reference in New Issue
Block a user