Babelish icon indicating copy to clipboard operation
Babelish copied to clipboard

Android strings.xml indented with tabs instead of spaces

Open raragod opened this issue 4 years ago • 2 comments

In generated strings.xml files for Android, tabs are used instead of spaces for indentation causing Android Studio to complain. Can a config flag be added that'll help developers adhere to the coding standard they follow?

raragod avatar Mar 31 '20 14:03 raragod

ok I am wondering if tabs are even needed, as when i look at other adapter, only spaces are used. @raragod Do you know if eclipse or other editors require tabs?

netbe avatar Apr 01 '20 18:04 netbe

I'm not sure about the other editors but this is the default formatting setting in Android Studio which follows the Code Style Guide defined for Android by Google: https://source.android.com/devices/architecture/hidl/code-style. Indentation formatting is here: https://source.android.com/devices/architecture/hidl/code-style#formatting

raragod avatar Apr 01 '20 19:04 raragod