0

I want to handle onClick event for specific view, and pass some parameters to handler.

Right now I have created a function and passing View and my params to that function and implementing onClick handler in that function as follows.

private void doSomething(View view, String... params)
{
    view.setOnClickListener(new OnClickListener()
    {
        @Override
        public void onClick(View v) 
        {
            //  params is available here
        }
    });
}

My question is does butterknife allow to pass additional parameters to handler? if yes how? (docs does not explain)

Kishor Pawar
  • 3,386
  • 3
  • 28
  • 61

0 Answers0