MR Mido MR Mido - 1 year ago 139
Android Question

No line numbers in Eclipse or Android Studio XML editor

When editing XML files in the editor for Eclipse, line numbers are not displayed.

Use case:

I create a layout with many views, one of these lacks android:layout_width attribute. This causes a runtime error when the binary XML layout resource is inflated. The error log tells me to check like 361 in my XML file.

Thanks to the line number being displayed I can find the offending line and make the change without having to open the file in another editor.

Answer Source

try right clicking the grey bar and selecting show line numbers it works for me so hopefully it will for u too

enter image description here

or change it in the settings

File > Settings > Editor > Appearance then click the "Show line numbers" box.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download