aboutsummaryrefslogtreecommitdiff
path: root/common/build/templates/SingleView/_MODULE_/README-singleview.txt
diff options
context:
space:
mode:
Diffstat (limited to 'common/build/templates/SingleView/_MODULE_/README-singleview.txt')
-rw-r--r--common/build/templates/SingleView/_MODULE_/README-singleview.txt31
1 files changed, 0 insertions, 31 deletions
diff --git a/common/build/templates/SingleView/_MODULE_/README-singleview.txt b/common/build/templates/SingleView/_MODULE_/README-singleview.txt
deleted file mode 100644
index d91cfbf0..00000000
--- a/common/build/templates/SingleView/_MODULE_/README-singleview.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-Steps to implement SingleView template:
--in template-params.xml.ftl:
- -add the following line to common imports
- <common src="activities"/>
-
- -add a string for the action button's text using the element name "sample_action". This element should be a child
- of <strings>:
- <strings>
- ...
- <sample_action>ButtonText</sample_action>
- ...
- </strings>
-
-
-
--Add a Fragment to handle behavior. In your MainActivity.java class, it will reference a Fragment called
- (yourProjectName)Fragment.java. Create that file in your project, using the "main" source folder instead of
- "common" or "templates".
- for instance, if your package name is com.example.foo, create the file
- src/main/java/com/example/foo/FooFragment.java
-
-
--Within this fragment, make sure that the onCreate method has the line
- "setHasOptionsMenu(true);", to enable the fragment to handle menu events.
-
--In order to override menu events, override onOptionsItemSelected.
-
--refer to sampleSamples/singleViewSample for a reference implementation of a
-project built on this template.
-
-