I'd like to put in a vote for "one attribute per line", and options for
line breaks immediately after the view tag, and after the last attribute
value, as well as how far attributes are indented (relative to view tag
vs. below the first attribute tag).
This is my personal preference (I edit my layouts in XML):
<TextView
android:id="..."
android:layout_width="..."
android:layout_height="..."
/>
These options would also allow for Zsolt's preferred way.
And, Xavier, thank you for doing this.
-- Kostya
16.12.2010 12:59, Zsolt Vasvari пишет:
Well, if I start from (all the attributes niclely aligned):
<ScrollView android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1"
android:fillViewport="true">
Hand edit it to something like what the layout editor does:
<ScrollView android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1"
android:fillViewport="true">
Then hit CTRL-I, it becomes
<ScrollView android:layout_width="match_parent"
android:layout_height="0px" android:layout_weight="1"
android:fillViewport="true">
Instead of the original format, which is what I want to see. This is
with 8.0.0
On Dec 16, 4:04 pm, Zarah<zarahj...@gmail.com> wrote:
Zsolt, by formatting do you by any chance include the indentations?
FWIW, The CTRL+I auto-format shortcut in Eclipse works for Android
XMLs also.
- Zarah.
On Dec 16, 3:20 pm, Zsolt Vasvari<zvasv...@gmail.com> wrote:
Xavier, I just saw that a bunch of improvements for made for XML
formatting. I welcome this, since I am a strickler for tidy
formatting, I've been hand editing my XMLs so that the formatting
wouldn't get messed up.
One request, if it's not already there regarding the formatting: I
would really like to be able to specify thatt the android:layout_*
attributes should come first, followed by the android:* non-layout
attributes then finally any custom (app:*) attributes. Ideally, I
would also like to be able to specify that the layout_* attributes
should be inserted in the id, width. height, weight order.
Thanks.
On Dec 16, 8:37 am, Xavier Ducrohet<x...@android.com> wrote:
hey all,
we're released a preview of the next ADT athttp://tools.android.com/download.
This is not a final release, not ready for general public consumption
but we wanted to start publishing regular builds out of the dev tree.
See the above link for more information about the changes.
Xav
--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
Please do not send me questions directly. Thanks!- Hide quoted text -
- Show quoted text -
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en