Esempio n. 1
0
 @Override
 public void onClick(View v) {
   switch (v.getId()) {
     case R.id.btn_publish_job:
       Intent intent = new Intent();
       intent.setClass(getActivity(), PublishJobActivity.class);
       startActivityForResult(intent, REQUEST_CODE_ADD);
       break;
     case R.id.tv_store_filter:
       mStoreFilterDialog =
           new StoreDataFilterDialog(mContext, "GetStoreNames", mStoreFilters, this);
       mStoreFilterDialog.show();
       break;
     case R.id.tv_job_filter:
       mJobFilterDialog = new JobDataFilterDialog(mContext, "GetJobNames", mJobFilters, this);
       mJobFilterDialog.show();
       break;
   }
 }
Esempio n. 2
0
 @Override
 public void onClick(View v) {
   switch (v.getId()) {
     case R.id.tv_sex_filter:
       mSexFilterDialog =
           new EmployeeDataFilterDialog(this, CommonOptionData.SEX_KEY, mSexFilters, this);
       mSexFilterDialog.show();
       break;
     case R.id.tv_education_filter:
       mEducationFilterDialog =
           new EmployeeDataFilterDialog(
               this, CommonOptionData.EDUCATION_KEY, mEducationFilters, this);
       mEducationFilterDialog.show();
       break;
     case R.id.tv_age_filter:
       mAgeFilterDialog =
           new EmployeeDataFilterDialog(this, CommonOptionData.AGE_RANGE_KEY, mAgeFilters, this);
       mAgeFilterDialog.show();
       break;
   }
 }