Demonstrate ViewPager2 with swiping and TabLayout
ViewPager to ViewPager2 documentation
implementation "androidx.viewpager2:viewpager2:1.1.0"
In browser
hit F12 Button
type into console
document.querySelector('video').playbackRate=1.4;
Or install this Chrome extension: Video Speed Controller
https://www.raywenderlich.com/8192680-viewpager2-in-android-getting-started
https://developer.android.com/guide/navigation/navigation-swipe-view-2
Goal: To build a multi-screen, swipeable interface using a single, reusable Fragment class. Each instance of the fragment must be visually unique, acting like a chameleon that changes its appearance based on the data it's given (its position). This demonstrates the core principle of writing modular, data-driven UI components.
Use ViewPager2 to swipe between fragments
Video the app in use
Build the .apk file
Rename the .apk file
PeriodLabNumberLastFirstCustomName.apk
P8L06aTraDanViewPager2.apk
Submit assignment
Video of swiping between fragments
.apk file
All .java and layout .xml files
Add sound and an animate transition to each swipe
Note: You can use setBackgroundResource() instead of setImageResource() for some data types
Modify the images or display of each fragment
Bonus:
Bonus:
Quote of the day:
request a new quote on each swipe
Like feature:
verify quote is new to custom list of quotes
add quote to current list of quotes
store compiled list to SharedPreferences
You will need to
Submit as Lab06b
P8L06bTraDanViewPager2.apk
Submit video