{"id":22846604,"url":"https://github.com/vicfran/view-pager-project","last_synced_at":"2025-09-01T03:33:13.526Z","repository":{"id":149036608,"uuid":"9943841","full_name":"vicfran/view-pager-project","owner":"vicfran","description":"Skeleton of View pager implementation. Android development","archived":false,"fork":false,"pushed_at":"2013-05-09T18:38:39.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-02-06T10:15:30.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vicfran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-08T19:09:31.000Z","updated_at":"2014-02-05T00:34:14.000Z","dependencies_parsed_at":"2023-03-30T10:17:45.791Z","dependency_job_id":null,"html_url":"https://github.com/vicfran/view-pager-project","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicfran%2Fview-pager-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicfran%2Fview-pager-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicfran%2Fview-pager-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicfran%2Fview-pager-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicfran","download_url":"https://codeload.github.com/vicfran/view-pager-project/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423494,"owners_count":20774796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T03:29:55.055Z","updated_at":"2025-03-31T05:41:29.419Z","avatar_url":"https://github.com/vicfran.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"View Pager Project\n============================================\n\nSkeleton of view pager implementation for Android projects.\n\nIf you want to implement a View Pager in your Android app, follow this skeleton.\n\n*Hope it helps you like it helps me.*\n\nCode\n--------------------------------------------\nSource tree (I have uploaded to the repo only the essential things you need to implement the view pager, they are):\n\n    src/\n    activities/\n        MainActivity\n\n    adapters/\n        PagerAdapter : The adapter of the view pager, it builds the fragments (pages).\n\n    fragments/\n        MainFragment\n        FragmentA : Page A\n        FragmentB : Page B\n        FragmentC : Page C\n\n    res/\n    layout/\n        activity_main\n        fragment_main\n        fragment_a : layout for the fragment (page) A\n        fragment_b : layout for the fragment (page) B\n        fragment_c : layout for the fragment (page) C\n\n\nHow to use\n-------------------------------------------\n\nIt's easy, if you want to implement a ViewPager in your Android app, you have to do:\n\n    · What number of pages do you want in your ViewPager? Set the PAGES constant in the PagerAdapter to\n    the number of pages you want.\n\n        /**\n         * Number of fragments (pages of the view pager)\n         */\n         private static final int PAGES = X;\n\n    · Implement as many FragmentX classes as pages you want (and their corresponding layouts).\n    Build an instance of each FragmentX and store it in the PagerAdapter (inside its constructor).\n\n\nThat's all","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicfran%2Fview-pager-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicfran%2Fview-pager-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicfran%2Fview-pager-project/lists"}