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
Asked
Active
Viewed 616 times
2 Answers
3
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.

Community
- 1
- 1

Pravin Divraniya
- 4,223
- 2
- 32
- 49
-
Well my problem is this my records are dynamic so how i change view accordingly on swipe if you a provide a code snippet that would be a great help. – P. S. Feb 04 '16 at 09:29
-
i USE FragmentPagerAdapter problem resolved swiping through database record by record. – P. S. Jun 14 '16 at 05:05
-
View page adapter to set offset of swipes and to options of view PagerAdapter – P. S. Jun 14 '16 at 05:08
1
By using the concept of dynamic fragments and SQLlite database, manage a list of records containing student name, registration number, and current semester with degree title e.g. BSSE6/BSIT6/BSCS6. Please implement following functionalities:
- Retrieve data of one class from database ordered by their registration number
- Provide two buttons on slider fragment to mark PRESENT or ABSENT
- Automatically slide to next student record when the user mark their attendance
- List down a final attendance on students with some summary blocks in a fragment within same activity
4.1 Summary blocks should contain total number of students, total present and absent students You can design your on layout without any limitations, but it should be decent and user friendly

فیصل یاسین جتوئی
- 11
- 1