スマートフォン・ジン | Smartphone-Zine

引っ越し先→ https://smartphone-zine.com/

Android標準のJavaフォーマッター「android-formatting.xml」を取得する

Android本家のJavaフォーマッターがあります。

http://source.android.com/source/using-eclipse.html の「Eclipse formatting」という項目に書いてあります。フォーマッタは以下のURLより参照できます。 https://android.googlesource.com/platform/development.git/+/master/ide/eclipse Gitで取得しましょう。 [shell] git clone https://android.googlesource.com/platform/development [/shell] 上記コマンドで取得した「android-formatting.xml」をEclipseにインポートして使います。インポートはEclipseの設定から「Java」→「コード・スタイル」→「フォーマッター」を開き「インポートを」クリックして、取得した「development\ide\eclipse\android-formatting.xml」を選択して適用すれば完了です。