by
54 8
0
4
2,666
0
Top 1% !
Popular
Famous
Specified
Popularity: 5850th place
Created
Modified Jan 23, 2014
This snippet is Public
No tags for this snippet yet.
Android Version4.0 Icecream Sandwich
InputName0s
InputType0Editable
LanguageJavascript
LicenseMIT_X11
MethodNameafterTextChanged
OutputTypevoid

IF Abfrage direkt in boolean Feld schreiben

Bsp.: button.setEnabled(true); 
=> Änderung von true in eine direkte Abfrage
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/23303/IF-Abfrage-direkt-in-boolean-Feld-schrei?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
eingabe.addTextChangedListener(new TextWatcher(){ @Override public void afterTextChanged(Editable s) { // TODO Auto-generated method stub button.setEnabled(s.length() > 0 && s.toString().trim().contains(" ")); } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { // TODO Auto-generated method stub } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { // TODO Auto-generated method stub } });
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus