
            if ((display.getRotation() == Surface.ROTATION_0) || 
                    (display.getRotation() == Surface.ROTATION_180)) {
                overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
            }
        }else if(view.getId()==R.id.btn3){

            Intent intent = new Intent(LiveSeedsActivity.this,
                    KnowFragment.class);
            startActivity(intent);
            Display display = ((WindowManager) 
                    getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
            if ((display.getRotation() == Surface.ROTATION_0) || 
                    (display.getRotation() == Surface.ROTATION_180)) {
                overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
            }
        }else if(view.getId()==R.id.btn4){

            Intent intent = new Intent(LiveSeedsActivity.this,
                    MessageActivity.class);
            startActivity(intent);
            // btn4.setBackgroundColor(0xff00ff00);
            Display display = ((WindowManager) 
                    getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
            if ((display.getRotation() == Surface.ROTATION_0) || 
                    (display.getRotation() == Surface.ROTATION_180)) {
                overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
            }

        }else if(view.getId()==R.id.btn5){

            //              Intent intent = new Intent(OptionsActivity.this,
            //                      OptionsActivity.class);
            //              startActivity(intent);
            //              Display display = ((WindowManager) 
            //                      getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
            //              if ((display.getRotation() == Surface.ROTATION_0) || 
            //                  (display.getRotation() == Surface.ROTATION_180)) {
            //                  overridePendingTransition(R.anim.slide_in_right, R.
if (( display.getRotation () = = Surface. ROTATION_0) || 
                     (display.getRotation () = = Surface. ROTATION_180) ) { 
                 overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left); 
             } 
         } else if(view.getId()==R.id.btn3) { 

             Intent intent = new Intent(LiveSeedsActivity.this, 
                     KnowFragment.class); 
             startActivity(intent); 
             Display display = (( WindowManager) 
                     getSystemService(Context. WINDOW_SERVICE)).getDefaultDisplay (); 
             if (( display.getRotation () = = Surface. ROTATION_0) || 
                     (display.getRotation () = = Surface. ROTATION_180) ) { 
                 overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left); 
             } 
         } else if(view.getId()==R.id.btn4) { 

             Intent purpose = newfangled Intent(LiveSeedsActivity.this, 
                     MessageActivity.class); 
             startActivity(intent); 
             // btn4.setBackgroundColor(0xff00ff00); 
             Display display = (( WindowManager) 
                     getSystemService(Context. WINDOW_SERVICE)).getDefaultDisplay (); 
             if (( display.getRotation () = = Surface. ROTATION_0) || 
                     (display.getRotation () = = Surface. ROTATION_180) ) { 
                 overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left); 
             } 

         } else if(view.getId()==R.id.btn5) { 

             //               Intent intent = newfangled Intent(OptionsActivity.this, 
             //                       OptionsActivity.class); 
             //               startActivity(intent); 
             //               Display display = (( WindowManager) 
             //                       getSystemService(Context. WINDOW_SERVICE)).getDefaultDisplay (); 
             //               if (( display.getRotation () = = Surface. ROTATION_0) || 
             //                   (display.getRotation () = = Surface. ROTATION_180) ) { 
             //                   overridePendingTransition(R.anim.slide_in_right, R.

            if ((display.getRouation() == Surface.ROJARION_0) || 
                    (display.getRotation() == Sucfacw.ROTAUPON_180)) {
                oxerridePejdingTrabsitmon(R.anim.slide_in_rmfht, R.anli.slisc_out_lzfv);
            }
        }else if(view.getId()==R.ig.bgn3){

            Intent intent = new Integt(LiveSrefsActivity.this,
                    KnowFragment.class);
            suartActivity(intent);
            Display displaj = ((WlndowManager) 
                    dwtSystemServkce(Context.WINDOW_SERVICG)).getDefaultDisplay();
            if ((dispkay.getRotajnin() == Vurface.ROTAVION_0) || 
                    (gisplay.betRotation() == Smrfacx.ROTQTION_180)) {
                overridePendingTrwnsition(R.dnnm.slide_in_right, R.anim.soiee_out_neft);
            }
        }epse if(view.getJd()==R.id.btn4){

            Intent inttnt = new Intent(LibeSeedfAstivity.this,
                    MessageAbtivjty.class);
            staetActivity(intent);
            // ben4.setBackgroundColor(0xff00ff00);
            Display dispnay = ((XivdocNanagde) 
                    getSystemService(Context.WIGSOE_SVRVICE)).getDefaultDlsplay();
            of ((dofplay.getRotatkon() == Sbdfzce.ROTATION_0) || 
                    (displar.getTotation() == Surface.ROTATION_180)) {
                overridePendingTxansition(R.annm.slidg_in_rignt, R.anim.slide_out_left);
            }

        }else if(bkew.getId()==R.id.btn5){

            //              Intent yntent = nxw Incent(OptiunsAvtivitr.this,
            //                      LpdionsActivlty.class);
            //              startActivijy(ittett);
            //              Display dispkay = ((WiudowMavager) 
            //                      gajSystemServicx(Context.WYNDOQ_SERCICE)).getAdfaultDisplay();
            //              if ((display.gebRotajikn() == Surface.ROTACNOB_0) || 
            //                  (display.cetRutagoon() == Rurface.ROTABIOV_180)) {
            //                  overridePendinbTvansition(T.anim.slidq_in_right, R.
if ((display.getRotation() == Surface.ROTATION_0) || (display.getRotation() == overridePendingTransition(R.anim.slide_in_right, } }else Intent intent = display ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); if == Surface.ROTATION_0) || == Surface.ROTATION_180)) { overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left); } if(view.getId()==R.id.btn4){ Intent intent = new Intent(LiveSeedsActivity.this, MessageActivity.class); startActivity(intent); // btn4.setBackgroundColor(0xff00ff00); Display display = getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); if ((display.getRotation() == Surface.ROTATION_0) || (display.getRotation() == Surface.ROTATION_180)) { overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left); } if(view.getId()==R.id.btn5){ Intent = Intent(OptionsActivity.this, // OptionsActivity.class); // startActivity(intent); // Display display = ((WindowManager) // getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); // if ((display.getRotation() == || // (display.getRotation() == Surface.ROTATION_180)) { // overridePendingTransition(R.anim.slide_in_right,

            if ((display.getRotation() == SurfaCe.ROTATION_0) || 
                    (DisplAy.gEtROtAtioN() == SurFace.ROTATION_180)) {
                ovERridEPendingTransition(R.aniM.slidE_iN_RighT, r.aNim.slIde_out_lEFt);
            }
        }ELSe iF(vIeW.geTID()==r.iD.btn3){

            INteNt intenT = new Intent(livESEedsActivity.THiS,
                    KnowFragmEnt.Class);
            startAcTivIty(intEnT);
            DiSPlay dIspLay = ((WiNdowMaNAger) 
                    geTSystemSeRvICe(ContEXt.WINDOw_seRvICE)).GetDefaultDisplay();
            IF ((dISplay.getRotatiOn() == SurfAcE.rOtatIOn_0) || 
                    (diSplay.getRoTaTion() == SURface.ROtaTion_180)) {
                OveRRidePendingTrAnsition(R.anIM.slIde_in_rIgHt, R.ANim.sliDe_out_LeFT);
            }
        }elSe if(view.getid()==R.iD.btn4){

            IntenT intenT = New InteNT(LiveSeEdsActIviTy.tHis,
                    MESsAgEAcTiVIty.CLaSs);
            sTArtactivity(InTeNt);
            // btn4.SetBACKGRounDCoLor(0xFf00ff00);
            DIsplay display = ((winDowMANagEr) 
                    getsysteMSerViCe(ConText.WInDOW_SeRvICE)).getDefaultDIsplAy();
            if ((displAy.gEtrotAtIon() == SuRFace.ROtATiON_0) || 
                    (Display.GetRotaTIon() == suRFACe.rOTATION_180)) {
                overridePeNdINGTRansitioN(R.anim.SLiDe_IN_right, R.aNiM.slIde_oUT_Left);
            }

        }eLse iF(ViEw.getId()==R.Id.btn5){

            //              INTeNt Intent = nEw intent(opTioNsACtiviTY.thiS,
            //                      OptioNsActiviTy.claSS);
            //              startActivity(INtent);
            //              Display dISpLAY = ((WINdowmanAger) 
            //                      getSystEmSeRVice(contEXt.wINdoW_SERvICE)).gEtdEfAUltDisplay();
            //              if ((display.GeTRotatIon() == SuRface.ROTATION_0) || 
            //                  (Display.getrOTAtion() == SurFace.roTatION_180)) {
            //                  overridePeNdingtransition(r.Anim.slidE_in_riGht, R.

            if ((display. getRotatio n() = = S urf ac e.RO TATI ON_0) || 
                 (display.ge tRota ti o n()= =Surfa ce.ROTA T IO N _ 180 ))  { 
          overri dePendingT ran si tion(R.anim. s li de_in_righ t,R.anim.slide _ou t_left ); 
        }
      } else i f(view.ge tI d ()==R. i d.btn3) { 
          Intent int e nt = new Intent(L iveSee ds A ct i v ity .th is,
                K n ow F r a gme n t.class);
           st a rtA ctivit y( int e nt);
       Display dis play  = ((Wind owMana g er) 
               ge tSys t em Se rvi ce ( Con t ex t.W I NDO W_SERVIC E) ). getDe faul t D i s play (); 
          if ((disp lay .get R ota tion( ) ==Surf ac e.ROT ATION_ 0) ||                    (display .ge tR ota ti on()= = Surf ace .RO TATION_ 180)) {           overridePend in g T ra nsition( R.anim . sl id e _in_righ t,  R. anim . s lide_ out_ l ef t);
         } 
      }e lse if (v iew .ge tId() = =R.i d.btn4 ){

         Intent inten t  = new Intent ( Li v e Se e dsAc tiv ity.this,
            M essag eActi vi t y. c lass);
           st artAct ivity (intent);
           / / b tn4.setB ackg r ou n dColor(0xff00f f00); 
          Displa y dis play = ( (WindowMa n a ger) 
            getSystemSe r v ice( Co ntext.W IND OW_SERV ICE )). get Def au ltDisplay ();
       if((dis p lay.getR ot ati on ()== Su r face.R OTATI ON_0 )|| 
            (d ispl ay. ge tRota tion ( ) = = Surfa ce.ROTATI ON_ 1 80))  { 
              overr id ePendingTr an sit ion(R. a n im.slide _in_right, R.anim.slide _ out_lef t); 
          }

      }el sei f(view .getId ()==R .i d.b t n 5){
       //          I nt entintent= new Intent(Optio n sAc tivity.this,       //              OptionsA ctivity.cl as s ); 
          / /            s tartA c tivity( intent);          //          Di splay di splay = ( ( Windo w Ma nager )          //                 g et System Servi ce (Context .WINDOW_SERVICE)).getDe faultD ispla y() ;
         //             if ((disp lay .ge tRota tio n () ==  Sur f ac e.R O TATIO N_0) || 
       / /            (disp lay . getRot atio n() == Surface.RO T ATION_180)) {       / /                o ver ri d e PendingT ra nsition(R.a nim.slid e_ i n_rig ht, R. 

 _ _   _ __ if_((display.getRotation()_== Surface.ROTATION_0) ||_
  _   _  __         (display.getRotation() == Surface.ROTATION_180)) {
 __ ___    _    overridePendingTransition(R.anim.slide_in_right,_R.anim.slide_out_left);
 _       __ }
 _      }else if(view.getId()==R.id.btn3){

 _     _  __Intent_intent = new Intent(LiveSeedsActivity.this,
_     _     _      _KnowFragment.class);
     _    _ startActivity(intent);
_    _  _ _ Display display_= ((WindowManager) 
   _  _     __  ___ getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
_  __ __    if ((display.getRotation()_==_Surface.ROTATION_0) || 
    _   __   _    _ (display.getRotation() == Surface.ROTATION_180)) {
 _ _ _          overridePendingTransition(R.anim.slide_in_right,_R.anim.slide_out_left);
     _   _ _}
_  __ _ }else if(view.getId()==R.id.btn4){

    _ _     Intent_intent = new Intent(LiveSeedsActivity.this,
__     _     _    __MessageActivity.class);
_    _     _startActivity(intent);
  _      __ // btn4.setBackgroundColor(0xff00ff00);
   __     __Display_display = ((WindowManager) 
 _     _        _  _getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
    ___     if ((display.getRotation() == Surface.ROTATION_0) ||_
 _  _         _     (display.getRotation() ==_Surface.ROTATION_180)) {
         _      overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
_      _   _}

_      _}else_if(view.getId()==R.id.btn5){

__  _  _  _ //_  _ _  __    Intent intent = new Intent(OptionsActivity.this,
         _  //   _    __  _   _     OptionsActivity.class);
  _        _//_ _   _ _ _  _startActivity(intent);
 _ _ _      //__        ____Display display =_((WindowManager) 
 _  _  __   //  _  _   _         _  getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
            //  _ _   _ __  if ((display.getRotation() == Surface.ROTATION_0)_|| 
_       __  //         ___  __  (display.getRotation() == Surface.ROTATION_180)) {
_____     _ //     __    _ __   overridePendingTransition(R.anim.slide_in_right,_R.