udacity / Android_Me

App that lets you style your own Android! This uses Fragments to create a flexible and responsive UI.
261 stars 1.01k forks source link

Error in Main Activity #67

Open AryaveerJ opened 4 years ago

AryaveerJ commented 4 years ago

https://github.com/udacity/Android_Me/blob/TFragments.06-Solution-CommunicateBetweenActivities/app/src/main/java/com/example/android/android_me/ui/MainActivity.java

In this code, the OnClick of next button is written on the implementation of onItemSelected,so If a user clicks the next button without any clicks on the images of grid view then it doesn't take any actions ,to ensure that onclickListener must be written in oncreate function of the main activity.