Ver Mensaje Individual
  #3  
Viejo 12/07/11, 20:09:20
Array

[xs_avatar]
azagra azagra no está en línea
Vendedor verificado
· Votos compra/venta: (5)
 
Fecha de registro: jun 2011
Localización: /home/$USER
Mensajes: 1,741
Modelo de smartphone: Google Pixel 10 Pro XL
Tu operador: O2
El Eclipse se me queja con esto en donde pone "setOnClickListener"

"Attribute "name" bound to namespace "http://schemas.android.com/apk/res/android" was already specified for element "activity"."

Código:
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.content.Intent;

public class Demo extends Activity {
    /** Called when the activity is first created. */
    @override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
        View continuarButton = findViewById(R.id.continuar_button);
        continuarButton.setOnClickListener(this);
        View nuevoButton = findViewById(R.id.nuevo_button);
        nuevoButton.setOnClickListener(this);
        View acercaButton = findViewById(R.id.acerca_button);
       acercaButton.setOnClickListener(this);
        View salirButton = findViewById(R.id.salir_button);
        salirButton.setOnClickListener(this);
        
    }
}
__________________

- Google Pixel 10 Pro XL 16/512Gb - Android 16 CP11.251209.007.A1
- Google Pixel Watch 4 wifi 45mm - WearOS 6.1

Última edición por AzagraMac Día 12/07/11 a las 20:17:34.
Responder Con Cita