{"id":27405027,"url":"https://github.com/maze1377/android-prefix-edittext-textview","last_synced_at":"2025-06-28T00:04:21.750Z","repository":{"id":78074416,"uuid":"211693140","full_name":"maze1377/android-prefix-edittext-textview","owner":"maze1377","description":"Adding a prefix and img to an EditText and Textview","archived":false,"fork":false,"pushed_at":"2019-10-26T07:06:54.000Z","size":381,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T05:49:17.873Z","etag":null,"topics":["android","android-library","customview","edittext","prefix","textview"],"latest_commit_sha":null,"homepage":"","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/maze1377.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,"zenodo":null}},"created_at":"2019-09-29T16:37:10.000Z","updated_at":"2025-03-24T10:51:36.000Z","dependencies_parsed_at":"2023-04-28T03:21:46.412Z","dependency_job_id":null,"html_url":"https://github.com/maze1377/android-prefix-edittext-textview","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/maze1377/android-prefix-edittext-textview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maze1377%2Fandroid-prefix-edittext-textview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maze1377%2Fandroid-prefix-edittext-textview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maze1377%2Fandroid-prefix-edittext-textview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maze1377%2Fandroid-prefix-edittext-textview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maze1377","download_url":"https://codeload.github.com/maze1377/android-prefix-edittext-textview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maze1377%2Fandroid-prefix-edittext-textview/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262352616,"owners_count":23297688,"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","customview","edittext","prefix","textview"],"created_at":"2025-04-14T05:49:05.721Z","updated_at":"2025-06-28T00:04:21.723Z","avatar_url":"https://github.com/maze1377.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# android-prefix-textView and editView\nEditText and TextView with support for non editable prefix and image.\n![Sample Screenshot](https://github.com/maze1377/android-prefix-edittext-textview/raw/master/screenshots/sample.png)\n\n#get more performance and low memory\n![Sample Details](https://github.com/maze1377/android-prefix-edittext-textview/raw/master/screenshots/details.jpg)\n\n## Howto?\nEither directly via xml:\n```xml\n\u003ccom.maze.prefix.PrefixTextView\n        android:layout_margin=\"5dp\"\n        android:id=\"@+id/textview3\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:background=\"#1111\"\n        android:gravity=\"right|center_vertical\"\n        android:text=\"1398/09/23\"\n        android:textColorHint=\"#567\"\n        android:textSize=\"18sp\"\n        app:prefix=\" تاریخ عضویت: \"\n        android:textColor=\"#D500F9\"\n        app:res=\"@drawable/term\" /\u003e\n```\n\nor programmatically in code:\n\n```kotlin\n\n### Setting the prefix\nedit_text.prefix = \"$\"\n\n### Setting the color\nedit_text.setHintTextColor(Color.GREEN) \n\n### Setting the drawable\nedit_text.drawable = avatar\n\n```\nSee  [sample code](https://github.com/maze1377/android-prefix-edittext-textview/blob/master/sample/src/main/java/com/maze/sample/MainActivity.kt).\n\n## Add as Library\nStep 1. Add the JitPack repository to your build file  \nAdd it in your root build.gradle at the end of repositories:\n```\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\nStep 2. Add the dependency\n```\n\tdependencies {\n \t\timplementation 'com.github.maze1377:android-prefix-edittext-textview:lastVerstion'\n\t}\n```\ncurrent lastVerstion=1.1.1\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaze1377%2Fandroid-prefix-edittext-textview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaze1377%2Fandroid-prefix-edittext-textview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaze1377%2Fandroid-prefix-edittext-textview/lists"}