>From what I understand, the R file is a global variable file. Every time we do an @+id thing in one of our layout files, it's added in to the R file.
Let's say I have two Activity screens, ViewA and ViewB each with their own layout files (view_a.xml, view_b.xml) and they both have this line of code <Button android:id="@+id/btnSubmit" ...... /> When I go: findViewById(R.id.btnSubmit) How do I know which btnSubmit I am referring to? I look at the R file, I only see one btnSubmit hex number. I can't make subfolders (or sub dot notation) within the R file classes. Should I have named them 'btnSubmit_view_a' and 'btnSubmit_view_b'? (which is a lot of typing) For an app with many screens, this could lead to a tonne of global variables and such. Has anyone had to deal with such an issue? Or you started to just use 'button1' 'button2' 'button3' etc.. for your @ +id names? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

