Ohanian Active Member Licensed User Longtime User May 2, 2016 #1 Hi, I was wrapping a library which was extended a Fragment(Fragment / DialogFragment) What should I write in my wrapper class? Is it true : Code: Copy public MyDatepicker extend ViewWrapper(Fragment_Library_Address) And in the innerinitialize ; how should we do with instance I mean Code: Copy public void innerinitialize(BA ba , String EventName){ MyFragment mfragemnt = MyFragement.this; } Last edited: May 2, 2016
Hi, I was wrapping a library which was extended a Fragment(Fragment / DialogFragment) What should I write in my wrapper class? Is it true : Code: Copy public MyDatepicker extend ViewWrapper(Fragment_Library_Address) And in the innerinitialize ; how should we do with instance I mean Code: Copy public void innerinitialize(BA ba , String EventName){ MyFragment mfragemnt = MyFragement.this; }
DonManfred Expert Licensed User Longtime User May 2, 2016 #3 As of now i did not get any library-wrp working which was based on a Fragment. And i tried A LOT. I dont know, sorry.
As of now i did not get any library-wrp working which was based on a Fragment. And i tried A LOT. I dont know, sorry.
Erel B4X founder Staff member Licensed User Longtime User May 2, 2016 #4 It is possible but not simple. You can see an example here: https://www.b4x.com/android/forum/threads/how-to-work-with-dialogfragments.52117/#post-326325
It is possible but not simple. You can see an example here: https://www.b4x.com/android/forum/threads/how-to-work-with-dialogfragments.52117/#post-326325
Ohanian Active Member Licensed User Longtime User May 2, 2016 #5 In this library https://github.com/alirezaafkar/SunDatePicker/tree/master/sundatepicker We have many classes Main Class is the DatePicker class It extends a Fragment I had tried on ViewWrapper But it didn't result Also I saw the MapFragment you said ; it doesn't result so. How should we do with something like this? I mean inner initialize and extends statements again.
In this library https://github.com/alirezaafkar/SunDatePicker/tree/master/sundatepicker We have many classes Main Class is the DatePicker class It extends a Fragment I had tried on ViewWrapper But it didn't result Also I saw the MapFragment you said ; it doesn't result so. How should we do with something like this? I mean inner initialize and extends statements again.
Erel B4X founder Staff member Licensed User Longtime User May 2, 2016 #6 A DialogFragment is not a View. You cannot treat it as a View.
Ohanian Active Member Licensed User Longtime User May 2, 2016 #7 So according to your post , it's not a view how should we treat it in order to wrapping and extending?
So according to your post , it's not a view how should we treat it in order to wrapping and extending?