OSDN Git Service

New XML Wizard fixes
authorTor Norbye <tnorbye@google.com>
Sat, 1 Jan 2011 20:34:26 +0000 (12:34 -0800)
committerTor Norbye <tnorbye@google.com>
Sat, 1 Jan 2011 20:34:26 +0000 (12:34 -0800)
commitec6853ba0f61058763a2de16b97c492788f33b33
tree8d2119aee9bb7b83218c237a8aa6dc98a6681b39
parent88eab1cf85db531a75a7d5c43df484c5a46d0368
New XML Wizard fixes

1. Make the LinearLayout default width and height values be
match_parent for Android 2.x and up, fill_parent for older.  This
fixes issue 13481: ADT creates layout resources with fill_parent
instead of match_parent

2. Give the Name field initial focus rather than the Project field,
since you usually don't want to edit the Project field and more than
once I've accidentally edited the project name instead.

3. Don't require the user to manually type ".xml" as a suffix since
it's required anyway. If you type "foo", it will create "foo.xml". You
can however type "foo.xml" (and you cannot type any other extensions.)

Change-Id: Ibd03bb73e283b02991662de6ab889f647554b7d6
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/NewXmlFileCreationPage.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/NewXmlFileWizard.java