am 7c69dba7: Remove use of old theme name.
* commit '7c69dba7cc03073820d567dcb2fa6af031326e7a': Remove use of old theme name.
This commit is contained in:
@@ -18,8 +18,9 @@ package com.example.android.apis.app;
|
||||
|
||||
// Need the following import to get access to the app resources, since this
|
||||
// class is in a sub-package.
|
||||
import com.example.android.apis.R;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
@@ -28,13 +29,10 @@ import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import com.example.android.apis.R;
|
||||
import com.example.android.apis.app.ForegroundService.Controller;
|
||||
|
||||
/**
|
||||
* <h3>Dialog Activity</h3>
|
||||
*
|
||||
* <p>This demonstrates the how to write an activity that looks like
|
||||
*
|
||||
* <p>This demonstrates the how to write an activity that looks like
|
||||
* a pop-up dialog.</p>
|
||||
*/
|
||||
public class DialogActivity extends Activity {
|
||||
@@ -47,15 +45,17 @@ public class DialogActivity extends Activity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
// Be sure to call the super class.
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
|
||||
requestWindowFeature(Window.FEATURE_LEFT_ICON);
|
||||
|
||||
|
||||
|
||||
// See assets/res/any/layout/dialog_activity.xml for this
|
||||
// view layout definition, which is being set here as
|
||||
// the content of our screen.
|
||||
setContentView(R.layout.dialog_activity);
|
||||
|
||||
getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,
|
||||
getWindow().setTitle("This is just a test");
|
||||
|
||||
getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,
|
||||
android.R.drawable.ic_dialog_alert);
|
||||
|
||||
Button button = (Button)findViewById(R.id.add);
|
||||
|
||||
@@ -26,8 +26,10 @@ public class TriangleActivity extends Activity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
mGLView = new GLSurfaceView(this);
|
||||
mGLView.setEGLConfigChooser(false);
|
||||
mGLView.setRenderer(new StaticTriangleRenderer(this));
|
||||
/*ImageView imageView = new ImageView(this);
|
||||
imageView.setImageResource(R.raw.robot);
|
||||
setContentView(imageView);*/
|
||||
setContentView(mGLView);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user