Eclipse中的GUI設計的Android吐出了這種類型的XML(可成佈局):如何在Eclipse中格式化Android xml?
<Button android:layout_height="wrap_content" android:id="@+id/btnSaveMessage" android:layout_width="wrap_content" android:layout_gravity="right" android:text="@string/text_save" android:width="125dp"></Button>
有沒有在Eclipse中重構把這個咕成漂亮的格式化XML這樣的:
<Button android:layout_height="wrap_content"
android:id="@+id/btnSaveMessage"
android:layout_width="wrap_content"
android:layout_gravity="right"
android:text="@string/text_save"
android:width="125dp"/>
選擇所有CNTRL + A,然後按CNTRL +我 – 2011-12-21 08:47:21
@hotveryspicy它幾乎沒有工作 - 這是它格式化XML爲我的屏幕大小。我希望它爲每行放置一個屬性,而不是您的技術所用的2或3。 – AngryHacker 2011-12-21 08:49:13
更新您的SDK,那麼它會做 – 2011-12-21 08:53:00