Android Question Scale whole Activity

ilan

Expert
Licensed User
Longtime User


great it is working, is it also possible to move it arround? when i tried in Activity_Touch to set the activity left/top to x/y
i get this error:

 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
I think i will put it in a panel and then scale the panel and change his position.

Sounds simpler

this is sure

As you know, you can use Erel's code to scale a panel, not only Activities:
B4X:
Sub ScalePanel(pnl As Panel, factor As Float)
   Dim jo As JavaObject = pnl
   jo.RunMethod("setScaleX", Array(factor))
   jo.RunMethod("setScaleY", Array(factor))
End Sub
 
Upvote 0

ilan

Expert
Licensed User
Longtime User

this is what i said {}
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…