android:id is used to access that resource id in the java program and findViewById() used in java program to access the particular id in the xml file. Abhijit Chakra
On Tue, Jul 26, 2011 at 9:26 PM, rambabu mareedu <[email protected]>wrote: > hi ...I wil tell u what exactly findViewByid ...as u see R.layout.id or > R.id.(button id or any other widgets i's) ...in android project folder > structure you can see Gen folder under gen folder there is R.java class this > is auto generated by framework.....it is a bridge detween user interface and > bussinuess logic in R.java u can see everything in integer variables....here > framework creating unique integer reference variablles for xml buttons or > and all widgets.....so we are calling R.id.button here R means through > R.java we are calling button .id means in xml we are creating button through > id .... > > > On Tue, Jul 26, 2011 at 7:35 AM, adithya holla <[email protected]>wrote: > >> >> thank u so much :) >> >> -- >> 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] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > 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] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

