{"id":18939442,"url":"https://github.com/markzhai/rememberedittext","last_synced_at":"2025-04-15T03:51:15.539Z","repository":{"id":57716234,"uuid":"41899858","full_name":"markzhai/RememberEditText","owner":"markzhai","description":"An EditText which can remember last several input, free developer from managing cache everywhere themselves. !! NOT ViewGroup !!","archived":false,"fork":false,"pushed_at":"2016-04-10T08:10:50.000Z","size":158,"stargazers_count":161,"open_issues_count":7,"forks_count":31,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-12T23:25:07.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/markzhai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-04T05:45:47.000Z","updated_at":"2024-05-09T23:57:57.000Z","dependencies_parsed_at":"2022-08-25T09:21:36.517Z","dependency_job_id":null,"html_url":"https://github.com/markzhai/RememberEditText","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/markzhai%2FRememberEditText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markzhai%2FRememberEditText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markzhai%2FRememberEditText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markzhai%2FRememberEditText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markzhai","download_url":"https://codeload.github.com/markzhai/RememberEditText/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003944,"owners_count":21196794,"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-08T12:17:35.702Z","updated_at":"2025-04-15T03:51:15.524Z","avatar_url":"https://github.com/markzhai.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RememberEditText [![GitHub release](https://img.shields.io/badge/sample%20apk-0.9.0-brightgreen.svg?style=flat)](https://github.com/markzhai/RememberEditText/releases/download/v0.9.0/app-debug.apk) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/cn.zhaiyifan/rememberedittext/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/cn.zhaiyifan/rememberedittext)\n\nAn EditText which can remember last input, free developer from managing cache everywhere themselves.\n\n[中文版](https://github.com/markzhai/RememberEditText/blob/master/README_CN.md \"中文版\")\n\n![Show popup window after dropdown icon clicked](art/screenshot.jpg \"Show popup window after dropdown icon clicked\")\n\n## Introduction\nHave you been annoyed with entering the same stuff once and once like username, thread-reply? RememberEditText can remember the last several input automatically and offers a dropdown list to let user choose.\n\n## How\nView: RememberEditText is an EditText view, but not a viewgroup extends linearlayout like some project. I made it so in order to decrease view layers.\n\nCache: RememberEditText simply puts its cache in SharedPreference, and keeps a local hashmap version to free from visiting SharedPreference everytime, thus speeds up its looks up and update.\n\n## Usage\n\n```gradle\ndependencies {\n    compile 'cn.zhaiyifan:rememberedittext:0.9.0'\n}\n```\n\n```xml\n\u003ccn.zhaiyifan.rememberedittext.RememberEditText\n    android:id=\"@+id/username\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:layout_centerHorizontal=\"true\"\n    android:layout_marginLeft=\"@dimen/activity_horizontal_margin\"\n    android:layout_marginRight=\"@dimen/activity_horizontal_margin\"\n    android:layout_marginTop=\"150dp\"\n    android:hint=\"Username/PhoneNumber\"\n    android:inputType=\"text\"\n    app:rememberCount=\"3\"\n    app:rememberId=\"username\" /\u003e\n```\n\nstyles:\n```xml\n\u003cdeclare-styleable name=\"RememberEditText\"\u003e\n    \u003c!-- auto fill in cache, by default true --\u003e\n    \u003cattr name=\"autoFill\" format=\"boolean\" /\u003e\n    \u003c!-- auto save to cache, by default true --\u003e\n    \u003cattr name=\"autoSave\" format=\"boolean\" /\u003e\n    \u003c!-- dropdown icon to choose between cache values, by default use abc_spinner_mtrl_am_alpha --\u003e\n    \u003cattr name=\"dropDownIcon\" format=\"reference\" /\u003e\n    \u003c!-- delete icon to delete cache value, by default use abc_ic_clear_mtrl_alpha --\u003e\n    \u003cattr name=\"deleteIcon\" format=\"reference\" /\u003e\n    \u003c!-- id of cache, will use view id if not set --\u003e\n    \u003cattr name=\"rememberId\" format=\"string\" /\u003e\n    \u003c!-- count of cache to keep, by default 3 --\u003e\n    \u003cattr name=\"rememberCount\" format=\"integer\" /\u003e\n\u003c/declare-styleable\u003e\n```\n\n## TODO\n- Make cache loading async.\n- Add more hint mode.\n- Enable pair mode, like username/password.\n- Center gravity is not supported yet, need help (icon is missing when set center gravity).\n- Add encrpytion mode to save stuff like password (low priority).\n- Support RTL (Right to Left).\n\n## Screenshots\n![Show popup window after dropdown icon clicked](art/Screenshot_2015-09-09-11-04-19.jpg)\n![First start, value auto filled](art/Screenshot_2015-09-09-11-08-10.jpg)\n![A larger EditText sample](art/Screenshot_2015-09-09-11-04-25.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkzhai%2Frememberedittext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkzhai%2Frememberedittext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkzhai%2Frememberedittext/lists"}