Add static factory methods to ViewGroup subclasses#112
Conversation
|
Thanks for contributing that !
|
|
|
What I'm saying is that we are doing stuff in You're right about
Well, in issue #101, you wrote : @EActivity(R.layout.main)
public class CustomFrameLayoutActivity extends Activity {
...
CustomFrameLayout layout = CustomFrameLayout_.getInflatedInstance(this, 2);
...
}Isn't that not using XML ? |
|
No it's not "not using XML" (weird sentence). CustomFrameLayout_ is still inflated through an XML file. I though what you were referring as "not using XML" was an |
Not it's not ;) ! It's one thing to inflate its children, it's another thing to be inflated. |
|
I was confused indeed ! Now I see why |
|
Humm... whatever will suit you best :) I'd probably go for |
|
Working on it now. What about @eview ? It should work exactly the same way, did you forget about that annotation :) ? |
…ms with onFinishInflate
|
You mean a static constructor for classes annotated with |
|
Yeah :) Basically, the structure is identical. |
…Instantiable Add static factory methods to ViewGroup subclasses. Fixes #111
…t_title Left title overlaps current title with long text during right dragging
See issue #111.