Presentation from GDG DevFest Ukraine 2015 - the biggest Google related event in the country. October 23-24, Lviv. Learn more at http://devfest.gdg.org.ua/
beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { mEmailSignInButton.setText(String.format(getString(R.string.action_sign_in), s)); } @Override public void afterTextChanged(Editable s) { } }); ... LoginActivity.java
beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { mEmailSignInButton.setText(String.format(getString(R.string.action_sign_in), s)); } @Override public void afterTextChanged(Editable s) { } }); ... LoginActivity.java
firstName = new ObservableField<>(); public final ObservableField<String> lastName = new ObservableField<>(); public final ObservableInt age = new ObservableInt(); } ... user.firstName.set("Google"); int age = user.age.get(); User.java
android:id="@+id/email_sign_in_button" /> ... public final TextView email; public final TextView password; public final Button emailSignInButton; Login.xml