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_
try right clicking the grey bar and selecting show line numbers it works for me so hopefully it will for u too
or change it in the settings
File > Settings > Editor > Appearance then click the "Show line numbers" box.