Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/05/2012, 13:17
maurikius1983
Usuario no validado
 
Fecha de Ingreso: abril-2012
Mensajes: 134
Antigüedad: 12 años, 1 mes
Puntos: 0
Respuesta: texto intermitente,¡.

Me auto respondo, Lo he hecho a traves del main, os dejo el codigo por si os sirve.

Código:
public class Main extends Activity {

	private AnimationDrawable mauriAnimation;
	private AnimationDrawable carolAnimation;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.main);

		ImageView imageMauri = (ImageView) findViewById(R.id.btnMauri);
		mauriAnimation=(AnimationDrawable) imageMauri.getDrawable();

		ImageView imageCarol = (ImageView) findViewById(R.id.btnCarol);
		carolAnimation=(AnimationDrawable) imageCarol.getDrawable();

	}

	@Override
	public void onWindowFocusChanged(boolean hasFocus) {
		super.onWindowFocusChanged(hasFocus);
		mauriAnimation.start();
		carolAnimation.start();
	}

	public void gameplayermauri(View view) {
		Intent intentGameMauri = new Intent(this, GamePlayerMauri.class);
		startActivity(intentGameMauri);
	}

	public void gameplayercarol(View view) {
		Intent intentGameCarol = new Intent(this, GamePlayerCarol.class);
		startActivity(intentGameCarol);
	}
}