{"id":21130303,"url":"https://github.com/jacobmoncur/QuiltViewLibrary","last_synced_at":"2025-07-09T01:33:07.767Z","repository":{"id":6300346,"uuid":"7535003","full_name":"jacobmoncur/QuiltViewLibrary","owner":"jacobmoncur","description":"Android Quilt View Library","archived":false,"fork":false,"pushed_at":"2014-02-19T14:16:08.000Z","size":2427,"stargazers_count":557,"open_issues_count":21,"forks_count":194,"subscribers_count":50,"default_branch":"master","last_synced_at":"2024-04-14T14:33:13.489Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacobmoncur.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":"2013-01-10T05:27:07.000Z","updated_at":"2023-11-03T05:42:27.000Z","dependencies_parsed_at":"2022-08-29T19:40:31.133Z","dependency_job_id":null,"html_url":"https://github.com/jacobmoncur/QuiltViewLibrary","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/jacobmoncur%2FQuiltViewLibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobmoncur%2FQuiltViewLibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobmoncur%2FQuiltViewLibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobmoncur%2FQuiltViewLibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacobmoncur","download_url":"https://codeload.github.com/jacobmoncur/QuiltViewLibrary/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:34.839Z","updated_at":"2024-11-20T05:32:43.407Z","avatar_url":"https://github.com/jacobmoncur.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# QuiltViewLibrary\n\nQuiltView displays **views of different sizes** in a **scrollable grid**.\n\n![quilt](https://raw.github.com/jacobmoncur/QuiltViewLibrary/master/nexus7.png \"QuiltView\") ![quilt](https://raw.github.com/jacobmoncur/QuiltViewLibrary/master/nexus7_mayer.png \"QuiltView\")\n\nDependencies\n------------\nThis library depends on gridlayout_v7 (git@github.com:jacobmoncur/gridlayout_v7.git)\n\nSetup\n-----\n\nThe QuiltView can be defined by XML:\n\n    \u003cFrameLayout 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/com.jake.quiltviewsample\"\n        android:id=\"@+id/FrameLayout1\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\u003e\n    \n        \u003ccom.jake.quiltview.QuiltView\n            android:id=\"@+id/quilt\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:padding=\"5dip\"\n            app:scrollOrientation=\"horizontal|vertical\" \u003e\n        \u003c/com.jake.quiltview.QuiltView\u003e\n    \n    \u003c/FrameLayout\u003e\n    \nOr programmatically\n    \n    boolean isVertical = true|false; //defines which direction the QuiltView will scroll: true = Vertical, false = Horizontal\n    QuiltView quiltView = new QuiltView(context, isVertical); //(QuiltView) findViewById(R.id.quilt);\n    \n    \nAdding Children\n---------------\n\nChildren must be added to the QuiltView programmatically as an ArrayList of ImageViews:\n\n    ArrayList\u003cImageView\u003e images = new ArrayList\u003cImageView\u003e();\n    for(int i = 0; i \u003c num; i++){\n    \tImageView image = new ImageView(this.getApplicationContext());\n    \timage.setScaleType(ScaleType.CENTER_CROP);\n    \timage.setImageResource(R.drawable.bg);\n    \timages.add(image);\n    }\n    quiltView.addPatchImages(images);\n\nOr an ArrayList of Views\n\n    ArrayList\u003cView\u003e views = new ArrayList\u003cView\u003e();\n    for(int i = 0; i \u003c num; i++){\n        FrameLayout patch = new FrameLayout(this.getApplicationContext());\n    \tviews.add(patch);\n    }\n    quiltView.addPatchViews(views);\n\nGoals for this view\n-------------------\n* Have no _empty_ patches\n* Be sudo-random (lays out the children differently each time)\n* Looks awesome!\n\nTODO\n----\n* Custom Adapter to allow view recycling\n* Be able to define children in XML\n* Adapt better to different screen sizes\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobmoncur%2FQuiltViewLibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobmoncur%2FQuiltViewLibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobmoncur%2FQuiltViewLibrary/lists"}