UIExtras help

52 views
Skip to first unread message

Manuel Lopes

unread,
Jan 11, 2016, 5:26:12 PM1/11/16
to DroidScript
i try the examples ;but i want ask is possible put all the screen(color;text;images load all before show? because the examples with for example with icons show later than the background color(sorry i know is a stupid ideia but i want know if possible show all) thanks

Steve Garman

unread,
Jan 11, 2016, 11:33:46 PM1/11/16
to DroidScript
They are just examples, Manuel.
The idea is to write your own code.

I assume what you want to do something like the code below. Sometimes it is quicker to try something than to ask a question.

app.LoadPlugin( "UIExtras" );

function OnStart() 

  uix = app.CreateUIExtras();
 
 layFam = app.CreateLayout( "Linear", "FillXY, Bottom, Right, TouchThrough" );
 fam = uix.CreateFAMenu( "[fa-envelope-o]", "Up,LabelsLeft" );
 fam.SetMargins( 0.02, 0.01, 0.02, 0.01 );
 fam.SetLabelBackColor( "#FFFFFF" );
 fam.SetLabelTextColor( "#646464" );
 fam.SetOnOpened( fam_OnOpened );
 fam.SetOnClosed( fam_OnClosed );
 layFam.AddChild( fam );
 
 fabReply = uix.CreateFAButton( "[fa-reply]", "Mini" );
 fabReply.SetButtonColors( "#db4437", "#c33d32" );
 fabReply.SetOnTouch( fab_OnMailReply );
 fabReply.SetLabel( "Reply" );
 fam.AddFAButton( fabReply );
 
 fabReplyAll = uix.CreateFAButton( "[fa-reply-all]", "Mini" );
 fabReplyAll.SetButtonColors( "#db4437", "#c33d32" );
 fabReplyAll.SetOnTouch( fab_OnMailReplyAll );
 fabReplyAll.SetLabel( "Reply All" );
 fam.AddFAButton( fabReplyAll );
 
 fabForward = uix.CreateFAButton( "[fa-share]", "Mini" );
 fabForward.SetButtonColors( "#fbbc05", "#efb306" );
 fabForward.SetOnTouch( fab_OnMailForward );
 fabForward.SetLabel( "Forward" );
 fam.AddFAButton( fabForward );

 lay = app.CreateLayout( "Linear", "FillXY" );
 lay.SetBackground( "/Sys/Img/GreenBack.png" );
 app.AddLayout( lay );
 
 app.AddLayout( layFam ); 
}
function fam_OnOpened()
{
 layFam.SetBackColor( "#99FFFFFF" );
}

function fam_OnClosed()
{
 layFam.SetBackColor( "#00FFFFFF" );
}

function fab_OnMailReply()
{
 app.ShowPopup( "Reply" );
}

function fab_OnMailReplyAll()
{
 app.ShowPopup( "Reply All" );
}

function fab_OnMailForward()
{
 app.ShowPopup( "Forward" );
}

Manuel Lopes

unread,
Jan 12, 2016, 3:30:37 PM1/12/16
to DroidScript
very thanks this is what i want
Reply all
Reply to author
Forward
0 new messages