{"id":19139913,"url":"https://github.com/arcblock/did-motif-android","last_synced_at":"2025-05-06T23:15:06.330Z","repository":{"id":36958521,"uuid":"470119281","full_name":"ArcBlock/did-motif-android","owner":"ArcBlock","description":"A android library for generating DID identicons.","archived":false,"fork":false,"pushed_at":"2023-06-05T03:17:15.000Z","size":126,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-05-06T23:14:57.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArcBlock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-03-15T10:58:51.000Z","updated_at":"2023-03-02T06:32:27.000Z","dependencies_parsed_at":"2025-04-19T10:33:52.678Z","dependency_job_id":"fe411e71-668c-4663-9e0f-a24ff6332591","html_url":"https://github.com/ArcBlock/did-motif-android","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/ArcBlock%2Fdid-motif-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Fdid-motif-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Fdid-motif-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Fdid-motif-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArcBlock","download_url":"https://codeload.github.com/ArcBlock/did-motif-android/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252782834,"owners_count":21803410,"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-09T07:15:38.991Z","updated_at":"2025-05-06T23:15:06.312Z","avatar_url":"https://github.com/ArcBlock.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# did-motif-android\nA android library for generating DID identicons.\n\n# Install\n![Maven Central](https://img.shields.io/maven-central/v/io.arcblock.did/did-motif)\n```groovy\nimplementation 'io.arcblock.did:did-motif:${version}'\n```\n\n# Usage\n\nrender DID Motif:\n\n1. add view in xml\n```xml\n    \u003ccom.arcblock.wallet.appcommonres.view.didmotif.DIDMotif\n        android:id=\"@+id/motif_circle\"\n        android:layout_width=\"100dp\"\n        android:layout_height=\"100dp\"\n        android:layout_marginTop=\"10dp\"\n        /\u003e\n```\n\n2. set motif address\n```kotlin\nbinding.motifCircle.setAddress(address, DIDMotif.Shape.Circle, true)\n```\nthere are 4 shape of DIDMotif: Circle, Square, Hexagon and Rectangle. and the last parameter indicates whether to render the animation.\n\u003cimg width=\"341\" alt=\"image\" src=\"https://user-images.githubusercontent.com/4629442/158416084-175610af-0fdc-4303-8e1a-e3dbb36330d2.png\"\u003e\n\n\nrender Blockies IdentIcon\n\n1. add view in xml\n```xml\n    \u003cio.arcblock.did_motif.blockies.BlockiesIdenticon\n        android:id=\"@+id/identicon\"\n        android:layout_width=\"100dp\"\n        android:layout_height=\"100dp\"\n        /\u003e\n```\n3. set data in kotlin\n```kotlin\nbinding.identicon.setAddress(ethAddress,BlockiesIdenticon.SHAPE_SQUARE, BlockiesData.DEFAULT_SIZE, 20f)\n```\nthe Blockies Identicon only has 2 shape: Circle and Square.\n\n\u003cimg width=\"218\" alt=\"image\" src=\"https://user-images.githubusercontent.com/4629442/158416657-d25c8d4d-9f43-4369-ad49-8ff7e6d444e1.png\"\u003e\n\n\n\n# LICENSE\n```\n                Copyright [2022] [ArcBlock.io]\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcblock%2Fdid-motif-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcblock%2Fdid-motif-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcblock%2Fdid-motif-android/lists"}