Search in sources :

Example 86 with OnClick

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();
}
Also used : QRCode(run.wallet.iota.model.QRCode) Bundle(android.os.Bundle) Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 87 with OnClick

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();
}
Also used : ClipboardManager(android.content.ClipboardManager) ClipData(android.content.ClipData) OnClick(butterknife.OnClick)

Example 88 with OnClick

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);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 89 with OnClick

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);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 90 with OnClick

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);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Aggregations

OnClick (butterknife.OnClick)202 Intent (android.content.Intent)88 AlertDialog (android.support.v7.app.AlertDialog)11 View (android.view.View)11 DialogInterface (android.content.DialogInterface)10 Action0 (rx.functions.Action0)10 Bundle (android.os.Bundle)8 GCM (com.kickstarter.models.pushdata.GCM)8 PushNotificationEnvelope (com.kickstarter.services.apiresponses.PushNotificationEnvelope)8 File (java.io.File)8 TextView (android.widget.TextView)7 ActivityOptions (android.app.ActivityOptions)6 LzyResponse (com.lzy.demo.model.LzyResponse)6 ServerModel (com.lzy.demo.model.ServerModel)6 Subscription (rx.Subscription)6 NonNull (android.support.annotation.NonNull)5 ActivityOptionsCompat (android.support.v4.app.ActivityOptionsCompat)5 CustomBubblePopup (com.flyco.dialogsamples.extra.CustomBubblePopup)5 Activity (com.kickstarter.models.pushdata.Activity)5 ArrayList (java.util.ArrayList)5