{"id":32516469,"url":"https://github.com/dmfs/drawablepagertitlestrip","last_synced_at":"2026-07-05T19:31:19.357Z","repository":{"id":15735570,"uuid":"18474024","full_name":"dmfs/DrawablePagerTitleStrip","owner":"dmfs","description":"A PagerTitleStrip for Images","archived":false,"fork":false,"pushed_at":"2015-11-19T19:44:19.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-23T03:56:27.560Z","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/dmfs.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":"2014-04-05T19:02:25.000Z","updated_at":"2017-11-21T06:39:17.000Z","dependencies_parsed_at":"2022-08-04T06:15:21.025Z","dependency_job_id":null,"html_url":"https://github.com/dmfs/DrawablePagerTitleStrip","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/dmfs/DrawablePagerTitleStrip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfs%2FDrawablePagerTitleStrip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfs%2FDrawablePagerTitleStrip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfs%2FDrawablePagerTitleStrip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfs%2FDrawablePagerTitleStrip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmfs","download_url":"https://codeload.github.com/dmfs/DrawablePagerTitleStrip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfs%2FDrawablePagerTitleStrip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281371741,"owners_count":26489526,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-10-28T01:53:52.129Z","updated_at":"2025-10-28T01:53:56.820Z","avatar_url":"https://github.com/dmfs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DrawablePagerTitleStrip\n\n__A PagerTitleStrip for Images__\n\nThis is a version of a PagerTitleStrip that shows images instead of text. See [color-picker](https://github.com/dmfs/color-picker) for screenshots and an implementation example.\n\n## Requirements\n\n* Android support library 19 or newer\n\n## Example code\n\nThe `ViewPager` in this library is just a copy of the original `ViewPager` from the support library, but since the pager title strip classes depend on a\nfew non-public members you'll we had to include it. That means you'll need to use the `ViewPager` provided by this library.\n\nIn your layout file replace `android.support.v4.view.ViewPager` by `org.dmfs.android.view.ViewPager` and `android.support.v4.view.PagerTitleStrip` by `org.dmfs.android.view.DrawablePagerTitleStrip` (or `org.dmfs.android.view.DrawablePagerTabStrip`) like so:\n\n\n\t\t\u003corg.dmfs.android.view.ViewPager xmlns:android=\"http://schemas.android.com/apk/res/android\"\n\t\t    android:id=\"@+id/pager\"\n\t\t    android:layout_width=\"wrap_content\"\n\t\t    android:layout_height=\"wrap_content\" \u003e\n\n\t\t    \u003corg.dmfs.android.view.DrawablePagerTabStrip\n\t\t\tandroid:id=\"@+id/pager_title_strip\"\n\t\t\tandroid:layout_width=\"match_parent\"\n\t\t\tandroid:layout_height=\"wrap_content\"\n\t\t\tandroid:layout_gravity=\"bottom\"\n\t\t\tandroid:paddingBottom=\"4dip\"\n\t\t\tandroid:paddingLeft=\"8dip\"\n\t\t\tandroid:paddingRight=\"8dip\"\n\t\t\tandroid:paddingTop=\"0dip\" /\u003e\n\n\t\t\u003c/org.dmfs.android.view.ViewPager\u003e\n\nDon't forget to update any imports and types.\n\nNow let your `FragmentStatePagerAdapter` or `FragmentPagerAdapter` implement `IDrawableTitlePagerAdapter`\n\n\t\tpublic class PalettesPagerAdapter extends FragmentStatePagerAdapter implements IDrawableTitlePagerAdapter\n\t\t{\n\n\t\t...\n\n\n\t\t\t@Override\n\t\t\tpublic Drawable getDrawableTitle(int position)\n\t\t\t{\n\t\t\t\t// return a drawable for this page\n\t\t\t\t...\n\t\t\t\treturn someDrawable;\n\t\t\t}\n\t\t}\n\nBe aware that neither `DrawablePagerTabStrip` nor `DrawablePagerTitleStrip` will cache the `Drawable`s, so you better take care of that yourself. See [PalettesPagerAdapter.java](https://github.com/dmfs/color-picker/blob/master/src/org/dmfs/android/colorpicker/PalettesPagerAdapter.java) for an example.\n\n\n## TODO\n\n* dynamically determine the number of images in the title strip\n* clean up code\n\n## License\n\nLicensed under Apache2\n\nThis work is based on the Android Support Library with the following copyright:\nCopyright (C) 2012 The Android Open Source Project\n\nModifications:\nCopyright (C) Marten Gajda 2014\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmfs%2Fdrawablepagertitlestrip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmfs%2Fdrawablepagertitlestrip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmfs%2Fdrawablepagertitlestrip/lists"}