{"id":18270237,"url":"https://github.com/thuytrinh/android-collage-views","last_synced_at":"2025-04-04T23:31:51.492Z","repository":{"id":5854254,"uuid":"7070995","full_name":"thuytrinh/android-collage-views","owner":"thuytrinh","description":"Draggable, rotatable, and scalable views for Android","archived":false,"fork":false,"pushed_at":"2019-04-16T10:05:34.000Z","size":927,"stargazers_count":332,"open_issues_count":12,"forks_count":88,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-11-05T11:52:35.112Z","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/thuytrinh.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":"2012-12-08T19:07:35.000Z","updated_at":"2024-07-31T07:55:33.000Z","dependencies_parsed_at":"2022-07-12T19:50:35.227Z","dependency_job_id":null,"html_url":"https://github.com/thuytrinh/android-collage-views","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/thuytrinh%2Fandroid-collage-views","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thuytrinh%2Fandroid-collage-views/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thuytrinh%2Fandroid-collage-views/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thuytrinh%2Fandroid-collage-views/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thuytrinh","download_url":"https://codeload.github.com/thuytrinh/android-collage-views/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266476,"owners_count":20910831,"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-05T11:38:26.481Z","updated_at":"2025-04-04T23:31:50.331Z","avatar_url":"https://github.com/thuytrinh.png","language":"Java","funding_links":[],"categories":["etc"],"sub_categories":[],"readme":"android-collage-views\n==================\n\nIntroduction\n------------\n\n\"A video is worth a million words\"\n[Watch the demo here](http://youtu.be/yHmA-bMqBRI)\n\n*(Note: Work only with API 11+)*\n\nUsage\n-----\n\n1. Create a parent view having `splitMotionEvents` enabled, and having child views as below:\n\n    ```xml\n    \u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:splitMotionEvents=\"true\"\u003e\n    \n        \u003cImageView\n            android:id=\"@+id/collageBgView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:layout_centerHorizontal=\"true\"\n            android:layout_centerVertical=\"true\"\n            android:background=\"#FFD4B081\" /\u003e\n    \n        \u003ccom.thuytrinh.android.collageviewsdemo.CollageView\n            android:id=\"@+id/collageView1\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_centerHorizontal=\"true\"\n            android:layout_centerVertical=\"true\"\n            android:src=\"@drawable/daffodils\" /\u003e\n    \n        \u003ccom.thuytrinh.android.collageviewsdemo.CollageView\n            android:id=\"@+id/collageView2\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_centerHorizontal=\"true\"\n            android:layout_centerVertical=\"true\"\n            android:src=\"@drawable/green\" /\u003e\n    \n        \u003ccom.thuytrinh.android.collageviewsdemo.CollageView\n            android:id=\"@+id/collageView3\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_centerHorizontal=\"true\"\n            android:layout_centerVertical=\"true\"\n            android:src=\"@drawable/hawaii\" /\u003e\n    \n        \u003ccom.thuytrinh.android.collageviewsdemo.CollageView\n            android:id=\"@+id/collageView4\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_centerHorizontal=\"true\"\n            android:layout_centerVertical=\"true\"\n            android:src=\"@drawable/sunset\" /\u003e\n    \n    \u003c/RelativeLayout\u003e\n    ```\n\n2. Find the child views and assign `MultiTouchListener`:\n\n    ```java\n    findViewById(R.id.collageView1).setOnTouchListener(new MultiTouchListener());\n    findViewById(R.id.collageView2).setOnTouchListener(new MultiTouchListener());\n    ```\n\n3. By default, translating, scaling, and rotating are enabled. However, if you want a child view not to be scaled but translated or rotated only, toggling `isScaleEnabled`, `isTranslateEnabled`, `isRotateEnabled` appropriately will do the trick.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthuytrinh%2Fandroid-collage-views","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthuytrinh%2Fandroid-collage-views","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthuytrinh%2Fandroid-collage-views/lists"}