butterknife.OnClick.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中butterknife.OnClick.<init>()方法的一些代码示例,展示了OnClick.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OnClick.<init>()方法的具体详情如下:
包路径:butterknife.OnClick
类名称:OnClick
方法名:<init>

OnClick.<init>介绍

暂无

代码示例

代码示例来源:origin: android10/Android-CleanArchitecture

@OnClick(R.id.bt_retry)
 void onButtonRetryClick() {
  UserDetailsFragment.this.loadUserDetails();
 }
}

代码示例来源:origin: android10/Android-CleanArchitecture

/**
  * Goes to the user list screen.
  */
 @OnClick(R.id.btn_LoadData)
 void navigateToUserList() {
  this.navigator.navigateToUserList(this);
 }
}

代码示例来源:origin: CarGuo/GSYVideoPlayer

@OnClick(R.id.jump_other)
  public void onViewClicked() {
    startActivity(new Intent(this, EmptyActivity.class));
  }
}

代码示例来源:origin: android10/Android-CleanArchitecture

@OnClick(R.id.bt_retry) void onButtonRetryClick() {
 UserListFragment.this.loadUserList();
}

代码示例来源:origin: Bearded-Hen/Android-Bootstrap

@OnClick(R.id.example_fa_text_multi_change) void onMultiChangeClicked() {
  wikipedia = !wikipedia;
  String text = wikipedia ? "{fa_image} is in the {fa_cloud}" : "{fa_bank} are on {fa_globe}";
  exampleMultiChange.setMarkdownText(text);
}

代码示例来源:origin: Bearded-Hen/Android-Bootstrap

@OnClick(R.id.example_progress_bar_group_round)
void onRoundClick(){
  rounded = !rounded;
  groupRound.setRounded(rounded);
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@OnClick(R.id.btn_clr)
public void OnClearLog() {
 _logs = new ArrayList<>();
 _adapter.clear();
}

代码示例来源:origin: Bearded-Hen/Android-Bootstrap

@OnClick(R.id.github_btn) void onGithubClicked() {
  Intent intent = new Intent(Intent.ACTION_VIEW); startActivity(intent);
  intent.setData(Uri.parse("https://github.com/Bearded-Hen/Android-Bootstrap"));
  startActivity(intent);
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@OnClick(R.id.btn_start_operation)
public void startLongOperation() {
 _progress.setVisibility(View.VISIBLE);
 _log("Button Clicked");
 DisposableObserver<Boolean> d = _getDisposableObserver();
 _getObservable()
   .subscribeOn(Schedulers.io())
   .observeOn(AndroidSchedulers.mainThread())
   .subscribe(d);
 _disposables.add(d);
}

代码示例来源:origin: Bearded-Hen/Android-Bootstrap

@OnClick(R.id.bbutton_group_child_remove_btn) void onChildRemoveExampleClicked() {
  int count = childChange.getChildCount();
  if (count > 0) {
    childChange.removeViewAt(count - 1);
  }
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@OnClick(R.id.btn_demo_timeout_1_2s)
public void onStart2sTask() {
 _disposable = _getEventCompletionObserver();
 _getObservableTask_2sToComplete()
   .timeout(3, TimeUnit.SECONDS)
   .subscribeOn(Schedulers.computation())
   .observeOn(AndroidSchedulers.mainThread())
   .subscribe(_disposable);
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@OnClick(R.id.btn_demo_pagination)
void demoPaging() {
 clickedOn(new PaginationAutoFragment());
 //clickedOn(new PaginationFragment());
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@OnClick(R.id.btn_demo_rotation_persist)
void demoRotationPersist() {
 clickedOn(new RotationPersist3Fragment());
 // clickedOn(new RotationPersist2Fragment());
 // clickedOn(new RotationPersist1Fragment());
}

代码示例来源:origin: Bearded-Hen/Android-Bootstrap

@OnClick(R.id.bbutton_group_orientation_change_btn) void onOrientationChangeExampleClicked() {
  boolean isHorizontal = orientationChange.getOrientation() == LinearLayout.HORIZONTAL;
  int newOrientation = isHorizontal ? LinearLayout.VERTICAL : LinearLayout.HORIZONTAL;
  orientationChange.setOrientation(newOrientation);
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@OnClick(R.id.btn_demo_timeout_1_5s)
public void onStart5sTask() {
 _disposable = _getEventCompletionObserver();
 _getObservableTask_5sToComplete()
   .timeout(3, TimeUnit.SECONDS, _onTimeoutObservable())
   .subscribeOn(Schedulers.computation())
   .observeOn(AndroidSchedulers.mainThread())
   .subscribe(_disposable);
}

代码示例来源:origin: Bearded-Hen/Android-Bootstrap

@OnClick(R.id.interactive_button)
void onInteractiveButtonClicked() {
  if (View.GONE == alert.getVisibility()) {
    alert.show(true);
  }
  else {
    alert.dismiss(true);
  }
}

代码示例来源:origin: Bearded-Hen/Android-Bootstrap

@OnClick(R.id.bbutton_group_child_add_btn) void onChildAddExampleClicked() {
  int count = childChange.getChildCount();
  BootstrapButton button = new BootstrapButton(this);
  button.setText(String.format("%d", count + 1));
  childChange.addView(button);
}

代码示例来源:origin: pockethub/PocketHub

@OnClick({R.id.tv_milestone, R.id.tv_milestone_label})
protected void onMilestoneClicked() {
  if (milestoneDialog == null) {
    milestoneDialog = new MilestoneDialog(this, REQUEST_MILESTONE, filter.getRepository());
  }
  milestoneDialog.show(filter.getMilestone());
}

代码示例来源:origin: pockethub/PocketHub

@OnClick({R.id.tv_labels, R.id.tv_labels_label})
protected void onLabelsClicked() {
  if (labelsDialog == null) {
    labelsDialog = new LabelsDialog(this, REQUEST_LABELS, filter.getRepository());
  }
  labelsDialog.show(filter.getLabels());
}

代码示例来源:origin: pockethub/PocketHub

@OnClick({R.id.tv_assignee, R.id.tv_assignee_label})
protected void onAssigneeClicked() {
  if (assigneeDialog == null) {
    assigneeDialog = new AssigneeDialog(this, REQUEST_ASSIGNEE, filter.getRepository());
  }
  assigneeDialog.show(filter.getAssignee());
}

相关文章

OnClick类方法