• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

development


Commit MetaInfo

Revision7c69dba7cc03073820d567dcb2fa6af031326e7a (tree)
Zeit2011-01-24 07:10:41
AutorDianne Hackborn <hackbod@goog...>
CommiterDianne Hackborn

Log Message

Remove use of old theme name.

Change-Id: Iebc7a81738122fbfb94f22649e07eabb39dc4afb

Ändern Zusammenfassung

Diff

--- a/samples/ApiDemos/AndroidManifest.xml
+++ b/samples/ApiDemos/AndroidManifest.xml
@@ -2056,9 +2056,19 @@
20562056 </intent-filter>
20572057 </activity>
20582058
2059+ <activity android:name=".graphics.HiddenActivity"
2060+ android:label="Graphics/OpenGL ES/Hidden Activity"
2061+ android:theme="@android:style/Theme.Translucent"
2062+ android:configChanges="orientation|keyboardHidden">
2063+ <intent-filter>
2064+ <action android:name="android.intent.action.MAIN" />
2065+ <category android:name="android.intent.category.SAMPLE_CODE" />
2066+ </intent-filter>
2067+ </activity>
2068+
20592069 <activity android:name=".graphics.TriangleActivity"
20602070 android:label="Graphics/OpenGL ES/Textured Triangle"
2061- android:theme="@android:style/Theme.NoTitleBar"
2071+ android:theme="@android:style/Theme.Holo.Dialog"
20622072 android:configChanges="orientation|keyboardHidden">
20632073 <intent-filter>
20642074 <action android:name="android.intent.action.MAIN" />
--- a/samples/ApiDemos/src/com/example/android/apis/app/DialogActivity.java
+++ b/samples/ApiDemos/src/com/example/android/apis/app/DialogActivity.java
@@ -18,8 +18,9 @@ package com.example.android.apis.app;
1818
1919 // Need the following import to get access to the app resources, since this
2020 // class is in a sub-package.
21+import com.example.android.apis.R;
22+
2123 import android.app.Activity;
22-import android.content.Intent;
2324 import android.os.Bundle;
2425 import android.view.View;
2526 import android.view.Window;
@@ -28,13 +29,10 @@ import android.widget.Button;
2829 import android.widget.ImageView;
2930 import android.widget.LinearLayout;
3031
31-import com.example.android.apis.R;
32-import com.example.android.apis.app.ForegroundService.Controller;
33-
3432 /**
3533 * <h3>Dialog Activity</h3>
36- *
37- * <p>This demonstrates the how to write an activity that looks like
34+ *
35+ * <p>This demonstrates the how to write an activity that looks like
3836 * a pop-up dialog.</p>
3937 */
4038 public class DialogActivity extends Activity {
@@ -47,15 +45,17 @@ public class DialogActivity extends Activity {
4745 protected void onCreate(Bundle savedInstanceState) {
4846 // Be sure to call the super class.
4947 super.onCreate(savedInstanceState);
50-
48+
5149 requestWindowFeature(Window.FEATURE_LEFT_ICON);
52-
50+
51+
5352 // See assets/res/any/layout/dialog_activity.xml for this
5453 // view layout definition, which is being set here as
5554 // the content of our screen.
5655 setContentView(R.layout.dialog_activity);
57-
58- getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,
56+ getWindow().setTitle("This is just a test");
57+
58+ getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,
5959 android.R.drawable.ic_dialog_alert);
6060
6161 Button button = (Button)findViewById(R.id.add);
--- a/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleActivity.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleActivity.java
@@ -26,8 +26,10 @@ public class TriangleActivity extends Activity {
2626 protected void onCreate(Bundle savedInstanceState) {
2727 super.onCreate(savedInstanceState);
2828 mGLView = new GLSurfaceView(this);
29- mGLView.setEGLConfigChooser(false);
3029 mGLView.setRenderer(new StaticTriangleRenderer(this));
30+ /*ImageView imageView = new ImageView(this);
31+ imageView.setImageResource(R.raw.robot);
32+ setContentView(imageView);*/
3133 setContentView(mGLView);
3234 }
3335
--- a/samples/Honeycomb-Gallery/AndroidManifest.xml
+++ b/samples/Honeycomb-Gallery/AndroidManifest.xml
@@ -18,8 +18,6 @@
1818 package="com.example.android.hcgallery" android:versionCode="1"
1919 android:versionName="1.0">
2020
21- <uses-sdk android:minSdkVersion="Honeycomb" />
22-
2321 <uses-permission android:name="android.permission.CAMERA" />
2422
2523 <application android:label="@string/app_name"
--- a/samples/NotePad/AndroidManifest.xml
+++ b/samples/NotePad/AndroidManifest.xml
@@ -52,7 +52,7 @@
5252 </activity>
5353
5454 <activity android:name="NoteEditor"
55- android:theme="@android:style/Theme.Light.Holo"
55+ android:theme="@android:style/Theme.Holo.Light"
5656 android:screenOrientation="sensor"
5757 android:configChanges="keyboardHidden|orientation"
5858 >