aboutsummaryrefslogtreecommitdiffstats
path: root/templates/activities/LoginActivity/root
Commit message (Collapse)AuthorAgeFilesLines
* ADT templates: BlankActivity and LoginActivity cleanup.Roman Nurik2013-01-222-3/+3
| | | | | | | | | | | | | | - BlankActivity: fix a bug where 'none' navtype + minApi < 11 didn't check for API 11 before using ActionBar APIs - BlankActivity: add horizontal and vertical padding, customized for sw720dp-land - BlankActivity: remove navtype that allowed tabs without swipe - change naming convention R.menu.activity_foo to R.menu.foo - change naming convention R.id.menu_foo to R.id.action_foo - add simple XXHDPI icon (scaled up from XHDPI... to be replaced in a future update) Change-Id: Ic5bf3dcfb13e714df505dcbf7c1227b610f0a36e
* Ensure ADT app templates' activity onCreate is protected.Roman Nurik2012-10-011-2/+2
| | | | | | | | It's considered a best practice for activity onCreate overrides to maintain the original visibility of the method, which is protected. Implement this for all activity templates. Change-Id: Ia501628a3f330f671398935103fafc1834f8e78e
* 37497: Templates should escape string literals in resource filesTor Norbye2012-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | If the user enters an activity title like "Android's Tools" in the new template wizard, an invalid strings.xml file is generated, since the apostrophe is not properly escaped. To fix this, there's a new string conversion method in the template engine, "escapeXmlString", which will perform all the necessary conversions. It also adds two other XML escaping functions: one to escape text to be suitable for XML attribute values, and one to be suitable for XML text values. Finally, when verifying this, I discovered that if I inserted ampersands in the MasterDetail template, I ended up with errors in various places there a filename was derived from the input string. To help make this work better, there's also a new "extractLetters" method which pulls all the characters out of a string (effectively stripping whitespace and punctuation). In addition to the above 4 new string conversion methods, the templates have been updated to use them, and the template format documentation updated. Change-Id: I4d4e854ab78d63bc86b8eb0fb9d92246534615e7
* Don't create a new title string for first activity in prjTor Norbye2012-08-232-0/+6
| | | | | | | | | | | | | | When an activity is created as part of the New Project wizard, don't ask the user for an activity title; instead, use the project's name (@string/app_name). Since I had to rev the format (to pass the is-new-project context I also cleaned up the compatibility to-string handling of booleans that should no longer be necessary.) This fixes issue 36624: App name issue Change-Id: I6b88b850e0147307db8a9e1585d670e31c261b4c
* Minor app template bug fixes for LoginActivity and FullscreenActivityRoman Nurik2012-08-101-2/+2
| | | | | | | | | - Fix maxLines=2 for input fields in LoginActivity - Use proper, backward-compatible button bar styles in FullScreenActivity. Change-Id: I20ce76ff5abd8be949644050ad99e2043abf1e5b Bug: 6948808
* Login activity template.Roman Nurik2012-08-067-0/+405
This adds an activity template for Login/Registration. The template sets up a login form that looks good on phones and tablets, and that also accepts registrations using the same form, for an optimized and quick mobile UX. Change-Id: I16f4e7915d88b0b72175fea212faedcd7142ad03