• Stars
    star
    163
  • Rank 231,141 (Top 5 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An EditText which can remember last several input, free developer from managing cache everywhere themselves. !! NOT ViewGroup !!

RememberEditText GitHub release Maven Central

An EditText which can remember last input, free developer from managing cache everywhere themselves.

中文版

Show popup window after dropdown icon clicked

Introduction

Have 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.

How

View: RememberEditText is an EditText view, but not a viewgroup extends linearlayout like some project. I made it so in order to decrease view layers.

Cache: 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.

Usage

dependencies {
    compile 'cn.zhaiyifan:rememberedittext:0.9.0'
}
<cn.zhaiyifan.rememberedittext.RememberEditText
    android:id="@+id/username"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_marginLeft="@dimen/activity_horizontal_margin"
    android:layout_marginRight="@dimen/activity_horizontal_margin"
    android:layout_marginTop="150dp"
    android:hint="Username/PhoneNumber"
    android:inputType="text"
    app:rememberCount="3"
    app:rememberId="username" />

styles:

<declare-styleable name="RememberEditText">
    <!-- auto fill in cache, by default true -->
    <attr name="autoFill" format="boolean" />
    <!-- auto save to cache, by default true -->
    <attr name="autoSave" format="boolean" />
    <!-- dropdown icon to choose between cache values, by default use abc_spinner_mtrl_am_alpha -->
    <attr name="dropDownIcon" format="reference" />
    <!-- delete icon to delete cache value, by default use abc_ic_clear_mtrl_alpha -->
    <attr name="deleteIcon" format="reference" />
    <!-- id of cache, will use view id if not set -->
    <attr name="rememberId" format="string" />
    <!-- count of cache to keep, by default 3 -->
    <attr name="rememberCount" format="integer" />
</declare-styleable>

TODO

  • Make cache loading async.
  • Add more hint mode.
  • Enable pair mode, like username/password.
  • Center gravity is not supported yet, need help (icon is missing when set center gravity).
  • Add encrpytion mode to save stuff like password (low priority).
  • Support RTL (Right to Left).

Screenshots

Show popup window after dropdown icon clicked First start, value auto filled A larger EditText sample

More Repositories

1

AndroidPerformanceMonitor

A transparent ui-block detection library for Android. (known as BlockCanary)
Java
6,572
star
2

LyricHere

Local lyric-play support music player, includes a powerful LyricView
Java
329
star
3

init

Init helps app schedule complex task-group like initialization with type, priority and multi-process.
Java
272
star
4

LyricView

Android LyricView that accepts lrc stream as input, A powerful lyric parser is also contained.
Java
264
star
5

DataBindingAdapter

Super simple RecyclerView adapter using Data Binding Technology.
Java
245
star
6

DataBindingSample

Android Data Binding Sample
Java
156
star
7

InterestingTitleBar

TitleBar (or custom ActionBar) with immersive status bar and scroll animation like tumblr app (icon and text color gradually change to end color).
Java
111
star
8

react-native-preloader

React Native Pre-loader for Android.
Java
53
star
9

ResourceOverlayDemo

Demo to show Android aapt overlay and gradle resource merge
Java
23
star
10

AndroidProjectFrom0

Repository to show the best practice from the series blog Android-Project-From-0
Java
20
star
11

GoWebServer

A web server use Go language, includes authentication.
Go
10
star
12

markzhai.github.io

Mark Zhai's hexo homepage
HTML
10
star
13

nevo-direct-reply

Decorators for nevolution which provides direct reply experience on wechat, whatsapp, etc.
Java
9
star
14

GitHubExplorer

(wip) An github android client with explore and trending feature.
Java
8
star
15

ErogameScape-Mining

A spider and data-mining project on ErogameScape
Python
5
star
16

PlaneWar

A clone of initial version of 飞机大战 from 微信. SurfaceView implementation
Java
4
star
17

add-fitsSystemWindows

add fitsSystemWindows to all layout files (use if to add Translucent Status Bar support easily)
Python
3
star
18

Logger

Logger is a logging tool helps unify release log and debug log, with some little advanced usage
Java
3
star
19

HelloVue

Repository for Android developer to learn Vue.js
JavaScript
3
star
20

Galaxy

Galaxy is a hybrid framework for Android.
3
star
21

dimBody

Screen dimming according to the barrier in front of the screen for CSIT6910 HKUST.
C++
1
star
22

blog-comment

blog comment
1
star
23

MusicPlayer

A Music player implemented by Java and Processing, it has wonderful music visualization and rhythm game for any music.
Java
1
star