-1
ImageButton next;

next.setImageDrawable(?);

1 respuesta 1

1

Exacto, setImageDrawable pondrá la imagen mediante código, pero asegurate de obtener el Drawable por medio de : next.setImageDrawable(getResources().getDrawable(R.drawable.nombre_de_tu_imagen));

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.