Question: Android studio problem: You Can use ViewPager.getCurrentItem() to help you identify which name in the list to retrieve Goals: Gain further experience with ViewPager. .
Android studio problem:

You Can use ViewPager.getCurrentItem() to help you identify which name in the list to retrieve
Goals: Gain further experience with ViewPager. . Get extra practice with Button and EditText widgets. Get extra practice with listeners. Requirements: Create an app that stores a set of names. The UI should contain a EditText widget and two Buttons (one for adding a name and one for editing a name). When the app starts up, the first name of the set is used to initialize the EditText widget. The app uses ViewPager so that the user can swipe left to visit the previous name in the set, or swipe right to visit the next name in the set, similar to how you can swipe left and right through crimes in the Criminal Intent app. If the user types a new name in the EditText field and clicks the edit button, the name is updated in the app's list of names. If the user types a new name in the EditText field and clicks the add button, the name is added to the end of the set. You can store the names in an ArrayList of Strings and use the onCreate() method initialze the list so there is something to display when the app first starts up, if you wish. Your app will not display a list, and therefore will not use RecyclerView. This is different than Criminallntent and uses the ViewPager differently. Goals: Gain further experience with ViewPager. . Get extra practice with Button and EditText widgets. Get extra practice with listeners. Requirements: Create an app that stores a set of names. The UI should contain a EditText widget and two Buttons (one for adding a name and one for editing a name). When the app starts up, the first name of the set is used to initialize the EditText widget. The app uses ViewPager so that the user can swipe left to visit the previous name in the set, or swipe right to visit the next name in the set, similar to how you can swipe left and right through crimes in the Criminal Intent app. If the user types a new name in the EditText field and clicks the edit button, the name is updated in the app's list of names. If the user types a new name in the EditText field and clicks the add button, the name is added to the end of the set. You can store the names in an ArrayList of Strings and use the onCreate() method initialze the list so there is something to display when the app first starts up, if you wish. Your app will not display a list, and therefore will not use RecyclerView. This is different than Criminallntent and uses the ViewPager differently
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
