Autocomplete does not work in XML files in particu

2019-04-28 15:04发布

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

1条回答
趁早两清
2楼-- · 2019-04-28 15:32

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.

查看更多
登录 后发表回答