Exemplo n.º 1
0
  private void initView() {
    ImageView iv_leftarrow = (ImageView) findViewById(R.id.iv_setting_leftarrow);
    iv_leftarrow.setOnClickListener(onClickListener);

    RelativeLayout rl_version = (RelativeLayout) findViewById(R.id.rl_setting_version);
    rl_version.setOnClickListener(onClickListener);

    TextView tv_version = (TextView) findViewById(R.id.tv_setting_version);
    tv_version.setText(getVersion());

    RelativeLayout rl_storage = (RelativeLayout) findViewById(R.id.rl_setting_storage);
    rl_storage.setOnClickListener(onClickListener);

    tv_storage = (TextView) findViewById(R.id.tv_setting_storage);
    tv_storage.setText(
        getAutoFileOrFilesSize(Environment.getExternalStorageDirectory() + "/CourtPocket"));

    RelativeLayout rl_notification = (RelativeLayout) findViewById(R.id.rl_setting_notification);
    rl_notification.setOnClickListener(onClickListener);

    tv_notification = (TextView) findViewById(R.id.tv_setting_notification);
    SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(SettingActivity.this);
    Boolean isNotificationOpen = prefs.getBoolean("isNotificationOpen", true);
    if (isNotificationOpen) {
      tv_notification.setText("打开");
    } else {
      tv_notification.setText("关闭");
    }

    Button btn_quitlogin = (Button) findViewById(R.id.btn_setting_quitlogin);
    if (!Data.ISLOGIN) {
      btn_quitlogin.setVisibility(View.GONE);
    }
    btn_quitlogin.setOnClickListener(onClickListener);
  }
  private void initViews() {

    relVote = (RelativeLayout) findViewById(R.id.rel_interaction_vote);
    relCritic = (RelativeLayout) findViewById(R.id.rel_interaction_critic);
    relAward = (RelativeLayout) findViewById(R.id.rel_interaction_award);

    btnVote = (Button) findViewById(R.id.btn_interaction_vote);
    btnCritic = (Button) findViewById(R.id.btn_interaction_critic);
    btnAward = (Button) findViewById(R.id.btn_interaction_award);

    imgLogo = (ImageView) findViewById(R.id.img_logo);
    txtTitle = (TextView) findViewById(R.id.txt_title);
    ImageButton imgMessage = (ImageButton) findViewById(R.id.btn_message);
    TextView txtMsgNum = (TextView) findViewById(R.id.txt_message_num);
    imgMessage.setVisibility(View.GONE);
    txtMsgNum.setVisibility(View.GONE);

    imgLogo.setVisibility(View.GONE);
    txtTitle.setText(getResources().getString(R.string.interaction));

    relVote.setOnClickListener(this);
    relCritic.setOnClickListener(this);
    relAward.setOnClickListener(this);

    btnVote.setOnClickListener(this);
    btnCritic.setOnClickListener(this);
    btnAward.setOnClickListener(this);
  }
Exemplo n.º 3
0
  private void initListener() {

    // 点击事件
    mSelectModel.setOnClickListener(this);
    mRlSelectLength.setOnClickListener(this);
    mRlSelectLoad.setOnClickListener(this);
    mBtnSave.setOnClickListener(this);
    mImgBack.setOnClickListener(this);

    segmentStatus.setOnCheckedChangeListener(
        new OnCheckedChangeListener() {
          @Override
          public void onCheckedChanged(RadioGroup group, int checkedId) {
            if (checkedId == R.id.activity_edit_info_rb_man) {
              // 男
              mNewUserBean.sex = Constants.Value.MAN;
            } else if (checkedId == R.id.activity_edit_info_rb_woman) {
              // 女
              mNewUserBean.sex = Constants.Value.WOMAN;
            }
          }
        });
    // 名字变化

  }
Exemplo n.º 4
0
 private void initviews() {
   // 成为大师
   btn_beaugur = (Button) mycontext.findViewById(R.id.btn_me_beaugur);
   btn_beaugur.setOnClickListener(
       new View.OnClickListener() {
         @Override
         public void onClick(View v) {
           judgeAugur();
         }
       });
   user_head = (ImageView) mycontext.findViewById(R.id.iv_me_my_head);
   // 网络中请求
   BmobUtils.getCurrentUser(mycontext)
       .getAvatar()
       .loadImageThumbnail(mycontext, user_head, 160, 160, 100);
   tv_user_name = (TextView) mycontext.findViewById(R.id.tv_me_user_name);
   tv_gold_num = (TextView) mycontext.findViewById(R.id.tv_me_my_goldnum);
   btn_recharge = (Button) mycontext.findViewById(R.id.btn_me_recharge);
   btn_recharge.setOnClickListener(this);
   container_myfocus = (RelativeLayout) mycontext.findViewById(R.id.container_myfocus);
   container_myfocus.setOnClickListener(this);
   container_editinfo = (RelativeLayout) mycontext.findViewById(R.id.container_editdata);
   container_editinfo.setOnClickListener(this);
   container_setting = (RelativeLayout) mycontext.findViewById(R.id.container_setting);
   container_setting.setOnClickListener(this);
   container_tochat = (RelativeLayout) mycontext.findViewById(R.id.container_tochat);
   container_tochat.setOnClickListener(this);
 }
  protected void onResume() {
    super.onResume();
    availableMissions = new ArrayList<MissionSummary>();
    final LinearLayout lines = (LinearLayout) findViewById(R.id.lines);
    Log.d("Mission Select Activity", "So far, so good: lines found.");
    lines.setScrollContainer(true);
    lines.setBackgroundColor(Color.RED);
    getAvailableMissionList();
    for (int i = 0; i < availableMissions.size(); i++) {
      Log.d("Mission Select Activity", "About to add " + availableMissions.get(i).mTitle + ".");
      RelativeLayout nextView = availableMissions.get(i).getWindowBlob();
      lines.addView(nextView);
      final String extra = availableMissions.get(i).getFileName();

      if (!(extra.equals("N/A"))) {
        missionBriefing = new Intent(this, MissionBriefingActivity.class);
        nextView.setOnClickListener(
            new OnClickListener() {
              public void onClick(View v) {
                missionBriefing.putExtra("FileName", extra);
                startActivity(missionBriefing);
              }
            });
      } else {
        missionBriefing = new Intent(this, MissionDownLoadActivity.class);
        nextView.setOnClickListener(
            new OnClickListener() {
              public void onClick(View v) {
                startActivity(missionBriefing);
              }
            });
      }
    }
  }
Exemplo n.º 6
0
  private void initViews() {
    myclick = new MyOnClick();
    myPageChange = new MyPageChangeListener();

    viewPager = (ViewPager) findViewById(R.id.viewpager_content);
    viewPager.setAdapter(fragmentPagerAdapter);
    viewPager.setOnPageChangeListener(myPageChange);
    viewPager.setOffscreenPageLimit(4);

    layout_home = (RelativeLayout) findViewById(R.id.layout_home);
    layout_folders = (RelativeLayout) findViewById(R.id.layout_folders);
    layout_friends = (RelativeLayout) findViewById(R.id.layout_friends);
    layout_settings = (RelativeLayout) findViewById(R.id.layout_settings);
    layout_home.setOnClickListener(myclick);
    layout_folders.setOnClickListener(myclick);
    layout_friends.setOnClickListener(myclick);
    layout_settings.setOnClickListener(myclick);
    image_home = (ImageView) findViewById(R.id.image_home);
    image_folders = (ImageView) findViewById(R.id.image_folders);
    image_friends = (ImageView) findViewById(R.id.image_friends);
    image_settings = (ImageView) findViewById(R.id.image_settings);
    text_home = (TextView) findViewById(R.id.text_home);
    text_folders = (TextView) findViewById(R.id.text_folders);
    text_friends = (TextView) findViewById(R.id.text_friends);
    text_settings = (TextView) findViewById(R.id.text_settings);
  }
Exemplo n.º 7
0
 @Override
 protected void initView() {
   new TitleManager(AccountSecurityActivity.this, getString(R.string.account_security), 2)
       .getTitleRightView()
       .setVisibility(View.INVISIBLE);
   if (AppTools.PSWLV.equals("1")) psw_lv.setBackgroundResource(R.drawable.img_my_security_low);
   else if (AppTools.PSWLV.equals("2"))
     psw_lv.setBackgroundResource(R.drawable.img_my_security_middle);
   else if (AppTools.PSWLV.equals("3"))
     psw_lv.setBackgroundResource(R.drawable.img_my_security_high);
   else psw_lv.setBackground(null);
   if (AppTools.TEL.equals("")) {
     tel_txt.setTextColor(getResources().getColor(R.color.light_red));
     tel_txt.setText(getString(R.string.account_unbounded));
     binding_tel_layout.setOnClickListener(this);
   } else {
     tel_txt.setTextColor(getResources().getColor(R.color.lightgrey));
     tel_txt.setText(Toolkit.getPhoneUserName(AppTools.TEL));
   }
   if (AppTools.EMAIL.equals("")) {
     email_txt.setTextColor(getResources().getColor(R.color.light_red));
     email_txt.setText(getString(R.string.account_unbounded));
     binding_email_layout.setOnClickListener(this);
   } else {
     email_txt.setTextColor(getResources().getColor(R.color.lightgrey));
     email_txt.setText(Toolkit.getMailUserName(AppTools.EMAIL));
   }
 }
Exemplo n.º 8
0
  @Override
  public void onCreate() {
    super.onCreate();

    LayoutInflater inflater = LayoutInflater.from(this);
    mShell = (UiShell) inflater.inflate(R.layout.ui_application_container, null);

    View navMenu = inflater.inflate(R.layout.ui_navigation_menu, null);
    View actionsMenu = inflater.inflate(R.layout.ui_actions_menu, null);
    View activityContainer = inflater.inflate(R.layout.ui_activity_container, null);

    RelativeLayout touchInterceptor =
        (RelativeLayout) activityContainer.findViewById(R.id.touch_interceptor);
    RelativeLayout menuButton = (RelativeLayout) activityContainer.findViewById(R.id.menu_button);
    RelativeLayout actionsButton =
        (RelativeLayout) activityContainer.findViewById(R.id.action_button);

    menuButton.setOnClickListener(new UiMenuOnClickListener(mShell, navMenu, touchInterceptor, 0));
    actionsButton.setOnClickListener(
        new UiMenuOnClickListener(mShell, actionsMenu, touchInterceptor, 2));

    final View[] children = new View[] {navMenu, activityContainer, actionsMenu};
    int scrollToViewIndex = 1;
    mShell.initViews(children, scrollToViewIndex);

    mContentContainer = (FrameLayout) mShell.findViewById(R.id.content_container);
  }
  @Override
  public void initView() {
    clickLeft_iv(
        new OnClickListener() {

          @Override
          public void onClick(View v) {
            Intent intent =
                new Intent(LineTeachSelePlayActivity.this, LineTeachOrderActivity.class);
            intent.putExtra("TYPE", PLAY_ZH);
            startActivity(intent);
            finish();
          }
        });

    req = new PayReq();
    sb = new StringBuffer();
    msgApi.registerApp(APP_ID);
    /** ************ 微信支付 ************* */
    setTitle(R.string.golfs_marktitle_06);

    /** 获取传递过来的支付对象 * */
    Intent intent = getIntent();
    orderBean = (OrderBean) intent.getSerializableExtra("orderbean");

    // 支付金额
    aQuery.id(R.id.play_mark).text(getString(R.string.golfs_money) + orderBean.goodsAmount);

    /** ** 支付方式 **** */
    zhifuRelativeLayout = (RelativeLayout) findViewById(R.id.zhufu_rel_01);
    zhifuRelativeLayout2 = (RelativeLayout) findViewById(R.id.zhufu_rel_02);
    zhifuRelativeLayout.setOnClickListener(mClickListener);
    zhifuRelativeLayout2.setOnClickListener(mClickListener);
  }
Exemplo n.º 10
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_home);
    settingView = (RelativeLayout) findViewById(R.id.butt_setting);
    aboutView = (RelativeLayout) findViewById(R.id.butt_about);
    memberView = (RelativeLayout) findViewById(R.id.butt_member);
    aboutDetail = (RelativeLayout) findViewById(R.id.about_detail);
    // set onclickButton
    onclick1 =
        new OnClickListener() {
          @Override
          public void onClick(View v) {
            int id = v.getId();
            switch (v.getId()) {
              case R.id.butt_about:
                break;
              case R.id.butt_member:
                Intent memberActivity = new Intent(v.getContext(), MemberActivity.class);
                // StringBuffer urlString = new StringBuffer();
                startActivityForResult(memberActivity, 12);
                // ActivityGroup1.replaceContentView("memberActivity", memberActivity);
                break;
              default:
                break;
            }
          }
        };

    // set onclickListener
    settingView.setOnClickListener(onclick1);
    aboutView.setOnClickListener(onclick1);
    memberView.setOnClickListener(onclick1);
  }
Exemplo n.º 11
0
  public void InitalView() {
    avatars_text = (TextView) findViewById(R.id.avatars_text);
    avatars_text.setText("“你所有为人称道的美丽,都不及\n我第一次遇见你“");

    user_name = (TextView) findViewById(R.id.user_name);
    user_name.setText("用户");

    imageLayout = (RelativeLayout) findViewById(R.id.imageLayout);
    imageLayout.setOnClickListener(this);

    avaters_name = (RelativeLayout) findViewById(R.id.avaters_name);
    avaters_name.setOnClickListener(this);

    name_I = (TextView) findViewById(R.id.name_l);
    name_I.setText(Characters.getSpells(user_name.getText().toString().substring(0, 1)));

    logout_layout = (RelativeLayout) findViewById(R.id.logout_layout);
    logout_layout.setOnClickListener(this);

    user_tel = (Button) findViewById(R.id.user_tel);
    user_tel.setOnClickListener(this);

    cancelButton = (Button) findViewById(R.id.cancelButton);
    cancelButton.setOnClickListener(this);
    avatars = (ImageView) findViewById(R.id.avatars);
  }
Exemplo n.º 12
0
 public void setListeners(OnClickListener onClickListener) {
   mTakePhotoBtn.setOnClickListener(onClickListener);
   mUserInfoRl.setOnClickListener(onClickListener);
   mSettingRl.setOnClickListener(onClickListener);
   mLogoutRl.setOnClickListener(onClickListener);
   mAvatarIv.setOnClickListener(onClickListener);
 }
Exemplo n.º 13
0
 @Override
 protected void setListener() {
   mGvPicture.setOnItemClickListener(this);
   mRlBack.setOnClickListener(this);
   mRlReason.setOnClickListener(this);
   mRlPublish.setOnClickListener(this);
 }
Exemplo n.º 14
0
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    Log.d(TAG, "---onCreateView----");
    View view = inflater.inflate(R.layout.search_layout, null);
    ClickListener listener = new ClickListener();
    mFoodSearchImgBt = (ImageView) view.findViewById(R.id.food_img);
    mPotSearchImgBt = (ImageView) view.findViewById(R.id.view_spot);
    mHotelSearchImgBt = (ImageView) view.findViewById(R.id.hotel_img);
    mPubSearchImgBt = (ImageView) view.findViewById(R.id.bar);
    mSnakesSearchImgBt = (ImageView) view.findViewById(R.id.snake);
    mMoreSearchImgBt = (ImageView) view.findViewById(R.id.more_classify);

    mFoodSearchImgBt.setOnClickListener(listener);
    mPotSearchImgBt.setOnClickListener(listener);
    mHotelSearchImgBt.setOnClickListener(listener);
    mPubSearchImgBt.setOnClickListener(listener);
    mSnakesSearchImgBt.setOnClickListener(listener);
    mMoreSearchImgBt.setOnClickListener(listener);

    mMemberCard = (RelativeLayout) view.findViewById(R.id.member_card);
    mSearchWholeCity = (RelativeLayout) view.findViewById(R.id.search_all);
    mRanking = (RelativeLayout) view.findViewById(R.id.ranking_layout);
    mCoupon = (RelativeLayout) view.findViewById(R.id.coupon_layout);

    mMemberCard.setOnClickListener(listener);
    mSearchWholeCity.setOnClickListener(listener);
    mRanking.setOnClickListener(listener);
    mCoupon.setOnClickListener(listener);
    return view;
  }
Exemplo n.º 15
0
 private void InitializeViews() {
   myPersonalLayout = (RelativeLayout) findViewById(R.id.my_personal_rl);
   myPersonalLayout.setOnClickListener(this);
   myTopics = (RelativeLayout) findViewById(R.id.my_topics_rl);
   myTopics.setOnClickListener(this);
   myFavorites = (RelativeLayout) findViewById(R.id.my_favorite_rl);
   myFavorites.setOnClickListener(this);
   myRelatedLayout = (RelativeLayout) findViewById(R.id.my_related_rl);
   myRelatedLayout.setOnClickListener(this);
   myComments = (RelativeLayout) findViewById(R.id.my_comment_rl);
   myComments.setOnClickListener(this);
   myPoints = (RelativeLayout) findViewById(R.id.my_follow_points);
   myPoints.setOnClickListener(this);
   mySettings = (RelativeLayout) findViewById(R.id.my_setting_rl);
   mySettings.setOnClickListener(this);
   myHome = (RelativeLayout) findViewById(R.id.my_home_rl);
   myHome.setOnClickListener(this);
   myWork = (RelativeLayout) findViewById(R.id.my_work_rl);
   myWork.setOnClickListener(this);
   myQuit = (RelativeLayout) findViewById(R.id.my_quit_rl);
   myQuit.setOnClickListener(this);
   myHomeImageView = (ImageView) findViewById(R.id.my_home_image);
   myWorkImageView = (ImageView) findViewById(R.id.my_work_image);
   myAvatorImageView = (ImageView) findViewById(R.id.my_avtor);
   titleTextView = (TextView) findViewById(R.id.weibo_title_TV);
   titleTextView.setText(R.string.app_name);
   nickNameView = (TextView) findViewById(R.id.my_nickname);
   accountNameView = (TextView) findViewById(R.id.my_account);
 }
Exemplo n.º 16
0
  private void showUploadDialog() {
    // set up dialogVideoInfo

    dialogUpload.setCancelable(true);

    LinearLayout ll_upload = (LinearLayout) dialogUpload.findViewById(R.id.ll_upload);

    if (display.getWidth() > display.getHeight()) {
      ll_upload.getLayoutParams().width = display.getHeight();
      ll_upload.getLayoutParams().height = display.getHeight() / 2;
    } else {
      ll_upload.getLayoutParams().width = display.getWidth();
      ll_upload.getLayoutParams().height = display.getWidth() / 2;
    }

    // set up button
    RelativeLayout rl_recod_video = (RelativeLayout) dialogUpload.findViewById(R.id.rl_recod_video);
    rl_recod_video.setOnClickListener(
        new View.OnClickListener() {

          Intent intent;

          @Override
          public void onClick(View v) {
            intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
            intent.putExtra(
                MediaStore.EXTRA_VIDEO_QUALITY, 1); // set the video image quality to high
            intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 0);
            // start the Video Capture Intent
            startActivityForResult(intent, RECORD_VIDEO);
          }
        });
    RelativeLayout rl_pick_from_gallery =
        (RelativeLayout) dialogUpload.findViewById(R.id.rl_pick_from_gallery);
    rl_pick_from_gallery.setOnClickListener(
        new View.OnClickListener() {

          Intent intent;

          @Override
          public void onClick(View v) {
            intent = new Intent(Intent.ACTION_PICK, null);
            intent.setType("video/*");
            startActivityForResult(intent, 1);
          }
        });
    ImageView iv_close = (ImageView) dialogUpload.findViewById(R.id.iv_close);
    iv_close.setOnClickListener(
        new View.OnClickListener() {

          @Override
          public void onClick(View v) {
            finish();
            getActivityMediator().showMain();
          }
        });

    // now that the dialogVideoInfo is set up, it's time to show it
    dialogUpload.show();
  }
Exemplo n.º 17
0
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    this.menuToolbar = menu;
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.menu_abstract_main, menu);

    RelativeLayout cartBadge =
        (RelativeLayout) this.menuToolbar.findItem(R.id.action_shoppingcart).getActionView();
    cartBadge.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            tkDrawer.selectDrawerItem(SHOPPINGCART_DRAWER_POSITION);
          }
        });

    RelativeLayout homeBadge =
        (RelativeLayout) this.menuToolbar.findItem(R.id.action_calendar).getActionView();
    homeBadge.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            tkDrawer.selectDrawerItem(HOME_DRAWER_POSITION);
          }
        });

    return super.onCreateOptionsMenu(menu);
  }
  public void initView() {
    if (adapter == null) {
      adapter = new ItemFragmentPagerAdapter(this.getSupportFragmentManager(), fragmentList);
      viewpager.setOffscreenPageLimit(4);
      viewpager.setAdapter(adapter);
    } else {
      adapter.notifyDataSetChanged();
    }
    rela1.setOnClickListener(this);
    rela2.setOnClickListener(this);
    rela3.setOnClickListener(this);

    setTabSelectState();
    viewpager.setCurrentItem(0);
    title.setText("下拉刷新");
    viewpager.setOnPageChangeListener(
        new ViewPager.OnPageChangeListener() {
          @Override
          public void onPageScrolled(int i, float v, int i2) {}

          @Override
          public void onPageSelected(int i) {
            tabIndex = i;
            setTabSelectState();
          }

          @Override
          public void onPageScrollStateChanged(int i) {}
        });
  }
Exemplo n.º 19
0
  /*
   * [功能详细描述]
   * 初始化参数
   */
  private void initId() {
    exitRelative = (RelativeLayout) findViewById(R.id.exitRelative);
    toflinearlayout = (LinearLayout) findViewById(R.id.toflinearlayout);
    psreativelayout = (RelativeLayout) findViewById(R.id.psreativelayout);
    hhsrelativelayout = (RelativeLayout) findViewById(R.id.hhsrelativelayout);
    mrelativelayout = (RelativeLayout) findViewById(R.id.mrelativelayout);
    urelativelayout = (RelativeLayout) findViewById(R.id.urelativelayout);
    drelativelayout = (RelativeLayout) findViewById(R.id.drelativelayout);
    aetlinearlayout = (LinearLayout) findViewById(R.id.aetlinearlayout);
    dprelativelayout = (RelativeLayout) findViewById(R.id.dprelativelayout);
    hrelativelayout = (ImageView) findViewById(R.id.hrelativelayout);
    bsrelativelayout = (ImageView) findViewById(R.id.bsrelativelayout);
    mhrealtivelayout = (RelativeLayout) findViewById(R.id.mhrealtivelayout);
    trelativelayout = (RelativeLayout) findViewById(R.id.trelativelayout);
    osrelativelayout = (RelativeLayout) findViewById(R.id.osrelativelayout);

    exitRelative.setOnClickListener(this);
    toflinearlayout.setOnClickListener(this);
    psreativelayout.setOnClickListener(this);
    hhsrelativelayout.setOnClickListener(this);
    mrelativelayout.setOnClickListener(this);
    urelativelayout.setOnClickListener(this);
    drelativelayout.setOnClickListener(this);
    aetlinearlayout.setOnClickListener(this);
    dprelativelayout.setOnClickListener(this);
    hrelativelayout.setOnClickListener(this);
    bsrelativelayout.setOnClickListener(this);
    mhrealtivelayout.setOnClickListener(this);
    trelativelayout.setOnClickListener(this);
    osrelativelayout.setOnClickListener(this);
  }
Exemplo n.º 20
0
 @Override
 public View onCreateView(
     LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   View view = inflater.inflate(R.layout.pc_main_layout, null);
   rCollection = (RelativeLayout) view.findViewById(R.id.r_pc_main_collection);
   rRead = (RelativeLayout) view.findViewById(R.id.r_pc_main_read);
   rTie = (RelativeLayout) view.findViewById(R.id.R_pc_main_tie);
   rGold = (RelativeLayout) view.findViewById(R.id.r_pc_main_gold);
   rCollection.setOnClickListener(this);
   rRead.setOnClickListener(this);
   rTie.setOnClickListener(this);
   rGold.setOnClickListener(this);
   ivUserHead = (ImageView) view.findViewById(R.id.iv_img_pc_head);
   ivUserHead.setOnClickListener(this);
   tvLogin = (TextView) view.findViewById(R.id.tv_user_login);
   tvLogin.setOnClickListener(this);
   tvUser = (TextView) view.findViewById(R.id.tv_user_login);
   initUser();
   selfinfo = (TextView) view.findViewById(R.id.tv_pc_selfinfo);
   selfinfo.setOnClickListener(this);
   rSetting = (RelativeLayout) view.findViewById(R.id.r_pc_main_setting);
   rSetting.setOnClickListener(this);
   return view;
 }
Exemplo n.º 21
0
  void initView() {

    mInflater = LayoutInflater.from(this);
    tempCikuName = ConfigManager.getCurCiku(this);
    tempCnName = Global.gCurTableName.ciku_name;
    tempOrderType = ConfigManager.getOrderType(mCxt);
    tempNewsCount = ConfigManager.getWordEveryDayNum(mCxt);
    OkBtn = (Button) findViewById(R.id.study_plan_activity_ok_btn);
    OkBtn.setOnClickListener(this);
    cikuRy = (RelativeLayout) findViewById(R.id.study_plane_activity_ciku_ry);
    cikuRy.setOnClickListener(this);
    orderRy = (RelativeLayout) findViewById(R.id.study_plane_activity_order_ry);
    orderRy.setOnClickListener(this);
    dayWordRy = (RelativeLayout) findViewById(R.id.study_plane_activity_new_ry);
    dayWordRy.setOnClickListener(this);

    backLy = (LinearLayout) findViewById(R.id.shudy_plan_activity_ly);
    backLy.setOnClickListener(this);

    cikuText = (TextView) findViewById(R.id.study_plane_activity_ciku_text);
    orderText = (TextView) findViewById(R.id.study_plane_activity_order_text);
    newText = (TextView) findViewById(R.id.study_plane_activity_new_text);

    setCikuDefultText();
    setNewDefultText();
    setOrderDefultText();
  }
Exemplo n.º 22
0
 @Override
 public void initListener() {
   rl_alert_repaet_daily.setOnClickListener(this);
   rl_alert_repeat_time.setOnClickListener(this);
   rl_alert_starttime.setOnClickListener(this);
   iv_notify_open.setOnClickListener(this);
   tv_title_right.setOnClickListener(this);
 }
Exemplo n.º 23
0
 @Override
 protected void setListener() {
   // TODO Auto-generated method stub
   logout.setOnClickListener(this);
   update.setOnClickListener(this);
   cleanCache.setOnClickListener(this);
   pushSwitch.setOnCheckedChangeListener(this);
 }
Exemplo n.º 24
0
  @Override
  protected void setListener() {
    // TODO Auto-generated method stub
    relativeLayout2.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View arg0) {
            LogUtils.e("=================relativeLayout2=================");
            Intent intent = new Intent(MenuFragment.ACTION_FRAGMENT_MYQUESTIONFRAGMENT);
            intent.putExtra("type", 1);
            getActivity().sendBroadcast(intent);
          }
        });
    relativeLayout1.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View arg0) {
            // TODO Auto-generated method stub
            LogUtils.e("=================relativeLayout1=================");
            Intent intent = new Intent(MenuFragment.ACTION_FRAGMENT_MYQUESTIONFRAGMENT);
            intent.putExtra("type", 3);
            getActivity().sendBroadcast(intent);
          }
        });
    tv_set.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View arg0) {
            // TODO Auto-generated method stub
            if (imgurl != null) {
              Intent intent = new Intent(getActivity(), SetUserActivity.class);
              Bundle bundle = new Bundle();
              bundle.putString("imgurl", imgurl);
              bundle.putBoolean("stopService", stopService);
              intent.putExtras(bundle);
              startActivity(intent);
            }
          }
        });
    tv_sign.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View arg0) {
            // TODO Auto-generated method stub
            // popupWindow_ewm.showAtLocation(relativeLayout,
            // Gravity.CENTER, 0, 0);
            Intent intent = new Intent(getActivity(), QrCodeActiviy.class);
            intent.putExtra("name", name);
            intent.putExtra("img", qr);
            intent.putExtra("imgurl", imgurl);
            startActivity(intent);
          }
        });
  }
Exemplo n.º 25
0
  @Override
  public void initEvents() {
    layHelp.setOnClickListener(this);
    layFitable.setOnClickListener(this);
    layUpdate.setOnClickListener(this);

    btnLeft.setOnClickListener(this);
    // tbTitle.getLeftButton().setOnClickListener(this);
  }
Exemplo n.º 26
0
 private void initViewsEvent() {
   iv_back.setOnClickListener(this);
   modify_user_info.setOnClickListener(this);
   user_addfriend.setOnClickListener(this);
   user_friends.setOnClickListener(this);
   user_groups.setOnClickListener(this);
   accept_addfriend.setOnClickListener(this);
   rl_level_coin.setOnClickListener(this);
 }
Exemplo n.º 27
0
 private void intilazeleft(View v) {
   // RelativeLayout rl_wall,rl_servicelist,rl_calender,rl_client,rl_activities;
   rl_wall = (RelativeLayout) v.findViewById(R.id.wall);
   rl_calender = (RelativeLayout) v.findViewById(R.id.calender);
   rl_servicelist = (RelativeLayout) findViewById(R.id.servicelist);
   rl_wall.setOnClickListener(this);
   rl_calender.setOnClickListener(this);
   rl_servicelist.setOnClickListener(this);
 }
Exemplo n.º 28
0
  private void initView() {
    initTopBarForLeft("¹ØÓÚ");

    rl_about_features = (RelativeLayout) findViewById(R.id.rl_about_features);
    rl_about_update = (RelativeLayout) findViewById(R.id.rl_about_update);
    rl_about_main_page = (RelativeLayout) findViewById(R.id.rl_about_main_page);
    rl_about_features.setOnClickListener(this);
    rl_about_update.setOnClickListener(this);
    rl_about_main_page.setOnClickListener(this);
  }
  /** @Description: 设置监听器 */
  private void setListener() {
    topBackBtn.setOnClickListener(this);
    topSendBtn.setOnClickListener(this);

    itemTitleRL.setOnClickListener(this);
    contactTitleRL.setOnClickListener(this);

    picGV.setOnItemClickListener(this);
    picGV.setOnItemLongClickListener(this);
  }
Exemplo n.º 30
0
 /** 初始化控件 */
 private void init() {
   ndcxRelativeLayout = (RelativeLayout) findViewById(R.id.ndcx_rl);
   ndcxRelativeLayout.setOnClickListener(this);
   jgcxRelativeLayout = (RelativeLayout) findViewById(R.id.jgcx_rl);
   jgcxRelativeLayout.setOnClickListener(this);
   kdcxRelativeLayout = (RelativeLayout) findViewById(R.id.kdcx_rl);
   kdcxRelativeLayout.setOnClickListener(this);
   xgnRelativeLayout = (RelativeLayout) findViewById(R.id.xgn_rl);
   xgnRelativeLayout.setOnClickListener(this);
 }