What does “@+id” mean?

前端 未结 4 658
渐次进展
渐次进展 2021-02-01 23:02

I\'ve read through much of the Android documentation and I\'ve yet to find any statement that says what an id value prefix of \"@+id\" means. I know what \"@string\" and variat

4条回答
  •  醉酒成梦
    2021-02-01 23:19

    The plus sign indicates that you are creating a new ID which does not exist. eg."@+id/xyz" . If you write "@id/xyz" , it indicates that you are referencing the View from another part of layout.

提交回复
热议问题