Layout View Ids: use @id
instead of @+id
for referenced ids
#4604
Labels
T-Task
Refactoring, enabling or disabling functionality, other engineering tasks
Using
@id
instead of@+id
for referenced ids is better since there will be only one declaration for each id, so code navigation will be simplified. For instance the dialogs:and in the code
will disappear and the navigation will directly goes to the view which has the searched id.
Initially reported by @Florian14 , but I do not think he has created an issue about it.
A global replacement could be done, also some rules could be added to this file: https://github.com/vector-im/element-android/blob/main/tools/check/forbidden_strings_in_layout.txt to avoid the issue to come back
The text was updated successfully, but these errors were encountered: