Skip to content

Commit

Permalink
Merge pull request #7445 from sriks/TIMOB-19580
Browse files Browse the repository at this point in the history
[TIMOB-19580] Customize Activity Transitions  - cosmetic documentatio…
  • Loading branch information
ashcoding committed Nov 16, 2015
2 parents d27373a + 9924e40 commit ff13c13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apidoc/Titanium/UI/Window.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1395,13 +1395,14 @@ description: |
the same scene. This seamless animation is called shared element transition and can be achieved by the following steps.
Say window A is opening window B.
1. Specify a unique `transitionName` to the common UI elements between the two windows.
2. Use `addSharedElement` method on window B passing the window A common UI element and the transition name. This tells the system
Firstly, specify a unique `transitionName` to the common UI elements between the two windows.
Next use `addSharedElement` method on window B passing the window A common UI element and the transition name. This tells the system
which views are shared between windows and performs the transition between them. Note that we specify the UI elements of window A
since the system needs the source element and connects the destination element from the shared transition name once window B is created
and shown.
For example to transition a title label in window A to a title label in window B.
// Create label in window A with a unique transitionName.
var titleInWinA = new Ti.UI.createLabel({
text:'Top 10 pics from Mars!',
Expand All @@ -1410,8 +1411,7 @@ description: |
transitionName: 'title'
});
windowA.add(titleInWinA);
...
// Creating label in window B, note that the same transitionName is used.
var titleInWinB = new Ti.UI.createLabel({
text:'Top 10 pics from Mars!',
Expand Down

0 comments on commit ff13c13

Please sign in to comment.