public void setBackButtonListener(Button buttonBack, final FragmentManager fragmentManager) { if (DeviceProperty.isPhone()) { buttonBack.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { TKBTool.animationReplaceFragment( fragmentManager.beginTransaction(), new Fragment_SRenderers(), "Fragment_SRenderers", R.id.pFAS_RLayout_ViewFlipper_Right_FLayout, R.animator.translate_top_in, R.animator.translate_bottom_out); } }); } else { buttonBack.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { TKBTool.animationReplaceFragment( fragmentManager.beginTransaction(), new Fragment_SRenderers(), "Fragment_SRenderers", R.id.FAS_RLayout_Right_RLayout, R.animator.alpha_in, R.animator.alpha_out); } }); } }
public void VIEWSET(View view) { if (DeviceProperty.isPhone()) { switch (view.getId()) { case R.id.pFSA_RLayout: pFSA_RLayout(view); break; case R.id.pFSA_RLayout_TITLE_RLayout: pFSA_RLayout_TITLE_RLayout(view); break; case R.id.pFSA_RLayout_BODY_RLayout: pFSA_RLayout_BODY_RLayout(view); break; } } else { switch (view.getId()) { case R.id.FSA_RLayout_TITLE_RLayout: PAD_FSA_RLayout_TITLE_RLayout(view); break; case R.id.FSA_RLayout_BODY_RLayout: PAD_FSA_RLayout_BODY_RLayout(view); break; } } }