{"id":22449886,"url":"https://github.com/turskyi/roundedimage","last_synced_at":"2026-04-28T11:35:33.400Z","repository":{"id":133704051,"uuid":"224182810","full_name":"Turskyi/RoundedImage","owner":"Turskyi","description":"This sample demonstrates how to create a custom ImageView that displays images with rounded corners.","archived":false,"fork":false,"pushed_at":"2024-07-28T20:02:25.000Z","size":2867,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T16:28:33.026Z","etag":null,"topics":["android","educational","imageview","kotlin","sample-app","xml"],"latest_commit_sha":null,"homepage":"https://github.com/Turskyi/RoundedImage","language":"Kotlin","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/Turskyi.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":"2019-11-26T12:03:51.000Z","updated_at":"2024-07-28T20:04:41.000Z","dependencies_parsed_at":"2025-02-01T16:38:36.760Z","dependency_job_id":null,"html_url":"https://github.com/Turskyi/RoundedImage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turskyi%2FRoundedImage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turskyi%2FRoundedImage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turskyi%2FRoundedImage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turskyi%2FRoundedImage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turskyi","download_url":"https://codeload.github.com/Turskyi/RoundedImage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245841761,"owners_count":20681195,"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":["android","educational","imageview","kotlin","sample-app","xml"],"created_at":"2024-12-06T05:12:22.057Z","updated_at":"2026-04-28T11:35:28.337Z","avatar_url":"https://github.com/Turskyi.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua)\n\u003cimg alt=\"GitHub commit activity\" src=\"https://img.shields.io/github/commit-activity/m/Turskyi/RoundedImage\"\u003e\n\n# RoundedImageView Sample\n\nThis sample demonstrates how to create a custom ImageView that displays images\nwith rounded corners.\n\n## Value:\n\nThis project provides a clear and concise example of:\n\n- Creating a custom View by extending AppCompatImageView.\n- Overriding the `setImageDrawable()` method to modify the displayed image.\n- Using RoundedBitmapDrawableFactory to create a rounded bitmap.\n- Applying the custom View in a layout XML file.\n  This sample can be used as a starting point for creating more complex custom\n  Views or for learning about image manipulation in Android.\n\n## Usage:\n\nTo use the RoundedImageView, simply add it to your layout XML file:\n\n```xml\n\n\u003cua.turskyi.roundedimage.RoundedImageView android:id=\"@+id/image\"\n    android:layout_width=\"wrap_content\" android:layout_height=\"wrap_content\"\n    app:layout_constraintBottom_toBottomOf=\"parent\"\n    app:layout_constraintLeft_toLeftOf=\"parent\"\n    app:layout_constraintRight_toRightOf=\"parent\"\n    app:layout_constraintTop_toTopOf=\"parent\"\n    android:src=\"@drawable/pic_profile\" /\u003e\n```\n\nYou can then set the image source using the src attribute or programmatically\nusing `setImageResource()`.\n\n## Contact:\n\nFor any inquiries or suggestions, please open an issue on the GitHub repository\nor reach out to me directly at\n[dmytro@turskyi.com](mailto:dmytro@turskyi.com).\n\n## Screenshot:\n\n\u003c!--suppress CheckImageSize --\u003e\n\u003cimg src=\"screenshot/Screenshot_20240728.png\" width=\"200\"  alt=\"screenshot\"\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturskyi%2Froundedimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturskyi%2Froundedimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturskyi%2Froundedimage/lists"}