Come animare un layout passando daCome mostrare il layout in movimento da sinistra a destra con bassa velocità
sinistra a destra
su un pulsante di scatto. inizialmente dovrebbe essere invisibile ma sul pulsante dovrebbe uscire dalla direzione sinistra per coprire lo schermo
Ok, ci proverò questo lunedì grazie per il suggerimento. Spero che funzioni e faccia quello che mi serve. – Shubham
Grazie mille Sta funzionando Grazie mille :-) ho fatto questo e il suo lavoro – Shubham
public void onClick (Vedi arg0) { \t \t \t \t se (== tasto 0) { \t \t \t \t \t key = 1 ; \t \t \t \t \t TranslateAnimation anim = new TranslateAnimation (-1250f, 0f, 0f, 0f); \t \t \t \t \t anim.setDuration (2500); \t \t \t \t \t TranslateAnimation anim1 = new TranslateAnimation (-1250f, 0f, 0f, 0f); \t \t \t \t \t anim1.setDuration (2500); \t \t \t \t \t popup.setAnimazione (animazione); \t \t \t \t \t btn.setAnimation (anim1); \t \t \t \t \t popup.setVisibility (View.VISIBLE); \t \t \t \t \t btn.setBackgroundResource (R.drawable.previousnew); \t \t \t \t} – Shubham