Search code examples
sqliteandroid-viewpager

Android Sqlite data records View on swipe


I want to add a dynamic viewpager in my application which show Sqlite database records one by one on swipe from left to right please help me in developing this. i don't know how to configure fragments and add multiple labels to it show database records


Solution

  • You can use FragmentPagerAdapter and to get data from Sqlite database you can use CursorAdapter class. For more information please look into This link which might help you to get your desired result.