Sign in Go Pro

ButterKnife

Using Annotations to Handle Events with @OnClick and @OnCheckChanged

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

ButterKnife is more than findViewById, it can also make handling user actions easy. In this lesson we cover the @OnClick and @OnCheckChanged annotations.

In this lesson you will learn:

How to use the @OnClick annotation
How to get the source view in your OnClick method
How Butterknife will automatically cast the view types for you
How to use the @OnCheckedChanged annotation
How to use the same click method for multiple views with an array of view Id’s

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in ButterKnife