When should i use @android:id/?

前端 未结 3 1213
无人及你
无人及你 2021-01-16 08:12

I\'ve found some code examples with the @android:id/xyz attribute set instead of @+id/xyz.
When and why is it necessary to use Android ids in

3条回答
  •  孤街浪徒
    2021-01-16 08:55

    The plus-symbol means that the resource is new and it must be created and added to the resources in the R.java file.

    Omitting the plus symbol references an already existing resource.

提交回复
热议问题