Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Android Annotations support - inflate view from existing view#7

Open
kosiara wants to merge 1 commit intogueei:mastergueei/AndroidBinding:masterfrom
kosiara:feature_inflate.view.from.existing.viewkosiara/AndroidBindingWithAndroidAnnotations:feature_inflate.view.from.existing.viewCopy head branch name to clipboard
Open

Android Annotations support - inflate view from existing view#7
kosiara wants to merge 1 commit intogueei:mastergueei/AndroidBinding:masterfrom
kosiara:feature_inflate.view.from.existing.viewkosiara/AndroidBindingWithAndroidAnnotations:feature_inflate.view.from.existing.viewCopy head branch name to clipboard

Conversation

@kosiara
Copy link

@kosiara kosiara commented Jul 23, 2014

I wanted to be able to use AndroidBinding when binding to an existing view. I use it in Android Annotations where view is constructed automatically with @EActivity(R.layout.activity_init).
Later I reuse my created view @Afterviews protected void afterViews() {} method.

It can be used in @Afterviews method

@Afterviews
protected void afterViews() {
Binder.InflateResult inflateResult = Binder.inflateViewFromExistingView(this, findViewById(R.id.drawer_layout), R.layout.activity_init);
Binder.bindView(this, inflateResult, mViewModel);
}

It can be used in @Afterviews method

@Afterviews
protected void afterViews() {
   Binder.InflateResult inflateResult = Binder.inflateViewFromExistingView(this, findViewById(R.id.drawer_layout), R.layout.activity_init);
   Binder.bindView(this, inflateResult, mViewModel);
}
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

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.