Slide 71
Slide 71 text
Document When You Rely
External Code Samples
/**
* Feature XYZ requires a ViewPager like experience, but
* without the user being able to control each step. We've
* implemented a ViewPager that rejects any user interraction.
*
* Source: https://stackoverflow.com/a/9650884/3131147
*/
class NonSwipeableViewPager(
context: Context,
attrs: AttributeSet? = null
) : ViewPager(context, attrs) {
}
» This allows future devs to understand why this class was added, and explore if there are new first-party solutions.
@AdamMc331
#AndroidSummit 33