Dear Developers,
We faced with following small problem - SetPosition doesn't work with frame layout option! We need to place small logo in the lower right corner of display but it doesn't work.
Could you tell us pls what are we doing wrong?
E.g.
function OnStart() {
start_lay = app.CreateLayout("Linear", "VCenter,FillXY");
// Frame layout to hold layered images
layFrm = app.CreateLayout("Frame");
uix = app.CreateUIExtras();
var theme = app.CreateTheme("Light");
app.SetTheme( theme );
// Create an image control using the uploaded image asset.
img = app.CreateImage("Img/first_page_2.jpg", 1, 1); // Adjust width and aspect ratio as needed
img.SetOnTouchUp( lay_OnTouch );
layFrm.AddChild(img); // Add the image to the layout
img_69logo = app.CreateImage("Img/gss69_logo.png", 0.2, 0.1);
img_69logo.SetPosition(0.4, 0.9); // Position relative to screen
layFrm.AddChild(img_69logo);
var txt = app.CreateText( "Нажмите на экран...", 0.7, -1, "bottom" );
txt.SetTextSize( 22 );
layFrm.AddChild(txt);
start_lay.AddChild(layFrm);
// Add the layout to the application.
app.AddLayout(start_lay);
}
Thank you very much in advance.
Best regards
Dmitry