{"id":13396022,"url":"https://github.com/daimajia/AndroidViewHover","last_synced_at":"2025-03-13T22:31:30.208Z","repository":{"id":19509849,"uuid":"22756550","full_name":"daimajia/AndroidViewHover","owner":"daimajia","description":"An elegant way to show your menu or messages.","archived":false,"fork":false,"pushed_at":"2023-05-28T15:13:11.000Z","size":7103,"stargazers_count":3206,"open_issues_count":19,"forks_count":720,"subscribers_count":146,"default_branch":"master","last_synced_at":"2024-10-29T17:44:16.752Z","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/daimajia.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-08T12:04:43.000Z","updated_at":"2024-10-24T06:35:43.000Z","dependencies_parsed_at":"2024-05-03T15:36:43.617Z","dependency_job_id":null,"html_url":"https://github.com/daimajia/AndroidViewHover","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daimajia%2FAndroidViewHover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daimajia%2FAndroidViewHover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daimajia%2FAndroidViewHover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daimajia%2FAndroidViewHover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daimajia","download_url":"https://codeload.github.com/daimajia/AndroidViewHover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243493672,"owners_count":20299701,"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-07-30T18:00:37.863Z","updated_at":"2025-03-13T22:31:29.578Z","avatar_url":"https://github.com/daimajia.png","language":"Java","readme":"# Android View Hover [![Build Status](https://travis-ci.org/daimajia/AndroidViewHover.svg)](https://travis-ci.org/daimajia/AndroidViewHover)\n\nIn my opinion, jumping to a new activity to show your menu is a kind of wasting time and life.\n\nSo,\n\nI think, we need a hover view, to show menu, to show messages.\n\n## Demo\n\n![](http://ww2.sinaimg.cn/mw690/610dc034jw1ej5iihjtl5g208z0f2npd.gif)\n\nWatch HD in [YouTube](http://www.youtube.com/watch?v=bsDQbMTtPvM).\n\nDownload [Apk](https://github.com/daimajia/AndroidViewHover/releases/download/v1.0.0/AndroidViewHover-v1.0.0.apk)\n\n## Usage\n\n### Step0\n\nSet up RenderScript\n\n- Eclipse, please visit [official tutorial](http://developer.android.com/guide/topics/renderscript/compute.html#access-rs-apis).\n- Android Studio, add \n\t```groovy\n\t        \n\t        renderscriptTargetApi 19\n        \trenderscriptSupportMode true\n\t```\n\tin `build.gradle` `defaultConfig`, here is a [sample](https://github.com/daimajia/AndroidViewHover/blob/master/library/build.gradle#L12-L13)\n\t\n\n### Step1\n\n#### Gradle\n```groovy\ndependencies {\n\tcompile \"com.android.support:support-v4:20.+\"\n\tcompile 'com.nineoldandroids:library:2.4.0'\n\tcompile 'com.daimajia.easing:library:1.0.0@aar'\n\tcompile 'com.daimajia.androidanimations:library:1.1.2@aar'\n\tcompile 'com.daimajia.androidviewhover:library:1.0.4@aar'\n}\n```\n\n#### Maven\n\n```xml\n\t\u003cdependency\u003e\n\t    \u003cgroupId\u003ecom.nineoldandroids\u003c/groupId\u003e\n\t    \u003cartifactId\u003elibrary\u003c/artifactId\u003e\n\t    \u003cversion\u003e2.4.0\u003c/version\u003e\n\t\u003c/dependency\u003e\n\t\u003cdependency\u003e\n\t    \u003cgroupId\u003ecom.daimajia.androidanimation\u003c/groupId\u003e\n\t    \u003cartifactId\u003elibrary\u003c/artifactId\u003e\n\t    \u003cversion\u003e1.1.2\u003c/version\u003e\n\t    \u003ctype\u003eapklib\u003c/type\u003e\n\t\u003c/dependency\u003e\n\t\u003cdependency\u003e\n\t    \u003cgroupId\u003ecom.daimajia.easing\u003c/groupId\u003e\n\t    \u003cartifactId\u003elibrary\u003c/artifactId\u003e\n\t    \u003cversion\u003e1.0.0\u003c/version\u003e\n\t    \u003ctype\u003eapklib\u003c/type\u003e\n\t\u003c/dependency\u003e\n\t\u003cdependency\u003e\n\t    \u003cgroupId\u003ecom.daimajia.androidviewhover\u003c/groupId\u003e\n\t    \u003cartifactId\u003elibrary\u003c/artifactId\u003e\n\t    \u003cversion\u003e1.0.4\u003c/version\u003e\n\t    \u003ctype\u003eapklib\u003c/type\u003e\n\t\u003c/dependency\u003e\n```\n\n\n#### Eclipse\n- SupportLibrary v4\n- [NineOldAndroids-2.4.0](https://github.com/downloads/JakeWharton/NineOldAndroids/nineoldandroids-2.4.0.jar)\n- [AndroidViewAnimations-1.1.2](https://github.com/daimajia/AndroidViewAnimations/releases/download/v1.1.2/AndroidViewAnimations-1.1.2.jar)\n- [AndroidEasingFunctions-1.0.0](https://github.com/daimajia/AndroidViewAnimations/releases/download/v1.0.6/AndroidEasingFunctions-1.0.0.jar)\n- [AndroidViewHover-1.0.3](https://github.com/daimajia/AndroidViewHover/releases/download/v1.0.3/AndroidViewHover-v1.0.3.jar)\n\n### Step2\n\n![](http://ww4.sinaimg.cn/mw690/610dc034jw1ej5giogymhj20dw085q36.jpg)\n\n1. Create an original view, and make sure it was wrapped by `BlurLayout`\n\n\tfor example:\n\t```xml\n\t\t\u003ccom.daimajia.androidviewhover.BlurLayout\n\t\t\t\tandroid:id=\"@+id/sample\"\n\t            android:layout_width=\"wrap_content\"\n\t            android:layout_height=\"wrap_content\"\u003e\n\t            \u003cImageView\n\t                android:layout_centerInParent=\"true\"\n\t                android:scaleType=\"fitXY\"\n\t                android:src=\"@drawable/kid\"\n\t                android:layout_width=\"match_parent\"/\u003e\n\t\t\u003c/com.daimajia.androidviewhover.BlurLayout\u003e\n\t```\n\tNote: `BlurLayout` is entended from `RelativeLayout`. You can use the `RelativeLayout` rules to layout your view.\n\n\n2. \tCreate a hover view, there is no rules to obey. Just please remember that this view will be stretched as large as the original view you have created.\n\n3.\tBind a hover view to `BlurLayout` \n\n\n\t```java\n\t\tBlurLayout sampleLayout = (BlurLayout)findViewById(R.id.sample);\n\t\tView hover = LayoutInflater.from(mContext).inflate(R.layout.hover, null);\n\t\tsampleLayout.setHoverView(hover);\n\t```\n\n\tand don't forget that you can add various animations just in one line code. For example:\n\t```java\n\t\t//View (R.id.heart) appear animation.\n\t\tsampleLayout.addChildAppearAnimator(hover, R.id.heart, Techniques.FlipInX);\n\t\t//View (R.id.heart) disappear animation.\n\t\tsampleLayout.addChildDisappearAnimator(hover, R.id.heart, Techniques.FlipOutX);\n\t```\n\nYou can view the samples in my [preset examples](https://github.com/daimajia/AndroidViewHover/blob/master/demo/src/main/java/com/daimajia/androidviewhover/demo/MainActivity.java).\n\n# Animations\n\nThis project provides a lot of animations you can choose. Animations are from my another open-source project [AndroidViewAnimations](https://github.com/daimajia/AndroidViewAnimations#effects). And you can aslo using [easing funcitons](https://github.com/daimajia/AnimationEasingFunctions) to make your animations more real. Please enjoy it.\n\n# Thanks\n\n- [NineOldAndroids](https://github.com/JakeWharton/NineOldAndroids) by JakeWharton\n- [AndroidViewAnimations](https://github.com/daimajia/AndroidViewAnimations) by me\n- [AnimationEasingFunctions](https://github.com/daimajia/AnimationEasingFunctions) by me\n\n# About me\n\nA student in mainland China. \n\nWelcome to [offer me an internship](mailto:daimajia@gmail.com).\nIf you have any new idea about this project, feel free to [contact me](mailto:daimajia@gmail.com).\n\n\n","funding_links":[],"categories":["Index `(light-weight pages)`","CN","Java","Index","Libs"],"sub_categories":["[daimajia](https://github.com/daimajia)","\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaimajia%2FAndroidViewHover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaimajia%2FAndroidViewHover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaimajia%2FAndroidViewHover/lists"}