Check out example codes for "java android development get element by id". It will help you in understanding the concepts better.

Code Example 1

findViewById(R.id.idName) // "idName" replaced with the id of the element you want

Learn ReactJs, React Native from akashmittal.com