use of butterknife.OnClick in project run-wallet-android by runplay.
the class AboutFragment method onAboutDonationIotaClick.
@OnClick(R.id.about_donation_iota)
public void onAboutDonationIotaClick() {
if (Store.getCurrentWallet() != null) {
QRCode qrCode = new QRCode();
qrCode.setAddress(Constants.DONATION_ADDRESS);
qrCode.setTag(Constants.DONATION_TAG);
Bundle bundle = new Bundle();
bundle.putParcelable(Constants.QRCODE, qrCode);
Intent pickContactIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("iota://send"));
pickContactIntent.putExtra(Constants.QRCODE, qrCode);
getActivity().setResult(Constants.DONATE_NOW, pickContactIntent);
getActivity().finish();
} else
onAboutDonationIotaAddressClick();
}
use of butterknife.OnClick in project run-wallet-android by runplay.
the class AboutFragment method onAboutDonationIotaAddressClick.
@OnClick(R.id.about_donation_iota_address)
public void onAboutDonationIotaAddressClick() {
ClipboardManager clipboard = (ClipboardManager) getActivity().getSystemService(Context.CLIPBOARD_SERVICE);
ClipData clip = ClipData.newPlainText(getActivity().getString(R.string.seed), Constants.DONATION_ADDRESS);
clipboard.setPrimaryClip(clip);
Snackbar.make(getView(), getString(R.string.messages_iota_donation), Snackbar.LENGTH_LONG).show();
}
use of butterknife.OnClick in project dotEngine-android-sdk-example by dotEngine.
the class MainActivity method onViewClicked.
@OnClick(R.id.join_room)
public void onViewClicked() {
if (inputRoomName.getText().toString().trim().equals("")) {
LinToast.showToast("房间名字不可以为空");
return;
}
Intent intent = new Intent(MainActivity.this, ChatActivity.class);
intent.putExtra("roomName", inputRoomName.getText().toString().trim());
startActivity(intent);
}
use of butterknife.OnClick in project dotEngine-android-sdk-example by dotEngine.
the class MainActivity method onViewClicked.
@OnClick(R.id.join_room)
public void onViewClicked() {
if (inputRoomName.getText().toString().trim().equals("")) {
LinToast.showToast("房间名字不可以为空");
return;
}
Intent intent = new Intent(MainActivity.this, ChatActivity.class);
intent.putExtra("roomName", inputRoomName.getText().toString().trim());
startActivity(intent);
}
use of butterknife.OnClick in project GwellDemo by dxsdyhm.
the class MainActivity method AlarmList.
@OnClick(R.id.btn_alarmlist)
public void AlarmList() {
Intent record = new Intent(this, AllarmImageListActivity.class);
record.putExtra(LoginActivity.USERID, userId);
startActivity(record);
}
Aggregations