private void initView() { leftbutton = (ImageView) this.findViewById(R.id.leftbutton); leftbutton.setOnClickListener(this); mainPopMenu = new MainPopMenu(this); mainPopMenu.setOnItemClickListener(this); second_detail_cover = (ImageView) this.findViewById(R.id.second_detail_cover); title = (TextView) this.findViewById(R.id.title); one_prices = (TextView) this.findViewById(R.id.one_prices); money = (TextView) this.findViewById(R.id.money); cont = (TextView) this.findViewById(R.id.cont); user_name = (TextView) this.findViewById(R.id.user_name); user_cont = (TextView) this.findViewById(R.id.user_cont); button_goods = (Button) this.findViewById(R.id.button_goods); button_user = (Button) this.findViewById(R.id.button_user); button_goods.setOnClickListener(this); button_user.setOnClickListener(this); one = (LinearLayout) this.findViewById(R.id.one); two = (LinearLayout) this.findViewById(R.id.two); one.setVisibility(View.VISIBLE); two.setVisibility(View.GONE); tel_click = (TextView) this.findViewById(R.id.tel_click); tel_click.setOnClickListener(this); }
// 弹出顶部主菜单 public void onTopMenuPopupButtonClick(View view) { mainPopMenu.showAsDropDown(view); }