hieple7985 / nano-myappport

[Android Nano Degree] - Project 0: My App Portfolio
0 stars 0 forks source link

Review #2 - app/src/main/java/hieplt/myappportfolio/MainActivity.java (Suggestion) #2

Closed hieple7985 closed 6 years ago

hieple7985 commented 8 years ago

Point #1: :bell: Since from your codes, I can see that you are a really advanced student, in order to learn more, you could also check a package called "butterknife". In the future, you can find and automatically cast the corresponding view in your layout easily. This will save you a lot of time. :smiley: Supp: http://jakewharton.github.io/butterknife/ Also, a video tutorial: https://www.skillfeed.com/zh/courses/11756-android-butter-knife-the-complete-guide

Point #2: To learn more, you can also register function for your buttons using XML definition like this sample code:

<Button android:onClick="onClick" />