B4J Tutorial [B4X] Custom Views with Enhanced Designer Support - Erel    Jul 04, 2019   (31 reactions) https://www.b4x.com/basic4android/images/SS-2016-01-14_16.16.18.png
Custom views are implemented as B4X classes or in a library.
A custom view includes a set of properties that can be set from the visual designer.
Note that the visual designer will show a box instead of the actual view.
Using cust B4J Library [B4X][CustomView] xInstrumentationStateIndicator - rwblinn    Dec 04, 2021   (8 reactions) is an open source B4X Library. The (Custom View) purpose is to display a device state or to set a device state via touch or mouse click. A device could be basically anything which can have a state true or false. 121680 See code example below. Features Define one or more indicators - one for each B4A Tutorial [B4X] How to get <custom view here> from <CLV or any other container> - Erel    Sep 10, 2020   (21 reactions) This is a common question and for a good reason.
Custom views classes are not views by themselves.
The views tree only holds views.
This means that this code cannot work:
Dim B4XFloatTextField1 As B4XFloatTextField = CLV.GetPanel(x).GetView(y)
The actual view that is added to the views tree, with B4A Question Native Input Dialogs Android (No B4XDialogs) - Cableguy (first post)    Dec 26, 2020 Just search for custom view dialog... A custom view is basically the mix of 2 or more views to achieve a "missing" behaviour in B4X... The one you are aiming can be achieve by creating a customviem and add a Label to display the warning and an inputTextView to enter the text and a couple of button Wish Custom Views File FieldType for DesignerProperties - Cableguy    Dec 19, 2020   (2 reactions) Hi @Erel
Picking up from this wish I further explain the possible usage and why it should have already be implemented...
A custom view is, most of the times, a mix of functionalities from several other views, like the some text input fields mixed up with buttons, or combo views...
In some more co B4A Question [B4X] BBListItem - BCTextEngine inside CLV (Help please) - William Lancee (first post)    Oct 21, 2023 Custom views are objects but not views. The view is stored in the tag of the base of the object. See: https://www.b4x.com/android/forum/threads/b4x-how-to-get-custom-view-here-from-clv-or-any-other-container.117992/ Other Custom View - Changing name of a key of Props. - LucaMs (first post)    Jun 29, 2022 It was the case just during the development of a new custom view (it was a question today in the Italian forum)
It is not very important; it was enough to explain the reason for the error received and how to fix it. B4i Code Snippet ZoomableView (custom view) - Semen Matusovskiy    Sep 14, 2021   (4 reactions) When I look a photo in a smartphone, enough often appears a wish to increase a image/text like in WebView.
So I did special custom view based on ScrollView.
Works in two regimes.
1) As zoomable Panel (if is set ContentView property)
2) As zoomable ImageView (if is set ContentImage property)
If you B4A Question Get Custom View - Erel (first post)    Aug 06, 2018   (1 reaction) This will not work. The custom view class is not a view by itself.
A simple way to solve it is by setting the Tag property of the base panel or in the case of AutoTextSizeLabel the Label (the base panel is removed) to the class instance in DesignerCreateView:
mLBL.Tag = Me
This allows you to get B4A Library [B4X] CLVItemToolbox - custom view. - AnandGupta (first post)    Mar 22, 2022   (1 reaction) Lucas, you have opened a door, which shows us path that complex views like this can be made, if you know the rules of the land (B4X).
This will greatly help begineers and experts alike to learn. Page: 1   2   3   4   5   6   7   Powered by ColBERT |