我希望eclipse将我的xml格式化为如下代码的列。在eclipse中有没有办法做到这一点?我尝试了Preferences-> XML->编辑器并更改了一些设置,但我无法获得我想要的格式。如果有人知道这些设置你能告诉我吗?
<ListView
style = "@style/listview"
android:layout_below = "@+id/plu_enter_layout"
android:layout_above = "@+id/fpc_scan_again"
android:fadeScrollbars = "false"
/>
<LinearLayout
android:layout_width = "wrap_content"
android:layout_height = "wrap_content"
android:layout_alignParentTop = "true"
android:layout_centerHorizontal = "true"
android:layout_marginTop = "20dp"
android:orientation = "horizontal"
>
答案 0 :(得分:0)