1. Dave O

    Android Code Snippet screen orientation - constant values

    Just finishing reading some threads about setting screen orientation, and noticed that some threads were just using numeric values, and others were using constants with the wrong numeric values (e.g. sensorPortrait is 7, not 9). So I looked up the Android dev docs and compiled this list of...
  2. LucaMs

    Android Code Snippet [B4X] Rotate Bitmap

    Author: Erel Sub RotateBitmap (bmp As B4XBitmap, Degrees As Float) As B4XBitmap Dim cvs As B4XCanvas Dim panel As B4XView = xui.CreatePanel("") panel.SetLayoutAnimated(0, 0, 0, bmp.Width, bmp.Height) cvs.Initialize(panel) cvs.DrawBitmapRotated(bmp, cvs.TargetRect, Degrees)...
  3. 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...
  4. DALB

    Android Question Camera preview of cameraKit Library rotated at 90°

    Hello everyone, I use cameraKit library, but my camera preview presents a view (in the panel) which is 90° rotated regarding to the object I wish to take. I didn't find a propertiy which permits me to change this angle to 0°. Did I miss something or How can I do ? Thanks much for giving me a way.

    Android Question Simple loader Gif Animation with rotate image

    Hello, I have a simple script to animate a loader image during a wait for poststring class. It's works great but between each loop of the rotation there is a few waiting second ? like that : the code : Dim POStr As POSTstr Dim imgload As Animation...
  6. Star-Dust

    [XUI] 3D, rotations and pivots

    So far I've used the native Android commands to rotate the views according to the X, Y, and Z axes. The native commands let you change the X and Y coordinates of the Pivot point and get this. But to get a rotating cube it is not enough to be able to rotate on three axes but you have to be...