Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any possibility to get autocompletion / type-ahead / intellisense in Android XML Files (Eclipse)

Is there any way to make Eclipse + Android SDK + ADT Plugin offer some sort of auto-complete in XML files if I hit CTRL+Space when my cursor is in a spot such as the ones marked with an * below.

<LinearLayout id* ... lay*>

The thing is that I think that the above was actually working already directly after the initial install - even though it of course never worked within style files.

<style name="ActionBarWrapper" parent="Fill_Parent.Vertical">
        <item name="android:layout_height">36dp</item>
            <item name="a*"
</style> 
like image 476
Bruiser Avatar asked Nov 19 '25 00:11

Bruiser


2 Answers

There is an icon in the eclispe toolbar to directly access the "new android xml file" wizard.

like image 195
Regis St-Gelais Avatar answered Nov 20 '25 15:11

Regis St-Gelais


You could use IntelliJ IDEA instead of Eclipse, it has full auto-completion and works well for Android development.

http://www.jetbrains.com/idea/

The Community Edition fully supports Android, and is FREE

like image 27
Ollie C Avatar answered Nov 20 '25 16:11

Ollie C



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!