This is a simple tutorial for starting with tablayout. We basically have three tabs with fragments that can be swiped. Each fragment has an image.
Here is the demo
The example was created using support libraries. However you can use android studio to migrate it to androidx.