Last active
February 4, 2020 08:00
-
-
Save lordcodes/9fb12e2c270ed5fb6f8c93d9a7c1f282 to your computer and use it in GitHub Desktop.
Code for article "Using Kotlin to bind Android views"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PlanningActivity extends AppCompatActivity { | |
@BindView(R.id.planning_text) TextView planningText; | |
@BindView(R.id.app_icon) ImageView appIcon; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_planning); | |
ButterKnife.bind(this); | |
planningText.setText("Hello!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment