Search in sources :

Example 1 with OnClick

use of butterknife.OnClick in project nmid-headline by miao1007.

the class AboutFragment method about_nexus_img.

@OnClick(R.id.about_nexus_img)
void about_nexus_img() {
    Intent intent = new Intent();
    intent.setAction(Intent.ACTION_VIEW);
    intent.addCategory(Intent.CATEGORY_BROWSABLE);
    intent.setData(Uri.parse(getString(R.string.settings_about_url)));
    startActivity(intent);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 2 with OnClick

use of butterknife.OnClick in project android-oss by kickstarter.

the class LoginActivity method forgotYourPasswordTextViewClick.

@OnClick(R.id.forgot_your_password_text_view)
public void forgotYourPasswordTextViewClick() {
    final Intent intent = new Intent(this, ResetPasswordActivity.class);
    startActivityWithTransition(intent, R.anim.slide_in_right, R.anim.fade_out_slide_out_left);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 3 with OnClick

use of butterknife.OnClick in project android-oss by kickstarter.

the class DownloadBetaActivity method openDownloadsOnClick.

@OnClick(R.id.open_downloads_button)
public void openDownloadsOnClick(@NonNull final View v) {
    final Intent intent = new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS);
    startActivity(intent);
}
Also used : Intent(android.content.Intent) OnClick(butterknife.OnClick)

Example 4 with OnClick

use of butterknife.OnClick in project android-oss by kickstarter.

the class DiscoveryToolbar method menuButtonClick.

@OnClick({ R.id.menu_button, R.id.filter_text_view })
protected void menuButtonClick() {
    final DiscoveryActivity activity = (DiscoveryActivity) getContext();
    activity.discoveryLayout().openDrawer(GravityCompat.START);
}
Also used : DiscoveryActivity(com.kickstarter.ui.activities.DiscoveryActivity) OnClick(butterknife.OnClick)

Example 5 with OnClick

use of butterknife.OnClick in project android-oss by kickstarter.

the class DiscoveryToolbar method searchButtonClick.

@OnClick(R.id.search_button)
public void searchButtonClick(@NonNull final View view) {
    final Context context = getContext();
    context.startActivity(new Intent(context, SearchActivity.class));
}
Also used : Context(android.content.Context) Intent(android.content.Intent) SearchActivity(com.kickstarter.ui.activities.SearchActivity) OnClick(butterknife.OnClick)

Aggregations

OnClick (butterknife.OnClick)465 Intent (android.content.Intent)206 View (android.view.View)24 AlertDialog (android.support.v7.app.AlertDialog)21 TextView (android.widget.TextView)18 File (java.io.File)18 Bundle (android.os.Bundle)16 BindView (butterknife.BindView)16 DialogInterface (android.content.DialogInterface)15 ArrayList (java.util.ArrayList)15 DialogFragment (com.rey.material.app.DialogFragment)13 SimpleDialog (com.rey.material.app.SimpleDialog)13 Uri (android.net.Uri)11 SimpleDateFormat (java.text.SimpleDateFormat)11 SuppressLint (android.annotation.SuppressLint)10 ImageView (android.widget.ImageView)10 LzyResponse (com.lzy.demo.model.LzyResponse)10 HorizontalChangeHandler (com.bluelinelabs.conductor.changehandler.HorizontalChangeHandler)9 List (java.util.List)9 Animator (android.animation.Animator)8