@OnClick(R.id.bt_retry) void onButtonRetryClick() { UserDetailsFragment.this.loadUserDetails(); } }
/** * Goes to the user list screen. */ @OnClick(R.id.btn_LoadData) void navigateToUserList() { this.navigator.navigateToUserList(this); } }
@OnClick(R.id.jump_other) public void onViewClicked() { startActivity(new Intent(this, EmptyActivity.class)); } }
@OnClick(R.id.bt_retry) void onButtonRetryClick() { UserListFragment.this.loadUserList(); }
@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); }
@OnClick(R.id.example_progress_bar_group_round) void onRoundClick(){ rounded = !rounded; groupRound.setRounded(rounded); }
@OnClick(R.id.btn_clr) public void OnClearLog() { _logs = new ArrayList<>(); _adapter.clear(); }
@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); }
@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); }
@OnClick(R.id.bbutton_group_child_remove_btn) void onChildRemoveExampleClicked() { int count = childChange.getChildCount(); if (count > 0) { childChange.removeViewAt(count - 1); } }
@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); }
@OnClick(R.id.btn_demo_pagination) void demoPaging() { clickedOn(new PaginationAutoFragment()); //clickedOn(new PaginationFragment()); }
@OnClick(R.id.btn_demo_rotation_persist) void demoRotationPersist() { clickedOn(new RotationPersist3Fragment()); // clickedOn(new RotationPersist2Fragment()); // clickedOn(new RotationPersist1Fragment()); }
@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); }
@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); }
@OnClick(R.id.interactive_button) void onInteractiveButtonClicked() { if (View.GONE == alert.getVisibility()) { alert.show(true); } else { alert.dismiss(true); } }
@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); }
@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()); }
@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()); }
@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()); }