{"id":13643693,"url":"https://github.com/HuTianQi/CoolImageView","last_synced_at":"2025-04-21T02:31:10.932Z","repository":{"id":138253441,"uuid":"74739597","full_name":"HuTianQi/CoolImageView","owner":"HuTianQi","description":"A imageView  is similar to QQ that ImageView background picture can move up and down，But the function is more powerful than QQ，it also supports left and right movement","archived":false,"fork":false,"pushed_at":"2016-11-26T06:59:58.000Z","size":22063,"stargazers_count":75,"open_issues_count":2,"forks_count":27,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T16:39:34.179Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HuTianQi.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-25T08:28:57.000Z","updated_at":"2024-02-21T03:43:24.000Z","dependencies_parsed_at":"2024-01-14T11:12:25.283Z","dependency_job_id":"1c6437bc-286b-4d42-ba21-12ddba705a2b","html_url":"https://github.com/HuTianQi/CoolImageView","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/HuTianQi%2FCoolImageView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuTianQi%2FCoolImageView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuTianQi%2FCoolImageView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuTianQi%2FCoolImageView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuTianQi","download_url":"https://codeload.github.com/HuTianQi/CoolImageView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249986050,"owners_count":21356314,"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:51.368Z","updated_at":"2025-04-21T02:31:10.926Z","avatar_url":"https://github.com/HuTianQi.png","language":"Java","readme":"# CoolImageView\nA imageView  is similar to QQ that imageView background picture can move up and down，But the function is more powerful than QQ,it also supports left and right movement  \n\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/HuTianQi/CoolImageView#license)\n[![platform](https://img.shields.io/badge/platform-Android-yellow.svg)](https://www.android.com)\n\n##Dynamic effect preview （Because the gif resources are large, please wait for the resources to complete the load）\nthis is  background picture left and right movement  \n![image](https://github.com/HuTianQi/CoolImageView/blob/master/beauty.gif)    \n this is background picture move up and down  \n![image](https://github.com/HuTianQi/CoolImageView/blob/master/beauty_.gif)   \n\n\n##How to use\nstep1: Add the following to your attrs.xml file (in res/values):\n-----\n```xml\n\u003cresources\u003e\n    \u003cdeclare-styleable name=\"CoolImageView\"\u003e\n        \u003cattr name=\"direction\" format=\"string\"/\u003e\n    \u003c/declare-styleable\u003e\n\u003c/resources\u003e\n```\n\nstep2:Add the following code to the root view of your layout:  \n-----\n```xml\nxmlns:app=\"http://schemas.android.com/apk/res-auto\"\n```\n\nstep3:Add the widget code in the appropriate place in your xml file, Here's a sample implementation:  \n-----\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cLinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/activity_main\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    tools:context=\"com.example.hzhuqi.coolimagview.MainActivity\"\u003e\n    \n    \u003ccom.example.hzhuqi.coolimagview.CoolImageView\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"300dp\"\n        android:src=\"@mipmap/qq\"\n        app:direction=\"horizontal\"\n\n       \u003e\n    \u003c/com.example.hzhuqi.coolimagview.CoolImageView\u003e\n\n    \u003ccom.example.hzhuqi.coolimagview.CoolImageView\n        android:layout_marginTop=\"@dimen/activity_vertical_margin\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:src=\"@mipmap/qq_\"\n        app:direction=\"vertical\"\n        \u003e\n    \u003c/com.example.hzhuqi.coolimagview.CoolImageView\u003e\n\u003c/LinearLayout\u003e\n\n```\n\n##Notice:\nyou should set direction properties in your xml file,If you don't want to do that.You can use ordinary ImageView instead\n\n##License\nMIT License\n\nCopyright (c) 2016 hq_sunshine\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":["ImageView"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHuTianQi%2FCoolImageView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHuTianQi%2FCoolImageView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHuTianQi%2FCoolImageView/lists"}