Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autocomplete does not work in XML files in particular hierarchy

In particular XML nodes hierarchy eg. DrawerLayout->RelativeLayout->ImageButton autocomplete does not work as expected. Suggestion list contains invalid items. Eg. android:src is not shown inside ImageButton while it should be.

Invalid proposals: ok

On the other hand if hierarchy is RelativeLayout->RelativeLayout->ImageButton then everything is OK.

Valid proposals: not ok

I've already tried:

  • reopening XML file - no effect
  • reopening project - no effect
  • restarting eclipse - no effect
like image 397
koral Avatar asked Oct 02 '13 10:10

koral


1 Answers

If inner RelativeLayout is moved to another XML file and included via <include layout="@layout/inner"/> then autocomplete is working. But it is a dirty workaround, not a real solution. So I am not accepting this answer.

like image 170
koral Avatar answered Sep 28 '22 07:09

koral