Which of the method is used to return a view from a layout file given the id of the view?



Which of the method is used to return a view from a layout file given the id of the view?..

Answer / Shobhit Jain

To return a view from a layout file given the id of the view, use findViewById(R.id.<view_id>) in your activity or fragment.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Android OS Interview Questions

Explain android?

1 Answers  


What is res folder in android?

1 Answers  


What is the android application architecture?

1 Answers  


What is override method in android studio?

1 Answers  


How to get the form data in sencha touch?

1 Answers  


What is the API profile exposed by Mono for Android?

1 Answers  


Write down the syntax to get a view element in the program?

1 Answers  


What is the difference between thread and a service in Android?

1 Answers   SkillGun Technologies,


Will galaxy s8 get android pie?

1 Answers  


What are the features of Android?

1 Answers  


What is the life cycle of android activity?

1 Answers  


What are the exceptions available in android?

1 Answers  


Categories