ctrl+ shift+を押して Eclipse Helios でコードをフォーマットしようとするとf、コードはフォーマットされますが、結果は非常に見苦しくなります。たとえば、1 行に 2 つまたは 3 つのステートメントを記述します。インデントも非常に悪いです。
例: コードをフォーマットすると、次のようになります。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@drawable/scannerbg">
<include android:id="@+id/headerLayout"
android:layout_alignParentTop="true" layout="@layout/headerlayout" />
<ListView android:layout_below="@id/headerLayout"
android:layout_height="fill_parent" android:layout_marginTop="5dp"
android:listSelector="@android:color/transparent" android:id="@+id/listView"
android:layout_width="fill_parent">
</ListView>
</RelativeLayout>
でわかるようにListView
、1 行に 2 ~ 3 個のステートメントがあります。
誰でもこれに対する解決策を提供できますか?