Skip to content

Instantly share code, notes, and snippets.

View tringuyen1123's full-sized avatar

tringuyen1123

View GitHub Profile
# hasBrain_research
#XML declare
<EditText
android:id="@+id/plain_text_input"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:inputType="text"/>
# Java code
Field1 = (EditText)findViewById(R.id.field1);
Field1.addTextChangedListener(new TextWatcher() {