view

  1. MitchBu

    Android Question Rotate a view, relative to ?

    I am trying to apply this method advised by Erel, to rotate a view: Dim x As B4XView = YourView x.Rotation = 45 'or x.SetRotationAnimated(1000, 45) To understand what was the center of the rotation, I checked the view Left and Top before and after the rotation, but they are unchanged. What...
  2. Sagenut

    Android Question Add CustomView by code Multiple times

    This question refer to this discussion: https://www.b4x.com/android/forum/threads/customlistview-creation-with-code-not-with-designer.117247/ In the linked discussion has been given the solution how to add a CustomView by code: making a dedicated layout with the CustomView and loading the...
  3. M

    iOS Question ScrollView content goes OUT of Scrollview

    hi everyone, i was using the scrollview but i don't know why if i load a layout in the scrollview, when i scroll it goes out of the scrollview D: scrlInfo.Panel.LoadLayout("info_layout") scrlInfo.SetShadow(Colors.Black, 0, 0, 0.2, False) scrlInfo.Visible = False scrlInfo.ContentHeight =...
  4. Star-Dust

    FilterView

    To kill time (coronavirus takes care of it for us) and to distract myself from the situation I thought of creating a new CustomView. Different give the possibility to insert different search keywords, for example when inserting TAGs in B4X threads. I wanted to do it for B4X and I started...
  5. M

    iOS Question CustomListView loaded layout can't be modified by code

    Hi everyone, i'm trying to adapt an example of a chat layout (android reference by @Douglas Farias) I want to change the property (width, height, position) of a panel in a customlistview (loaded with loadlayout). If I go step by step with the Debugger it seems to work, but as soon as it go on...
  6. Mashiane

    B4J Library [BANanoPDFView] JQuery In-Browser PDF Viewer

    Ola Well, this basically does what it says. It uses the built-in PDF viewer to view your PDF files. Just pass it the URL of the pdf file and the width and height of the HTML element you want to render to and whalla! Ive tested it on Edge, Firefox, Opera, Chrome FireFox Chrome Edge...
  7. ALBRECHT

    Android Question Designer Copy and Paste Views

    Hello, Sometimes when i copy and paste some view into a new panel i have noticed that the field Type is empty. That apparently provide no pbs with the app. with B4A (i still dont try the transfer on B4I) Please could you confirme that to me ? Regards Michel
  8. Star-Dust

    B4J Library [B4X] [XUI] SD ElasticTrimmer

    SD_ElasticTrimmer Author: Star-Dust Version: 0.01 ElasticTrimmer Events: Change (Value As Int) Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase Initialize (Callback As Object, EventName As String) Invalidate RemoveViewFromParent...
  9. M

    Android Question Make not visible Place Autocomplete View

    Hi, everyone, im trying to use the Place Autocomplete View from Erel. I have the necessity to hide (or show) the view as i want by code, but the command: PlaceAutocompleteView.Visible = False doesn't exist... how can i solve this?
  10. M

    B4A Class Draggable View [Edited - Swipe Gesture]

    Hi everyone, this class is an edit of this class from Erel: https://www.b4x.com/android/forum/threads/classes-are-soon-coming.18395/ I've done some changes to achieve an animated "Swipe gesture (left to right)" If you swipe all the way right to the trigger point, you can trigger an event...
  11. MarkusR

    Android Question add CustomView to Activity at runtime?

    hello, how can i add a custom view (it have the name ViewConsumer) to activity at runtime? Activity.AddView(View1 Consumer is a class with data. #Region Activity Attributes #FullScreen: False #IncludeTitle: True #End Region Sub Process_Globals 'These global variables will be...
  12. Star-Dust

    B4J Library SD: XUI_Design

    Goodmorning everyone, We have often discussed in this forum in different threads about the need to be able to insert XUI from design. We all know that the direction that is suggested by AnyWhere software is to create in the design the native views and then replace B4XView to the type...
  13. Alexander Stolte

    B4J Library [B4X] [XUI] AS Sliding Circles (Loadingview)

    Hey this is a little and simple Loading View, i was a little bit bored :D Have Fun
  14. P

    Android Question Incorrect layout view when changing screen orientation

    Hello experts! I use this string android:configChanges="orientation|screenSize" in the manifest to save data when I change the orientation of the screen. OK, the information is saved, but the layout view does not adapt to the new orientation, i.e. for example, the portrait view doesn't change to...
  15. C

    Android Question Returning from a Wait For function and getting BadTokenException error

    I am creating a form and then calling a function and getting the system to wait. I'm calling from the form and not a service like this: wait for (GlobalFunctions.ParseCycleCount(lJson,lSAPData)) Complete (Result As Boolean) If Result=True Then btnOK.enabled=True...
  16. rleiman

    Android Question [SOLVED] Views not scaling properly on LG K10 (2017).

    Hi Everyone, One of my customers sent me the attached screen shots showing my app views not scaling properly. His phone is the LG K10 (2017) model. I tested the app on several phones we own which are mostly Samsung. It scales well on the Samsung J7, S6, S7 Edge and S8. Can you tell me what I...
  17. Sandman

    iOS Question [SOLVED] What to cast views to, to get tag? (View class hierarchy)

    In B4A, it's possible to cast (almost) all views as a Label to get the tag, for instance. Doing so in B4I causes a crash. Can I cast iOS views to something else to easily get some common properties, such as the tag?
  18. A

    Android Question Delete view without using designer

    Hello, Recently I asked how to create imageview(for example) without using the designer.(https://www.b4x.com/android/forum/threads/problem-creating-imageview.97448/) Does anybode know how to delete view(for example imageview) also without using the designer? Thanks in advance.
  19. K

    Android Question custom view parent click

    Hii experts, My custom view Label class is working fine. I add custom view label object in custom list view by add row function. But customlistview_itemclick event is not running when I click on custom view. Here is my code of custom cllick event Private Sub mBase_Click Log(mCallBack)...
  20. K

    Android Question Panel Custom View

    I create panel custom view, but none object added in it. my panel custom view code : Public Sub DesignerCreateView (Base As Panel, Lbl As Label, Props As Map) mBase.Initialize("mBase") mBase = Base Base.AddView(mBase,0,0,Base.Width,Base.Height) Log(Props.Get("Elevation"))...
Top