From: Eugene Crosser Date: Wed, 25 Jan 2012 14:06:57 +0000 (+0400) Subject: Use full screen X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=dbaac82a8909be7793999fb20ca1c29f0967605d;p=WhereAmI.git Use full screen --- diff --git a/AndroidManifest.xml b/AndroidManifest.xml index c6c6f93..870f690 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -3,6 +3,8 @@ package="org.average.whereami" android:versionCode="1" android:versionName="1.0"> + diff --git a/local.properties b/local.properties deleted file mode 100644 index 1c3c668..0000000 --- a/local.properties +++ /dev/null @@ -1,10 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must *NOT* be checked in Version Control Systems, -# as it contains information specific to your local configuration. - -# location of the SDK. This is only used by Ant -# For customization when using a Version Control System, please read the -# header note. -sdk.dir=/export/src/android/android-sdk-linux_86 diff --git a/res/layout/main.xml b/res/layout/main.xml index 293b2f1..659a7db 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -3,11 +3,14 @@ android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" - > - + + android:layout_weight="1" + android:textColor="#ff000000" + android:text="Hello, WhereAmI?!" + /> diff --git a/src/org/average/whereami/WhereAmI.java b/src/org/average/whereami/WhereAmI.java index c74ab2d..6fdbf34 100644 --- a/src/org/average/whereami/WhereAmI.java +++ b/src/org/average/whereami/WhereAmI.java @@ -2,6 +2,8 @@ package org.average.whereami; import android.app.Activity; import android.os.Bundle; +import android.view.Window; +import android.view.WindowManager; public class WhereAmI extends Activity { @@ -10,6 +12,9 @@ public class WhereAmI extends Activity public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + requestWindowFeature(Window.FEATURE_NO_TITLE); + getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); + getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); setContentView(R.layout.main); } }