Closed edlman closed 4 years ago
Not directly. You can either subclass the adapter and get a reference to it in onBindBinding
or pass the view to the model you are binding in xml.
Hello Evan,
thanks for reply. I did it using my own adapter. But it's a pitty it's not possible to access inner views on ItemBinding.
Regards, Martin
Not directly. You can either subclass the adapter and get a reference to it in |onBindBinding| or pass the view to the model you are binding in xml.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/evant/binding-collection-adapter/issues/176?email_source=notifications&email_token=AA5XIQHFPHF4JHZWXFSW5S3Q73N7JA5CNFSM4KL4URCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ7O7PA#issuecomment-578744252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5XIQAJROE6WN2ON36PIXTQ73N7JANCNFSM4KL4URCA.
-- Martin Edlman [web] http://an.y-co.de ANY CODE [mobile] +420 774 692 633 c/c++,c#,java,android, [hangout] ac.anycode @ gmail.com php,sql,html5,css3 [skype] an.y-co.de
I'm trying to get a reference to inner view (VideoView) of a page in PagerView. There is a fragment XML definition which contains
The ViewModel class contains
and
page_tutorial.xml
layout containsAnd I want to get reference to this VideoView. But I didn't find a way how to. It's not possible via
itemBinding
.