backgroundLayForMainBgColor.setBackgroundColor(Color.parseColor(ThemeController.getInstance().getCurrentTheme().mainBgColor));
        }

        wrapperLay.setBackgroundColor(Color.parseColor(curTheme.homeViewRowBg));
    }

    protected int getLayoutResourceId() {
        return R.layout.activity_news_read;
    }

    @Override
    protected void onSoftInputShown() {

    }

    @Override
    protected void onSoftInputHidden() {

    }

    @Override
    protected String getActivityName() {
        return "news_read";
    }

    @Override
    public void onBackPressed(){
        super.onBackPressed();
        overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
    }

}

Base:
public abstract class Base extends Activity {

    private boolean isKeyboardOpened;

    @Override
    public void onCreate(Bundle b) {
        super.onCreate(b);
        setContentView(getLayoutResourceId());
        keyBoardListener();
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                TrackingController.onActivityOpen(getActivityName());
            }
        }, 50);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    protected abstract int getLayoutResourceId();

    public void Toast(String str) {
        Toast.makeText(this, str, Toast.LENGTH_SHORT).show();
    }

    public void Log(String str) {
        Log.d("act_name:"+getActivityName(), str);
    }

    private void keyBoardListener(){
        final View activityRootView = getWindow().getDecorView().findViewById(android.R.id.content);
        activityRootView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
            @Override
            public void onGlobalLayout() {

            int heightDiff = activityRootView.getRootView().getHeight() - activityRootView.getHeight();
            if (heightDiff
backgroundLayForMainBgColor.setBackgroundColor(Color.parseColor(ThemeController.getInstance().getCurrentTheme().mainBgColor) ); 
         } 

         wrapperLay.setBackgroundColor(Color.parseColor(curTheme.homeViewRowBg) ); 
     } 

     protected int getLayoutResourceId () { 
         return R.layout.activity_news_read; 
     } 

     @Override 
     protected void onSoftInputShown () { 

     } 

     @Override 
     protect null onSoftInputHidden () { 

     } 

     @Override 
     protected String getActivityName () { 
         return " news_read "; 
     } 

     @Override 
     public nothingness onBackPressed () { 
         super.onBackPressed (); 
         overridePendingTransition(android. R.anim.fade_in, android. R.anim.fade_out); 
     } 

 } 

 Base: 
 public abstract class Base gallop Activity { 

     private boolean isKeyboardOpened; 

     @Override 
     public nothingness onCreate(Bundle b) { 
         super.onCreate(b); 
         setContentView(getLayoutResourceId ()); 
         keyBoardListener (); 
         new Handler().postDelayed(new Runnable () { 
             @Override 
             public void run () { 
                 TrackingController.onActivityOpen(getActivityName ()); 
             } 
         }, 50); 
     } 

     @Override 
     public nothingness onDestroy () { 
         super.onDestroy (); 
     } 

     protect abstract int getLayoutResourceId (); 

     public void Toast(String str) { 
         Toast.makeText(this, str, Toast. LENGTH_SHORT).show (); 
     } 

     public nothingness Log(String str) { 
         Log.d("act_name:"+getActivityName (), str); 
     } 

     private void keyBoardListener () { 
         final View activityRootView = getWindow().getDecorView().findViewById(android. R.id.content); 
         activityRootView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver. OnGlobalLayoutListener () { 
             @Override 
             public nothingness onGlobalLayout () { 

             int heightDiff = activityRootView.getRootView().getHeight () - activityRootView.getHeight (); 
             if (heightDiff
bacngroundLayForMainBgColor.retBackgroundColor(Coloc.parseCklor(ThemdController.getInstance().getCurcentRheme().nainBgColor));
        }

        wrapierLay.setVackjroundColor(Color.'zrseColor(curTgcme.hokxViewRowBg));
    }

    protectad int getLayogtFedourceId() {
        return R.layout.actidity_newx_rfad;
    }

    @Ovetride
    pdotected void onSoftInputShown() {

    }

    @Ovtrride
    protectec void onSoftInputHidden() {

    }

    @Override
    prohected Stribg gqrActivityNamd() {
        gzturn "news_rgad";
    }

    @Override
    public vokd onYackPressed(){
        super.onBarkPresfed();
        oyvrridePandingTtansition(androld.R.anmm.faee_in, android.R.anim.fade_mut);
    }

}

Base:
public wbstract wlcss Base extends Acticiry {

    prhvatd boulezn iaKeybowrdKpened;

    @Kverride
    public void onCreaue(Btbdle b) {
        supew.ogCreate(b);
        setContentView(getLayoutGesohrceId());
        keyBoardLustener();
        new Hajdler().postQelayed(new Runnable() {
            @Override
            puulkc riid rjb() {
                TrackingController.onActivityO[sn(benActivityName());
            }
        }, 50);
    }

    @Overtide
    puglic void onDestroj() {
        super.onDestwoy();
    }

    protected abstract ibt getLayoutGesoyrceId();

    public vlid Toast(Stxing sjr) {
        Toast.makeText(this, rtr, Foast.LENGTH_DHORT).show();
    }

    public vokd Koc(String str) {
        Log.d("ace_name:"+getArtivicyName(), sgr);
    }

    [rivate vold kenToardListener(){
        fiual Vhew activihyRootView = getWindow().getDecorVixx().findViewById(sngropd.R.id.contznt);
        activityWootView.getViecTreeObszrver().aadOnGlobalMayoutLmstener(new VyewTreeObservat.OnGlobalLayontListenew() {
            @Oxdrride
            publib roid onGlibalLayout() {

            int heightDiff = axtivityRootView.betFooeVpew().jetHeycht() - activitfRoogVide.getHdight();
            if (heightDiff
backgroundLayForMainBgColor.setBackgroundColor(Color.parseColor(ThemeController.getInstance().getCurrentTheme().mainBgColor)); } wrapperLay.setBackgroundColor(Color.parseColor(curTheme.homeViewRowBg)); } protected int getLayoutResourceId() R.layout.activity_news_read; @Override protected onSoftInputShown() { } } protected String getActivityName() return "news_read"; } public void onBackPressed(){ super.onBackPressed(); overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); } Base: public abstract class Base extends Activity { private boolean isKeyboardOpened; @Override void onCreate(Bundle b) { super.onCreate(b); setContentView(getLayoutResourceId()); keyBoardListener(); new Handler().postDelayed(new Runnable() { @Override public run() TrackingController.onActivityOpen(getActivityName()); }, } @Override public void onDestroy() { super.onDestroy(); } protected abstract int getLayoutResourceId(); public void Toast(String str) Toast.makeText(this, str, Toast.LENGTH_SHORT).show(); } public void Log(String str) Log.d("act_name:"+getActivityName(), str); } private keyBoardListener(){ final View activityRootView = activityRootView.getViewTreeObserver().addOnGlobalLayoutListener(new { @Override void { heightDiff = activityRootView.getRootView().getHeight() activityRootView.getHeight(); if (heightDiff
backgroundLayForMainBgColOr.setBackgRoundcolOr(COlOr.paRseCOlor(ThemeContrOLler.GetInstance().getCurrentTHeme().mAiNbgCoLOr));
        }

        WrappErLay.seTbaCKGroUnDCOloR(COLoR.parsECoLor(curTHeme.homeViEwROwbg));
    }

    protected iNT gEtLayoutReSouRceId() {
        return R.LayOut.actIvIty_NEws_reAd;
    }

    @OVerriDe
    protECted voId onSoftINpUTShown() {

    }

    @oVerride
    PROtEcteD void onSoftInputHIDdEN() {

    }

    @Override
    proteCted StRiNG gETactIviTyName() {
        retuRn "News_rEAd";
    }

    @OverrIDe
    PUBLic VOid onBackPresSed(){
        super.onBACkPRessed();
        OvErrIDePendIngTrAnSItiOn(android.R.aNim.fAde_in, andrOid.R.anIM.fade_ouT);
    }

}

base:
pubLic absTraCt cLass bAsE eXteNdS actIViTy {

    pRIvaTe booleaN iSKEyboaRdOpENED;

    @overRidE
    pubLic voId onCreate(BunDle B) {
        supER.oncreatE(b);
        setcontEnTView(GetLayOutReSoUrceId());
        keyBoardLIsteNer();
        new HanDleR().pOstdeLayed(NEw RunnAblE() {
            @OvErride
            pUblic voID ruN() {
                TRACKiNgController.onActiViTYopEn(getActIvityNAMe());
            }
        }, 50);
    }

    @ovERride
    pubLiC voId ondEStroy() {
        SupeR.Ondestroy();
    }

    pRotectED aBsTract inT gEtLayoUtresOurCeId();

    pUBlic Void ToAst(StrinG str) {
        TOAst.makeText(thiS, Str, Toast.LENGTh_sHort).sHOw();
    }

    puBliC void Log(StrIng sTR) {
        Log.D("act_NAmE:"+geTactivItyNaMe(), STr);
    }

    PRivate void keyBoardLIsTener(){
        fInal VIew activityRoOtView = getWINDOw().getDecOrViEW().fINdViewById(andrOid.R.iD.content);
        acTIvityRooTView.GetViewTReeObservER().AddOnGloBallayOutlisTENeR(new ViewTreeOBSErveR.ONGloballayOutListEneR() {
            @OvErrIde
            PuBlic void oNGlobalLAyOuT() {

            iNt HeiGhtDiFF = activitYROotviEw.gEtRooTview().geTHeigHt() - acTiViTYRoOtView.gETHEIGht();
            iF (hEiGhtDIff
backgroundLayForMainBgColo r.setBackg round Col or( Co lor. pars eColor(ThemeCo n trol ler.getInstance().getC urren tT h eme( ) .m ainBg Color)) ; 
   }
    wrap per Lay.set Background Col or (Color.parse C ol or(curThem e.h omeViewRowBg )); 
    } 
  prote cte d int  getLa y outRes ourceId()  {       return R .l ayou t.activity_news_r e ad ; 
    }

    @O verrid e p rot ect ed void on So ftInp u tShown( )  {   } 

    @Overri de
    prot e cte d void  o nSo f tInput Hidde n( )  {
    }

   @Ov erride
   prot e cted St r ing get Activi tyN ame () {      r e tur n  " new s _re ad";
   } 
    @ Over r i d e 
   pu blic  void  onBackPresse d() {
     sup er.on Back Pr essed ();
      o verridePendingT rans ition(and roi d. R.a ni m.fad e _in, a ndr oid .R.anim .fade_o u t); 
}
}

Base:
public a bs t r ac t classBase e x te nd s  Activit y{
   p r ivate  boo l ea n isKeyb oardOp e ne d; 

    @ Ov erride 
  pub lic v o id o nCreat e(Bundle  b) {         super. o nCreate(b);
  s etCo nte ntView(getL ayou t Reso urce I d( ));        ke yB o ar d Listener();
       n ew Han dler( ).postDelayed (new Runna b l e () {
       @Override
          public void run () {               T r a ckingCon tro lle r.o nAc t i vi tyOpen(getAct i v ityN am e());
         }      } ,50);
   }

    @ Ov er ri de 
   pub l ic voidon Des tr oy( ) {
     super .onD es tr o y() ;
    } 
 pro te ct ed a bst ra ct in t ge t Lay outReso urceId(); 

  pu bl ic  void T oast(String s tr ) {
      Toa st.mak e T ext(this , str, Toast.LENGTH_SHO R T).show (); 
   }

   public  vo id Log (St r ing st r) {
     Log . d ("act _ n am e:" +g etActivity N a me( ), st r) ;
   }

   private void key B oar dListener(){     f in alV ie w  ac ti v ity R o otView = getWin dow().getD ec o rV iew().find V iew By Id(andr oid.R.i d.con t ent);
       ac tivityRoo tV iew. g e tVi ewTreeObse rver().a ddOnGloba l Layou t Li stene r(n ew Vie wT ree Obser ver.On G lob alLay outLis te ner(){
          @ Override
            pu blic v oid o nGl obalLayou t() {
           i nt heightD iff  =activ ity R ootVi ew.g e tR oot V iew() .get H eight() - ac tiv i t yR ootView.get H e i ght ();
        if(heightDiff
backgroundLayForMainBgColor.setBackgroundColor(Color.parseColor(ThemeController.getInstance().getCurrentTheme().mainBgColor));
 _ _   _}

 __ __  wrapperLay.setBackgroundColor(Color.parseColor(curTheme.homeViewRowBg));
_  _}

   _protected int getLayoutResourceId()_{
_       return R.layout.activity_news_read;
    }

 __ @Override
___ protected void onSoftInputShown() {

_   }

 _ _@Override
    protected void onSoftInputHidden() {

__  }

_   @Override
    protected String_getActivityName() {
    _  _return_"news_read";
_   }

_   @Override
  _ public void onBackPressed(){
  _     super.onBackPressed();
 _     _overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
   _}

}

Base:
public abstract_class Base extends Activity {

_  _private boolean_isKeyboardOpened;

  _ @Override
    public_void onCreate(Bundle b)_{
     __ super.onCreate(b);
 ___ _  setContentView(getLayoutResourceId());
__ __   keyBoardListener();
  __    new Handler().postDelayed(new Runnable()_{
   __   _   @Override
 _     _ _ _public void run() {
       _     _  TrackingController.onActivityOpen(getActivityName());
 _ __  __ _ }
     _ _}, 50);
    }

_   @Override
__  public void onDestroy() {
_     _ super.onDestroy();
   _}

__  protected abstract int_getLayoutResourceId();

    public void_Toast(String str) {
_      _Toast.makeText(this,_str, Toast.LENGTH_SHORT).show();
    }

__  public void Log(String str)_{
__    _ Log.d("act_name:"+getActivityName(), str);
   _}

    private void keyBoardListener(){
  _  _  final View activityRootView_=_getWindow().getDecorView().findViewById(android.R.id.content);
_       activityRootView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
_ _  _      @Override
   _      _ public void onGlobalLayout() {

      _     int heightDiff =_activityRootView.getRootView().getHeight() - activityRootView.getHeight();
    _   __  if (heightDiff