Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not generate binding source for inner class #3

Open
binhbt opened this issue Sep 15, 2018 · 0 comments
Open

Can not generate binding source for inner class #3

binhbt opened this issue Sep 15, 2018 · 0 comments

Comments

@binhbt
Copy link

binhbt commented Sep 15, 2018

When i change MainActivity for testing
public class MainActivity extends AppCompatActivity {

@BindView(R.id.tv_content)
TextView tvContent;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    Binding.bind(this);
}

@OnClick(R.id.bt_1)
void bt1Click(View v) {
    tvContent.setText("Button 1 Clicked");
}

@OnClick(R.id.bt_2)
void bt2Click(View v) {
    tvContent.setText("Button 2 Clicked");
}
public class TestActivity  extends AppCompatActivity{
    @BindView(R.id.tv_content)
    TextView tvContent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Binding.bind(this);
    }
}

}
Have no file "MainActivity$TestActivity$Binding.java" is created.
How can I inject for inner class?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant