]> average.org Git - WhereAmI.git/commitdiff
Use full screen
authorEugene Crosser <Eugene.Crosser@ru.ibm.com>
Wed, 25 Jan 2012 14:06:57 +0000 (18:06 +0400)
committerEugene Crosser <Eugene.Crosser@ru.ibm.com>
Wed, 25 Jan 2012 14:06:57 +0000 (18:06 +0400)
AndroidManifest.xml
local.properties [deleted file]
res/layout/main.xml
src/org/average/whereami/WhereAmI.java

index c6c6f93b98c794d4feccc41eed6fe2dc9d599de5..870f69084dd0ae1b6dd672cf896ecb7660a4d710 100644 (file)
@@ -3,6 +3,8 @@
       package="org.average.whereami"
       android:versionCode="1"
       android:versionName="1.0">
+    <supports-screens
+      android:largeScreens="true"/>
     <application android:label="@string/app_name" >
         <activity android:name="WhereAmI"
                   android:label="@string/app_name">
diff --git a/local.properties b/local.properties
deleted file mode 100644 (file)
index 1c3c668..0000000
+++ /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
index 293b2f1c0b07776c7ef3a11533ac10168dc68bbc..659a7dbbd15a349e2031622d1d86c313eb58d110 100644 (file)
@@ -3,11 +3,14 @@
     android:orientation="vertical"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
-    >
-<TextView  
+    android:background="#ffffffff"
+>
+  <TextView
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
-    android:text="Hello World, WhereAmI"
-    />
+    android:layout_weight="1"
+    android:textColor="#ff000000"
+    android:text="Hello, WhereAmI?!"
+  />
 </LinearLayout>
 
index c74ab2d09e0f758a0e73ef9190beee84d4c01035..6fdbf34935b0bd42418938438036f319ba0d184d 100644 (file)
@@ -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);
     }
 }