{"id":21130268,"url":"https://github.com/ppamorim/PrismView","last_synced_at":"2025-07-09T01:33:01.038Z","repository":{"id":34852681,"uuid":"38847730","full_name":"ppamorim/PrismView","owner":"ppamorim","description":"ViewHelper to provide one activity applications","archived":true,"fork":false,"pushed_at":"2015-07-23T00:01:29.000Z","size":6416,"stargazers_count":148,"open_issues_count":2,"forks_count":28,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-03-17T13:11:03.440Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppamorim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-09T22:05:57.000Z","updated_at":"2024-02-12T07:16:02.000Z","dependencies_parsed_at":"2022-09-15T07:14:03.570Z","dependency_job_id":null,"html_url":"https://github.com/ppamorim/PrismView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppamorim%2FPrismView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppamorim%2FPrismView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppamorim%2FPrismView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppamorim%2FPrismView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppamorim","download_url":"https://codeload.github.com/ppamorim/PrismView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476370,"owners_count":17480215,"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-11-20T05:32:30.238Z","updated_at":"2024-11-20T05:32:40.020Z","avatar_url":"https://github.com/ppamorim.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"![Logo 1][10]\n\n[![Build Status](https://api.travis-ci.org/ppamorim/Cult.svg?branch=master)](https://travis-ci.org/ppamorim/PrismView)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-PrismView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/2166)\n[![JitPack](https://img.shields.io/github/release/ppamorim/PrismView.svg?label=JitPack%20Maven)](https://jitpack.io/#ppamorim/PrismView)\n\nPrismView provides animations for your views, similar to [Dragger][4], but with fragments!\nYou can change the fragment of the PrismView any time.\n\n![Sample 1][11]\n\nUsage\n-----\n\n* 1. Extend your activity with PrismActivity, use the the method `setContentView`:\n\n```java\npublic class BaseActivity extends PrismActivity {\n  @Override protected void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    setContentView(R.layout.activity_base);\n    setPrismPosition(PrismPosition.RIGHT); //optional, Use: LEFT, RIGHT, TOP, BOTTOM\n    setSpringType(SpringType.SPEEDBOUNCINESS); //optional, Use: ORIGAMI, SPEEDBOUNCINESS\n    setBouncenessSpeed(5, 5); //optional\n  }\n}\n```\n\n* 2. Create and set the adapter:\n\n```java\n@Override protected void onPostCreate(Bundle savedInstanceState) {\n    super.onPostCreate(savedInstanceState);\n    FragmentViewItemAdapter fragmentViewItemAdapter =\n              new FragmentViewItemAdapter(FragmentViewItems.with(this)\n                .add(\"tag0\", Fragment0.class)\n                .add(\"tag1\", Fragment1.class)\n                .create());\n    setAdapter(fragmentViewItemAdapter);\n  }\n\n```\n\n* 3. Then, call the page!\n\n```java\nshow(position);\n```\n\nImport dependency\n--------------------------------\n\nThis library uses `appcompat-v7:22.2.0` and `rebound:0.3.8`.\n\nBut why not to add it in MavenCentral?\nBecause it is so much bureaucratic.\n\nJitPack is there and it is the future!\n\nInto your build.gradle:\n\n```groovy\n\nrepositories {\n  maven {\n    url \"https://jitpack.io\"\n  }\n}\n\ndependencies {\n  compile 'com.github.ppamorim:prismview:0.3'\n}\n```\n\nTodo\n----\n\n* Change position on runtime\n\nContributors\n------------\n\n* [Pedro Paulo de Amorim][3]\n* [Marcelo Camargo][666]\n\nDeveloped By\n------------\n\n* Pedro Paulo de Amorim\n\nOutlook: \u003cpp.amorim@hotmail.com\u003e\n\nGmail: \u003cpepa.amorim@gmail.com\u003e\n\n\u003ca href=\"https://www.linkedin.com/profile/view?id=185411359\"\u003e\n  \u003cimg alt=\"Add me to Linkedin\" src=\"http://imageshack.us/a/img41/7877/smallld.png\" /\u003e\n\u003c/a\u003e\n\nLibraries used on the sample project\n------------------------------------\n\n* [Butterknife][5]\n* [Fresco][6]\n\nLicense\n-------\n\n    Copyright 2015 Pedro Paulo de Amorim\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n[3]: https://github.com/ppamorim/\n[4]: https://github.com/ppamorim/Dragger\n[5]: https://github.com/JakeWharton/butterknife\n[6]: https://github.com/facebook/fresco\n[10]: ./art/logo.png\n[11]: ./art/sample.gif\n[666]: https://github.com/haskellcamargo/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppamorim%2FPrismView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppamorim%2FPrismView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppamorim%2FPrismView/lists"}