Tabnine Logo
OnEditorAction
Code IndexAdd Tabnine to your IDE (free)

How to use
OnEditorAction
in
butterknife

Best Java code snippets using butterknife.OnEditorAction (Showing top 2 results out of 315)

origin: JakeWharton/butterknife

private static @Nullable Unbinder parseOnEditorAction(final Object target, final Method method,
  View source) {
 OnEditorAction onEditorAction = method.getAnnotation(OnEditorAction.class);
 if (onEditorAction == null) {
  return null;
 }
 validateMember(method);
 final boolean propagateReturn = validateReturnType(method, boolean.class);
 final ArgumentTransformer argumentTransformer =
   createArgumentTransformer(method, ON_EDITOR_ACTION_TYPES);
 List<TextView> views =
   findViews(source, onEditorAction.value(), isRequired(method), method.getName(),
     TextView.class);
 ViewCollections.set(views, ON_EDITOR_ACTION, (v, actionId, event) -> {
  Object value = tryInvoke(method, target, argumentTransformer.transform(v, actionId, event));
  //noinspection SimplifiableConditionalExpression
  return propagateReturn
    ? (boolean) value
    : false;
 });
 return new ListenerUnbinder<>(views, ON_EDITOR_ACTION);
}
origin: GrossumUA/TAS_Android_Boilerplate

@OnEditorAction(R.id.et_password)
public boolean onEtPassAction(TextView v, int actionId, KeyEvent event) {
  if (actionId == EditorInfo.IME_ACTION_DONE) {
    onLogInButtonClick();
  }
  return true;
}
butterknifeOnEditorAction

Most used methods

  • <init>
  • value

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now