{"id":13642220,"url":"https://github.com/Meetic/MaryPopup","last_synced_at":"2025-04-20T16:31:02.306Z","repository":{"id":90929475,"uuid":"57973543","full_name":"Meetic/MaryPopup","owner":"Meetic","description":"Expand your view with no problem ;)","archived":false,"fork":false,"pushed_at":"2016-06-01T08:10:38.000Z","size":5897,"stargazers_count":924,"open_issues_count":4,"forks_count":124,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-08-03T01:25:59.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Meetic.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-05-03T14:00:23.000Z","updated_at":"2024-05-16T07:24:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"7bc3e963-7563-49bf-9282-f2c0c56404bf","html_url":"https://github.com/Meetic/MaryPopup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meetic%2FMaryPopup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meetic%2FMaryPopup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meetic%2FMaryPopup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meetic%2FMaryPopup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meetic","download_url":"https://codeload.github.com/Meetic/MaryPopup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223832878,"owners_count":17210736,"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-08-02T01:01:28.697Z","updated_at":"2025-04-20T16:31:02.299Z","avatar_url":"https://github.com/Meetic.png","language":"Java","funding_links":[],"categories":["对话框","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"MaryPopup\n=======\n\n[![API](https://img.shields.io/badge/API-10%2B-green.svg)][repo]\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-MaryPopup-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/3531)\n[![Build Status](https://travis-ci.org/Meetic/MaryPopup.svg?branch=master)](https://travis-ci.org/Meetic/MaryPopup)\n\nExpand your view with no problem ;)\n\n[![intro](media/intro.gif)][repo][![fadeout](media/photo.gif)][repo]\n\n\n# Usage\n\nOpen marypopup from a view\n\n```java\nMaryPopup marypopup = MaryPopup.with(context)\n                        .cancellable(true)\n                        .blackOverlayColor(Color.parseColor(\"#DD444444\"))\n                        .backgroundColor(Color.parseColor(\"#EFF4F5\"))\n                        .content(R.layout.popup_content)\n                        .from(clickedView)\n                        .show();\n```\n\n```java\nCustomView customView = LayoutInflater...\nMaryPopup marypopup = MaryPopup.with(context)\n                        .cancellable(true)\n                        .blackOverlayColor(Color.parseColor(\"#DD444444\"))\n                        .backgroundColor(Color.parseColor(\"#EFF4F5\"))\n                        .content(customView)\n                        .from(clickedView)\n                        .show();\n```\n\n# Center\n\n[![center](media/center.gif)][repo]\n\n```java\nMaryPopup marypopup = MaryPopup.with(context)\n                        ...\n                        .center(true)\n                        ...\n                        .show();\n```\n\n# Draggable\n\n[![draggable](media/draggable.gif)][repo]\n\n```java\nMaryPopup.with(context)\n      ...\n      .draggable(true)\n      ...\n      .show();\n```\n\n[![scaledown](media/scaledown.gif)][repo]\n\n```java\nMaryPopup.with(context)\n      ...\n      .draggable(true)\n      .scaleDownDragging(true);\n      ...\n      .show();\n```\n\n[![fadeout](media/fadeout.gif)][repo]\n\n```java\nMaryPopup.with(context)\n      ...\n      .draggable(true)\n      .fadeOutDragging(true);\n      ...\n      .show();\n```\n\n# Close\n\nDon't forget to handle the activity's `onBackPress`\n\n```java\n@Override\npublic void onBackPressed() {\n    if(!marypopup.close(true)){\n        super.onBackPressed();\n    }\n}\n```\n\n# Download\n\nAdd into your **build.gradle**\n\n[ ![Download](https://api.bintray.com/packages/meetic-android/maven/MaryPopup/images/download.svg) ](https://bintray.com/meetic-android/maven/MaryPopup/_latestVersion)\n\n```groovy\ncompile 'com.meetic.marypopup:marypopup:(last version)'\ncompile 'com.meetic.dragueur:dragueur:1.0.3'\n```\n\nMove your views with [Dragueur][Dragueur] !\n\n# Credits\n\nA project initiated by Meetic\n\nThis project was first developed by Meetic and has been open-sourced since. We will continue working on it.\nWe encourage the community to contribute to the project by opening tickets and/or pull requests.\n\n[![logo meetic](media/meetic.jpg)][meetic]\n\nContributor: [Florent Champigny][florent]  \n\n# License\n\n    Copyright 2016 Meetic, Inc.\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[repo]: https://github.com/Meetic/MaryPopup\n[androidarsenal]: http://android-arsenal.com/details/--------\n[meetic]: http://www.meetic.fr/\n[dragueur]: https://github.com/Meetic/Dragueur\n[florent]: https://github.com/florent37\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMeetic%2FMaryPopup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMeetic%2FMaryPopup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMeetic%2FMaryPopup/lists"}