Closed hieple7985 closed 6 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" />
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" />