Não vou dizer muita bobagem, vamos mostrar as renderizações:
Este é o efeito do iOS e é completamente consistente no Android. Através do componente DO_GestureView e do componente do_animação, o DeviceOne pode facilmente obter efeitos complexos de animação nativa de plataforma cruzada complexos. Este exemplo é para controlar o deslizamento de animação para cima e para baixo da imagem através de gestos para obter o efeito de abertura e fechamento e também suportar efeitos sonoros.
Abaixo está o código principal
//index.ui.jsvar do_animator1 = mm ("do_animator"); do_animator1.append (500, {y: -1334, curva: "linear"}); var do_animator2 = mm ("do_animator"); do_animator2. 0, curva: "linear"}); do_page.on ("nextpageMoveing", function () {currentView = json_define [currentIndex] .view; currentIndex ++; if (currentIndex> = json_define.length) currentIndex = 0; nextView = json_define [currentIndEx]. i = 0; i <json_define.length; ++ i) {if (json_define [i] .view! = currentView && json_define [i] .view! "NextPageMove");}); do_page.on ("nextpageMove", function () {nextview.fire ("initmoving", "nextpagemoved");}); do_page.on ("nextpagemoved", function () {currentview.y = 0; nextview.y = 1332; do_alayout_main.y = 0; do_alayout_main.redraw (); do_alayout_main.animate (do_animator1, function () {nextView.fire ("abertura"); {});}); do_page.on ("PrePagemoveing", funcionar (); {{); (CurrentIndex <0) currentIndex = json_define.length -1; nextView = json_define [currentIndex] .View; currentView.fire ("ClosingHead", "PrePageMove");}); do_Page.on ("PrepageMove, function () {NextView.Fire (" Initmoving "," "" " }); do_page.on ("PrePageMove", function () {for (var i = 0; i <json_define.length; ++ i) {if (json_define [i] .View! nextView) {json_define [i] .View.Visible = false;} else {JSON_DEFINE [i] .View.Visible = true;}} currentView.y = 1332; nextView.y = 0; do_alayout_main.y = -1334; do_Alayout_Main.Rain.RaNRaNC function () {nextView.fire ("abertura");});});