Slide Transitions in your Delphi iOS Applications

By: Tim DelChiaro

Abstract: Blog post from Sarina DuPont

 This is a repost of a blog post from Sarina DuPont, Product Manager for RAD Studio. Click the blog post title below to see the original post, comments, and additional posts from Sarina.

  Slide transitions in your iOS applications

Many mobile applications today include transitions. On iOS, the slide transition is very common. If you are an iOS user, you are likely using the mail app on your device. The iOS mail application is a good example of a slide transition. Whenever the user clicks on an email in their inbox, a slide transition is invoked and the new screen with the selected email slides in.

With Delphi for iOS, you can easily enable the same slide transition in your listbox. And all it takes is a couple of lines of code.

For this sample, I connected my listbox to sample data from the PrototypeBindSource component using the LiveBindings Designer. I am also using the ActionList component with the new tab action to define my slide transition.

I assigned ChangeTabAction to my back button.

For the listbox, I used the following two lines of code to invoke the slide transition whenever a user clicks on an item in my list.

procedure TPhoneMasterDetail.ListBox1ItemClick(const Sender: TCustomListBox;
const Item: TListBoxItem);
begin
ChangeTabAction1.Tab := TabItem2;
ChangeTabAction1.ExecuteTarget(self);
end;

Learn more about Delphi for iOS by visiting http://embt.co/RADStudioiOS

Sincerely,

Sarina

Posted by sarinadupont on March 4th, 2013 under DelphiFireMonkeyednfrontiOS | 


Server Response from: ETNASC01