gesuto
0
Q:

como llamar un recurso en layouut android studio

val rollButton: Button = findViewById(R.id.button)
\\ nombre = rollButton
\\ widget que se agrega automaticamente = Button
\\findviewbyid () = funcion que busca en mainactivity un elemento por su id
\\ R = resource
\\ tipo de elemento que estamos agregando = id si es un boton, String si es una
palabra
0

New to Communities?

Join the community