Every time I reformat my XML code, xmlns
moves up to a line where root element's tag name is written.
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
xmlns:android...
is next to the CoordinatorLayout
. I played with XML section of Code Style menu in AndroidStudio, but couldn't do it.
This is what I want to have when I reformat my layout XML file:
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
Can someone help me with this?
This is the XML attribute arrangement in my AndroidStudio:
File
-> Settings
-> Editor
-> Code style
-> XML
.Tabs and Intents
, Other
, Arrangement
, Android
), select Android
.Layout Files
check both Insert line break before first attribure
, Include namespace declarations
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With