development
Revisión | 8929f134293cfcb636ac3da76b2b400ae3df1a06 (tree) |
---|---|
Tiempo | 2011-01-24 07:41:27 |
Autor | Dianne Hackborn <hackbod@goog...> |
Commiter | Android Git Automerger |
am 7c69dba7: Remove use of old theme name.
* commit '7c69dba7cc03073820d567dcb2fa6af031326e7a':
@@ -2057,9 +2057,19 @@ | ||
2057 | 2057 | </intent-filter> |
2058 | 2058 | </activity> |
2059 | 2059 | |
2060 | + <activity android:name=".graphics.HiddenActivity" | |
2061 | + android:label="Graphics/OpenGL ES/Hidden Activity" | |
2062 | + android:theme="@android:style/Theme.Translucent" | |
2063 | + android:configChanges="orientation|keyboardHidden"> | |
2064 | + <intent-filter> | |
2065 | + <action android:name="android.intent.action.MAIN" /> | |
2066 | + <category android:name="android.intent.category.SAMPLE_CODE" /> | |
2067 | + </intent-filter> | |
2068 | + </activity> | |
2069 | + | |
2060 | 2070 | <activity android:name=".graphics.TriangleActivity" |
2061 | 2071 | android:label="Graphics/OpenGL ES/Textured Triangle" |
2062 | - android:theme="@android:style/Theme.NoTitleBar" | |
2072 | + android:theme="@android:style/Theme.Holo.Dialog" | |
2063 | 2073 | android:configChanges="orientation|keyboardHidden"> |
2064 | 2074 | <intent-filter> |
2065 | 2075 | <action android:name="android.intent.action.MAIN" /> |
@@ -18,8 +18,9 @@ package com.example.android.apis.app; | ||
18 | 18 | |
19 | 19 | // Need the following import to get access to the app resources, since this |
20 | 20 | // class is in a sub-package. |
21 | +import com.example.android.apis.R; | |
22 | + | |
21 | 23 | import android.app.Activity; |
22 | -import android.content.Intent; | |
23 | 24 | import android.os.Bundle; |
24 | 25 | import android.view.View; |
25 | 26 | import android.view.Window; |
@@ -28,13 +29,10 @@ import android.widget.Button; | ||
28 | 29 | import android.widget.ImageView; |
29 | 30 | import android.widget.LinearLayout; |
30 | 31 | |
31 | -import com.example.android.apis.R; | |
32 | -import com.example.android.apis.app.ForegroundService.Controller; | |
33 | - | |
34 | 32 | /** |
35 | 33 | * <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 | |
38 | 36 | * a pop-up dialog.</p> |
39 | 37 | */ |
40 | 38 | public class DialogActivity extends Activity { |
@@ -47,15 +45,17 @@ public class DialogActivity extends Activity { | ||
47 | 45 | protected void onCreate(Bundle savedInstanceState) { |
48 | 46 | // Be sure to call the super class. |
49 | 47 | super.onCreate(savedInstanceState); |
50 | - | |
48 | + | |
51 | 49 | requestWindowFeature(Window.FEATURE_LEFT_ICON); |
52 | - | |
50 | + | |
51 | + | |
53 | 52 | // See assets/res/any/layout/dialog_activity.xml for this |
54 | 53 | // view layout definition, which is being set here as |
55 | 54 | // the content of our screen. |
56 | 55 | 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, | |
59 | 59 | android.R.drawable.ic_dialog_alert); |
60 | 60 | |
61 | 61 | Button button = (Button)findViewById(R.id.add); |
@@ -26,8 +26,10 @@ public class TriangleActivity extends Activity { | ||
26 | 26 | protected void onCreate(Bundle savedInstanceState) { |
27 | 27 | super.onCreate(savedInstanceState); |
28 | 28 | mGLView = new GLSurfaceView(this); |
29 | - mGLView.setEGLConfigChooser(false); | |
30 | 29 | mGLView.setRenderer(new StaticTriangleRenderer(this)); |
30 | + /*ImageView imageView = new ImageView(this); | |
31 | + imageView.setImageResource(R.raw.robot); | |
32 | + setContentView(imageView);*/ | |
31 | 33 | setContentView(mGLView); |
32 | 34 | } |
33 | 35 |
@@ -18,8 +18,6 @@ | ||
18 | 18 | package="com.example.android.hcgallery" android:versionCode="1" |
19 | 19 | android:versionName="1.0"> |
20 | 20 | |
21 | - <uses-sdk android:minSdkVersion="Honeycomb" /> | |
22 | - | |
23 | 21 | <uses-permission android:name="android.permission.CAMERA" /> |
24 | 22 | |
25 | 23 | <application android:label="@string/app_name" |
@@ -52,7 +52,7 @@ | ||
52 | 52 | </activity> |
53 | 53 | |
54 | 54 | <activity android:name="NoteEditor" |
55 | - android:theme="@android:style/Theme.Light.Holo" | |
55 | + android:theme="@android:style/Theme.Holo.Light" | |
56 | 56 | android:screenOrientation="sensor" |
57 | 57 | android:configChanges="keyboardHidden|orientation" |
58 | 58 | > |