use of butterknife.OnClick in project plaid by nickbutcher.
the class PostNewDesignerNewsStory method postNewStory.
@OnClick(R.id.new_story_post)
protected void postNewStory() {
if (DesignerNewsPrefs.get(this).isLoggedIn()) {
ImeUtils.hideIme(title);
Intent postIntent = new Intent(PostStoryService.ACTION_POST_NEW_STORY, null, this, PostStoryService.class);
postIntent.putExtra(PostStoryService.EXTRA_STORY_TITLE, title.getText().toString());
postIntent.putExtra(PostStoryService.EXTRA_STORY_URL, url.getText().toString());
postIntent.putExtra(PostStoryService.EXTRA_STORY_COMMENT, comment.getText().toString());
postIntent.putExtra(PostStoryService.EXTRA_BROADCAST_RESULT, getIntent().getBooleanExtra(PostStoryService.EXTRA_BROADCAST_RESULT, false));
startService(postIntent);
setResult(RESULT_POSTING);
finishAfterTransition();
} else {
Intent login = new Intent(this, DesignerNewsLogin.class);
MorphTransform.addExtras(login, ContextCompat.getColor(this, R.color.designer_news), 0);
ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(this, post, getString(R.string.transition_designer_news_login));
startActivity(login, options.toBundle());
}
}
use of butterknife.OnClick in project plaid by nickbutcher.
the class SearchActivity method doSave.
@OnClick(R.id.save_confirmed)
protected void doSave() {
Intent saveData = new Intent();
saveData.putExtra(EXTRA_QUERY, dataManager.getQuery());
saveData.putExtra(EXTRA_SAVE_DRIBBBLE, saveDribbble.isChecked());
saveData.putExtra(EXTRA_SAVE_DESIGNER_NEWS, saveDesignerNews.isChecked());
setResult(RESULT_CODE_SAVE, saveData);
dismiss();
}
use of butterknife.OnClick in project DraggablePanel by pedrovgs.
the class MainActivity method openSimpleSampleActivity.
@OnClick(R.id.iv_places)
void openSimpleSampleActivity() {
Intent intent = new Intent(this, PlacesSampleActivity.class);
startActivity(intent);
}
use of butterknife.OnClick in project Weather by Sparker0i.
the class AboutActivity method onClick.
@OnClick(R.id.fab)
void onClick() {
Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:" + Constants.MAIL));
startActivity(Intent.createChooser(intent, getString(R.string.choose_app)));
}
use of butterknife.OnClick in project simple-stack by Zhuinden.
the class CloudSyncView method clickButton.
@OnClick(R.id.first_button)
public void clickButton(View view) {
Key key = Backstack.getKey(getContext());
key.selectDelegate(getContext()).getBackstack().goTo(AnotherKey.create());
}
Aggregations