Question
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
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 and FragmentStatePagerAdapter so that the user can swipe left to visit the previous name in the ArrayList, or swipe right to visit the next name in the ArrayList 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. Using Android Studio, Java.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started