Extension: Drag Layout. Rotate. Set position. Drag Component

Hello it seems nice but can you add a pinch to zoom any view like if we want to zoom on horizontal arrangement

this will help in any video zoom in and out

Try this:

Works just fine :wink:

With the APK?

Not yet....was going to say only testing in companion...

mmmm..nasty, doesn't even want to open when compiled ?

1 Like

It crashes also on Niotron and older AI2Offline versions with the APK.
I think @Juan_Antonio might know the cause.

@Anke, @TIMAI2, can you try the updated version in APK, please?

http://kio4.com/appinventor/294L_extension_mover_layout.htm

2 Likes

:+1: works fine!
Where was the problem?

1 Like

APK also tested working fine here too :+1:

In the code I had set it to only work in emulation.

3 Likes

2.- Example. Move keyboard.

MoveKeyboard.aia (11.9 KB)

  • When you drag the orange area, the keyboard moves.
  • VerticalArrangement1 is hidden in the Design.

K: Show keyboard.
H: Hide keyboard.
D: Delete number
Arrow: Delete last char.

3.- Example. A button rotates continuously.

Button_Rotate.aia (11.3 KB)

  • Button1 rotates continuously.
  • When TouchDown, the value of Label1 is increased

2 Likes

4.- Example. An image randomly changes its position every 4 seconds.

p194L_MoveRandom_i.aia (1.2 MB)

  • The strawberry image randomly changes its position every 4 seconds.
    You must click on it.

Note: this is just a teaching example, you can create the same effect using Canvas.

1 Like

5.- Example. Create Buttons and Label in Canvas.

p194L_MoveCanvas.aia (12.2 KB)

  • In Designer we put two Buttons and a Label below the Canvas.
  • When the screen is initialized those elements will be placed in the established place within the Canvas.

2 Likes

6.- Example. Move 7 buttons. Save their positions in TinyDB. Experimental.

p194L_MoverControles.aia (208.2 KB)

  • Click "Move", you manually move the 7 buttons, the positions will be stored in a TinyDB.

  • "No move", locks button movement.

  • Restart Companion.

  • Now Click in "From TinyDB", the positions stored in the TinyDB will be recovered.

cons:

  • when "No move", the image buttons lose their feedback. It is necessary to press twice to activate them again.

2 Likes

6B.- Example. The same app from the previous example but simplified using Any Component.

p194LS_MoverControles.aia (206.7 KB)

2 Likes

you can add the option to rotate the video because when I rotate the component the video does not rotate I want to rotate the component and the video rotate with it if you do want to charge I pay for this option I'm using exoplay

7.- Rotate video with WebViewer component.

With this extension we cannot rotate the content of a VideoPlayer component. A new code would be necessary.
Rotation of a video can be achieved using the WebViewer component.

p194Li_mover_layout_video.aia (2.5 MB)

extension_mover11

Video from: https://filesamples.com/formats/3gp