1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
   |  
		Animation animationToLeft = new TranslateAnimation(dm.widthPixels, -dm.widthPixels, 0, 0);
			animationToLeft.setDuration(20000);
			animationToLeft.setRepeatMode(Animation.REVERSE);
			animationToLeft.setRepeatCount(Animation.INFINITE);
			animationToLeft.setFillAfter(true);
			animationToLeft.setFillBefore(true);
			animationToLeft.setFillEnabled(true);
			Button bt = (Button) findViewById(R.id.ButtonOne);
			bt.setText(mCursor.getString(mCursor
					.getColumnIndex("proposition_un")));
			bt.setAnimation(animationToLeft);
 
			bt = (Button) findViewById(R.id.ButtonTwo);
			bt.setText(mCursor.getString(mCursor
					.getColumnIndex("proposition_deux")));
			bt.setAnimation(animationToLeft); | 
Partager