B4XView. SetLayoutAnimated (Duration As Int, Left As Int, Top As Int, Width As Int, Height As Int)Sets the view size and position.Duration - Animation duration in milliseconds. Pass 0 to make the change immediately. B4A Question B4XView - SetLayoutAnimated - Top position doesn't work - Roberto P.    Jan 15, 2020 Hi all,
why doesn't the top parameter of the SetLayoutPosition function work? even setting a in the top parameter the position always remains the same.
See example:
Sub btnCustom_Click
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 200dip, 1500dip, 300dip, 350dip)
p.LoadLayout("CustomDialog")
p.Top = 1350dip ' my test'... B4J Question B4XView - It's not SetLayoutAnimated's fault... so what? - LucaMs    Jan 11, 2021 Playing around... I had a routine that reduced (or increased, ie a zoom) the size of a B4XView...: final Width & Height of the B4XView are 10x10 but it looks rectangular.
105922
P.S.
ZoomTest... B4A Question Panel SetLayoutAnimated spring effect - Alessandro71    Aug 2, 2022 I'm using the B4XView SetLayoutAnimated to resize the height of a panel, which contains other views, with duration <> 0 looking for a curtain effect. What really happens is that the panel... and after the SetLayoutAnimated call the AnimationDuration of the parent activity is set to 0, so there is no animation when the Activity is first displayed How do I disable the spring effect?... B4XFloatTextField) shows a "spring" effect, first compressing and then expanding again while... B4A Tutorial [B4X] [XUI] CustomListView - lazy loading / virtualization - Erel    Nov 16, 2023   (37 reactions)   tags: customlist view card, CustomListView, Virtualiza, XCustomListView, xuiCLV, B4X .Content = content cd.BitmapFile = bitmaps.Get((i - 1) Mod bitmaps.Size) Dim p As B4XView = xui.CreatePanel("") p.SetLayoutAnimated(0, 0, 0, CLV1.AsView.Width, 280dip... - 1) Dim p As B4XView = CLV1.GetPanel(i) If p.NumberOfViews = 0 Then Dim cd... i = 0 To CLV1.Size - 1 Dim p As B4XView = CLV1.GetPanel(i) If i > FirstIndex....GetValue(Index) cd.Color = Color Dim p As B4XView = CLV1.GetPanel(Index) If p.NumberOfViews... B4A Question [Solved] B4XPages - Root is animated - LucaMs    Sep 24, 2020 I get an ugly effect when showing a B4XPages. I set the layout Animation duration to 0ms, but I think that the Root Pane(l) is animated. I tried: Private Sub B4XPage_Created (Root1 As B4XView) Root1.SetLayoutAnimated(0, Root1.Left, Root1.Top, Root1.Width, Root1.Height) Root = Root1 Root.LoadLayout("MainPage") End Sub but it does not work.... Other [new feature] b4xlib - a new type of library - Erel    Nov 2, 2020   (68 reactions)   tags: b4xlib;libraries, b4x library, Erel to create a zip file with these resources. The zip file extension should be b4xlib. That's all... are supported including activities and services. - Files, including layout files. - Optional... Italian B4XPages, B4XView. Cosa mi offrono rispetto alle Activity? - Sabotto    Sep 23, 2020 Buonasera a tutti. Dopo neanche un mesetto di apprendimento e prove con B4A (e due app create, a me utilissime, che mi evitano di accendere il Pc ogni volta che devo usarle, le avevo infatti create in VB.NET), sto cercando di approfondire questo bellissimo mondo. Le B4XPages e relative B4XView. Vorrei capire una cosa: il vantaggio principale maggiore di usare le 'pages' al posto delle 'Activity' è il "cross platform"?, uello che un'app creata per Android, puo... B4A Code Snippet [B4X] [XUI] Create a round image - Erel    Jan 21, 2021   (31 reactions)   tags: bitmap, XUI, B4a / 2 - l / 2, Input.Height / 2 - l / 2, l, l) End If Dim c As B4XCanvas Dim xview As B4XView = xui.CreatePanel("") xview.SetLayoutAnimated(0, 0, 0, Size, Size) c.Initialize(xview..., ImageView1.Width)) If you don't want to set the ImageView type to B4XView then you can do it locally: Dim xIV As B4XView = ImageView1 xIV.SetBitmap(CreateRoundBitmap(img, xIV .Width)) ... Return res End Sub Usage example: 'ImageView1 type is B4XView Dim img As B4XBitmap = xui... B4A Library [B4X] [XUI] B4XDialog - Custom dialogs - Erel    Dec 19, 2021   (21 reactions)   tags: B4X XUI B4X Dialog Custom, xui, myapp, Dialogs As B4XView = xui.CreatePanel("") p.SetLayoutAnimated(0, 0, 0, 300dip, 170dip) 'set...Edit: B4XDialogs is part of XUI Views library. Use that instead: XUI Views - Cross platform views and dialogs B4XDialog class helps with creating cross platform custom dialogs. The dialog is made... most cases it requires a bit more work as you also want to handle keyboard changes: 'B4A Sub..., NewHeight) End Sub 'B4i Sub Page1_KeyboardStateChanged (Height As Float) If Dialog.Visible Then... Italian In b4i al posto SetLayout cosa devo usare? - LucaMs (first post)    Mar 2, 2022 Non ho B4i ma direi di provare: edit_pass.As(B4XView).SetLayoutAnimated(...... Page: 1   2   3   4   5   6   7   |