{"id":14460150,"url":"https://github.com/mohitsoni48/aDp","last_synced_at":"2025-08-28T18:31:51.739Z","repository":{"id":254279234,"uuid":"846042274","full_name":"mohitsoni48/aDp","owner":"mohitsoni48","description":"This library is used in jetpack compose to overcome UI differences in different android devices for same code.","archived":false,"fork":false,"pushed_at":"2024-08-30T11:37:28.000Z","size":1033,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-01T21:04:38.434Z","etag":null,"topics":["android","android-library","jetpack-compose","kotlin-android","kotlin-library","ui"],"latest_commit_sha":null,"homepage":"https://medium.com/@mohitsoni48/creating-pixel-perfect-ui-with-jetpack-compose-17376455f16b","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/mohitsoni48.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":"2024-08-22T12:27:25.000Z","updated_at":"2024-09-01T20:24:13.000Z","dependencies_parsed_at":"2024-08-24T07:45:24.195Z","dependency_job_id":null,"html_url":"https://github.com/mohitsoni48/aDp","commit_stats":null,"previous_names":["mohitsoni48/adp"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohitsoni48%2FaDp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohitsoni48%2FaDp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohitsoni48%2FaDp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohitsoni48%2FaDp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohitsoni48","download_url":"https://codeload.github.com/mohitsoni48/aDp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231294144,"owners_count":18354140,"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","android-library","jetpack-compose","kotlin-android","kotlin-library","ui"],"created_at":"2024-09-01T21:01:06.303Z","updated_at":"2024-12-25T23:30:26.716Z","avatar_url":"https://github.com/mohitsoni48.png","language":"Kotlin","funding_links":["https://ko-fi.com/L3L612MBTA"],"categories":["Kotlin"],"sub_categories":[],"readme":"# aDp\n[![](https://jitpack.io/v/mohitsoni48/aDp.svg)](https://jitpack.io/#mohitsoni48/aDp)\n\nSee here why you need this: https://medium.com/@mohitsoni48/creating-pixel-perfect-ui-with-jetpack-compose-17376455f16b\n\n## How to Install\n\nAdd it in your root build.gradle at the end of repositories:\n\n```\ndependencyResolutionManagement {\n\t\trepositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n\t\trepositories {\n\t\t\tmavenCentral()\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\n\nAdd the dependency\n\n```\ndependencies {\n\timplementation 'com.github.mohitsoni48:aDp:\u003cVersion\u003e'\n}\n```\n\n## How to Use\nInitialize ADp in you application class/ Launching Activity like this\n```\nADp.initializeAdp(this.resources, \u003cYour design width in px\u003e)\n```\n\nReplace `dp` with `aDp` and `sp` with `aSp` in your Jetpcak Compose\n\n```\nText(\n     text = \"This text uses aSp\\nDimensions to box are in aDp\",\n     fontSize = 16.aSp,\n     modifier = Modifier\n     .background(\n        Color.LightGray\n     )\n     .padding(vertical = 20.aDp)\n     .width(300.aDp)\n)\n```\n\n## Liked my work?\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/L3L612MBTA)\n\n### Note: This library is not optimized for foldable phones and tablets. Also If your device supports configuration changes, you will need to initialize again on each configuration change\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohitsoni48%2FaDp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohitsoni48%2FaDp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohitsoni48%2FaDp/lists"}