Is Activity.Left read-only

Mike Henry

Member
Licensed User
Longtime User
Is Activity.Left read-only?

When I try to set it, the program aborts.

If it is read-only, then how can I move the app window on the screen?
 

JonPM

Well-Known Member
Licensed User
Longtime User
Yes, read only. What exactly do you mean by move app window on the screen? The activity pertains to the whole screen. Are you trying to position a layout file (.bal)? If so, you can load the layout file on a panel and move the panel around.

BTW, I'm in Lakewood :)
 
Upvote 0

Mike Henry

Member
Licensed User
Longtime User
I'm using android:theme="@android:style/Theme.Panel" in the manifest so the app is a window on a big laptop. But that does no good if the app hogs the whole screen anyway.
 
Upvote 0

Mike Henry

Member
Licensed User
Longtime User
The Theme_Dialog doesn't work either.
However, the Activity.SetLayout function should work, but it also aborts.

Will the Activity.SetLayout function work inside the Sub Activity_Touch function? Or would it fire some sort of recursion error?
 
Upvote 0

Mike Henry

Member
Licensed User
Longtime User
I'll try the transparent panel. It's not Plan A, but it's not a deal breaker either.
But I don't get the SetLayout function. It looks like its purpose is to set the size and placement of the activity, but that doesn't seem to work. And the Android API has class members to set the height and width of the application, but not the left or top placement. So I'm not sure what SetLayout is trying to do.
 
Upvote 0
Top