Android Studio changing ID's in one xml file changes the ID's in another file

前端 未结 3 1580
刺人心
刺人心 2021-02-13 03:10

I used to give simple ids to Android Views, but lately, I stopped that altogether because of this issue.

Let\'s say I have 2 layouts, one named first_layout.xml

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-13 04:09

    I too faced same issue, when i copied widget from an one activity to another activity and tried to change ID in copied widget. It prompt a dialog box and i clicked "No (Local Only)". But, i feel no use of that option. it still updated ID in old activity too.

    Workaround:

    Try to change ID or Attributes through Code(Text Editor) not from Design.

    I feel google should address this issue and remove this bug.

提交回复
热议问题