D daemon Active Member Licensed User Longtime User Nov 13, 2014 #42 Oh! I wrote that too early... I see other attributes now but when trying to use any of them programatically, I get Object should first be initialized exception. I must be doing something wrong.
Oh! I wrote that too early... I see other attributes now but when trying to use any of them programatically, I get Object should first be initialized exception. I must be doing something wrong.
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2014 #43 It will be difficult to combine ViewWrapper with a custom view. There is a simpler option. You can expose the "base" view as a property and then the user will be able to access its properties: Code: Copy public ViewWrapper getView() { ViewWrapper vw = new ViewWrapper(); vw.Object = <base view>; return vw; } B4A: Code: Copy CustomView.View.Visible = False
It will be difficult to combine ViewWrapper with a custom view. There is a simpler option. You can expose the "base" view as a property and then the user will be able to access its properties: Code: Copy public ViewWrapper getView() { ViewWrapper vw = new ViewWrapper(); vw.Object = <base view>; return vw; } B4A: Code: Copy CustomView.View.Visible = False
D daemon Active Member Licensed User Longtime User Nov 14, 2014 #44 Using that code, Eclipse gives warning that ViewWrapper is a raw type. Even if I ignore that warning, B4A gives compilation error saying Unknown type android.view.ViewWrapper
Using that code, Eclipse gives warning that ViewWrapper is a raw type. Even if I ignore that warning, B4A gives compilation error saying Unknown type android.view.ViewWrapper
Informatix Expert Licensed User Longtime User Nov 14, 2014 #45 daemon said: Using that code, Eclipse gives warning that ViewWrapper is a raw type. Even if I ignore that warning, B4A gives compilation error saying Unknown type android.view.ViewWrapper Click to expand... You have to specify the wrapped view class, e.g.: ViewWrapper<TextView> If you do not want to specifiy the class (because it is not unique), use <?>.
daemon said: Using that code, Eclipse gives warning that ViewWrapper is a raw type. Even if I ignore that warning, B4A gives compilation error saying Unknown type android.view.ViewWrapper Click to expand... You have to specify the wrapped view class, e.g.: ViewWrapper<TextView> If you do not want to specifiy the class (because it is not unique), use <?>.