java android development get element by id

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

Also in Java: