Detecting change in view id's

51 views
Skip to first unread message

Prince Mathew

unread,
Oct 26, 2021, 10:37:50 AM10/26/21
to lint-dev
Hello,
Would it be possible to detect if the give id to any view has changed or not. For example, suppose I have a view like 
<View
android:id = "@+id/view1"
../>
whose id gets changed to by some other devs in the team.
<View
android:id = "@+id/view2"
../>
Would lint be able to detect any such change? If yes, what would be the way to proceed on this?

Tor Norbye

unread,
Nov 24, 2021, 2:18:00 PM11/24/21
to lint-dev
Not currently; this would need to be integrated with the version control system in some way, or by having a record of the previous set of IDs assigned in the R class.
Reply all
Reply to author
Forward
0 new messages