This repository has been archived by the owner on Feb 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Clean up incorrect XML uses of @+id
#12755
Labels
eng:health
Improve code health
good first issue
Good for newcomers
help wanted
Help wanted from a contributor. More complex than good first issue.
Comments
NotWoods
added
good first issue
Good for newcomers
eng:health
Improve code health
help wanted
Help wanted from a contributor. More complex than good first issue.
labels
Jul 20, 2020
Hi @NotWoods! Can I help you with these changings as my |
Sure @leonardoamurca! Please look through our docs so you can check out a copy of the codebase locally and edit it with Android Studio. Let me know if you need tips for how to proceed with the changes. |
leonardoamurca
added a commit
to leonardoamurca/fenix
that referenced
this issue
Jul 21, 2020
…dy declared ids When referencing an Android resource ID, you do not need the plus-symbol if you declared before. Caution: make sure that the resource you are referring to is defined EARLIER and not LATER.
boek
pushed a commit
to boek/fenix
that referenced
this issue
Jul 28, 2020
…dy declared ids When referencing an Android resource ID, you do not need the plus-symbol if you declared before. Caution: make sure that the resource you are referring to is defined EARLIER and not LATER.
boek
pushed a commit
to boek/fenix
that referenced
this issue
Jul 28, 2020
…dy declared ids When referencing an Android resource ID, you do not need the plus-symbol if you declared before. Caution: make sure that the resource you are referring to is defined EARLIER and not LATER.
boek
pushed a commit
to boek/fenix
that referenced
this issue
Jul 28, 2020
…dy declared ids When referencing an Android resource ID, you do not need the plus-symbol if you declared before. Caution: make sure that the resource you are referring to is defined EARLIER and not LATER.
boek
pushed a commit
that referenced
this issue
Jul 28, 2020
When referencing an Android resource ID, you do not need the plus-symbol if you declared before. Caution: make sure that the resource you are referring to is defined EARLIER and not LATER.
Closing since this has been fixed by @leonardoamurca 😄 |
data-sync-user
changed the title
Clean up incorrect XML uses of
FNX3-21875 ⁃ Clean up incorrect XML uses of Aug 11, 2020
@+id
@+id
data-sync-user
changed the title
FNX3-21875 ⁃ Clean up incorrect XML uses of
FNX-13870 ⁃ Clean up incorrect XML uses of Aug 11, 2020
@+id
@+id
data-sync-user
changed the title
FNX-13870 ⁃ Clean up incorrect XML uses of
FNX2-15453 ⁃ Clean up incorrect XML uses of Aug 11, 2020
@+id
@+id
data-sync-user
changed the title
FNX2-15453 ⁃ Clean up incorrect XML uses of
Clean up incorrect XML uses of May 19, 2022
@+id
@+id
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
eng:health
Improve code health
good first issue
Good for newcomers
help wanted
Help wanted from a contributor. More complex than good first issue.
In our XML files there are two similar ways to refer to IDs:
@+id/example_id
and@id/example_id
. The "plus" variant should only be used to create a new ID, and should only be used insideandroid:id
.In other attributes, the ID is used to reference another value (such as
app:destination
,app:layout_constraintStart_toStartOf
). In these locations, the@id
variant with no plus should be used. Incorrect usage doesn't have runtime issues, but makes the IDE confused sometimes.We may want to create a lint rule for this later on.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: