예제 #1
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.njzq_gridview);

    initPopupWindow();

    preView = (ImageView) findViewById(R.id.previous_screen);

    viewFlipper = (ViewFlipper) this.findViewById(R.id.mainmenu_container);

    leftIn = AnimationUtils.loadAnimation(this, R.anim.push_left_in_layout);
    leftOut = AnimationUtils.loadAnimation(this, R.anim.push_left_out_layout);
    rightIn = AnimationUtils.loadAnimation(this, R.anim.push_right_in_layout);
    rightOut = AnimationUtils.loadAnimation(this, R.anim.push_right_out_layout);

    mGrid = (MyGrid) findViewById(R.id.mainmenu_grid);
    mGrid2 = (MyGrid) findViewById(R.id.mainmenu_grid2);

    Bundle bundle = getIntent().getExtras();
    menuId = bundle.getInt("menu_id");
    menuName = "场外基金";

    initMenuName(menuId, -1);

    initTitle(R.drawable.njzq_title_left_back, 0, menuName);
    // hiddenToolBar();
    changeBG();
    String userType = TradeUser.getInstance().getUserType();
    if ("serv".equals(userType)) initToolBar(Global.BAR_IMAGE_1, Global.BAR_TAG_2);
    else initToolBar(Global.BAR_IMAGE_2, Global.BAR_TAG);
  }
예제 #2
0
 @Override
 protected void onResume() {
   super.onResume();
 }