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:
On the other hand if hierarchy is RelativeLayout->RelativeLayout->ImageButton then everything is OK.
Valid proposals:
I've already tried:
- reopening XML file - no effect
- reopening project - no effect
- restarting eclipse - no effect
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.
来源:https://stackoverflow.com/questions/19135044/autocomplete-does-not-work-in-xml-files-in-particular-hierarchy