ViewPager in Sketchware
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTvd6IK-yBNRrlACa1aP826KeY_0-B_vWRkkcqWxKIespfQ5uQ9-_BJ7vaJJFD5CdKeDkajXJcRxxTnq2ViJ7CbAVBxD6C5p1b4aX6S3xAEtADdqMpiqPGQ-0c1xEDG2Jiqheui2AVbONZ/s320/Screenshot_2018-11-27-07-49-04_crop_1050x700.png)
Note: In latest Version of Sketchware the codes on this post shows error android.support.v4.view.ViewPager cannot be resolved. Because it uses androidx libraries instead of support_v4. In new versions of Sketchware, follow this: https://www.sketchwarehelp.com/2020/02/androidx-viewpager-in-sketchware.html?m=1 -------- To create a simple ViewPager with three pages in Sketchware, follow the codes below. 1. In VIEW area of main.xml add a Linear vertical linear1 with width and height as match_parent. ViewPager will be created programmatically and added to linear1 . 2. Switch On AppCompat and design. 3. Set white color as colorAccent. 4. Add three CustomView pages page1.xml , page3.xml , and page5.xml . These will act as the pages of the ViewPager. In page1.xml add a Switch switch2. In page3.xml add a TextView textview1. In page5.xml add a Button button1. 5. Create a more block extra and define the block using an add source directly block. Put