summaryrefslogtreecommitdiff
path: root/samples/demos/src/com/actionbarsherlock/sample/demos/Dialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'samples/demos/src/com/actionbarsherlock/sample/demos/Dialog.java')
-rw-r--r--samples/demos/src/com/actionbarsherlock/sample/demos/Dialog.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/samples/demos/src/com/actionbarsherlock/sample/demos/Dialog.java b/samples/demos/src/com/actionbarsherlock/sample/demos/Dialog.java
new file mode 100644
index 0000000..a9dbaeb
--- /dev/null
+++ b/samples/demos/src/com/actionbarsherlock/sample/demos/Dialog.java
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2011 Jake Wharton
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.actionbarsherlock.sample.demos;
+
+import android.os.Bundle;
+import android.widget.TextView;
+import com.actionbarsherlock.app.SherlockActivity;
+
+public class Dialog extends SherlockActivity {
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.text);
+ ((TextView)findViewById(R.id.text)).setText(R.string.dialog_content);
+ }
+}