èªåã¡ã¢ã
UIã«åç´ãªã¢ãã¡ã¼ã·ã§ã³ã¨ãã§ã¯ããä»ããã ãã§ããã°android.view.animationããã±ã¼ã¸ãããã®æ©è½ã使ãã°ãããAndroidアプリで“アニメーション”するための基礎知識ããããåèã
ããªãã¯ããã³ãã¤ã³ï¼ã¢ã¦ãã§ã®ãºã¼ã ã¤ã³ï¼ã¢ã¦ããªã©ãæ»ããã«ã¢ãã¡ã¼ã·ã§ã³ããããã¨ãããªãç¬èªå®è£ ããã®è¾ºãã©ãå®è£ ãããã¨ãã話ã«ãªãã¨æè¿ã®UIããã°ã©ãã³ã°äºæ ãéã¿ã¦ãã¨ãã£ããã¨ã«ãªãããããªããã
2007å¹´ã«Flex/AIR, Silverlight, JavaFXã®3ã¤ã®RIAã®åºç¤ãç»å ´ãããå½æã¯ããããã®UIã¯RIAã ãã¼ï¼ã¿ããã«çãä¸ãã£ã¦ãããã©ã2011å¹´ç¾å¨ã®æ触ããããã¨ãªããã¤ãã¤ãä¸çºãªæ°ããããã¹ããã¨ãã注ç®ããã¦å½±ã«é ãã¦ããã®ããAJAXãæ³å®ä»¥ä¸ã«é å¼µã£ã¡ãã£ã¦RIAã®æµããå¼±ã¾ã£ã¡ãã£ãã®ãã
ãããªRIAã ãã©ããUIããã°ã©ãã³ã°ã¨ãã¦ã¯é²åãã¿ããã¦ã
- ãã¶ã¤ã³é¨åã®è¨è¿°ã«å®£è¨çãªè¨æ³ãæ¡ç¨ãããã¶ã¤ã³ã¨ããã°ã©ã ãåé¢ãã
- ã¢ãã¡ã¼ã·ã§ã³ã¸ã®å¯¾å¿
ã¨ãã£ãã¨ãããç¹å¾´çããªãã90年代ã®Windowsããã°ã©ãã³ã°ãCè¨èªã§ããªãã¸ã§ã¯ãæåã¨ããæ¦å¨ã使ããªãã£ãæ代ããããã¨ãè¨èªããªãã¸ã§ã¯ãæåãåæã¨ããè¨èªã«ãªã£ã¦ããããããããããªã£ãã¨ããã®ã¯ããã
ããããè¿å¹´ã§ã¯UIã«ã¢ãã¡ã¼ã·ã§ã³ã«ããè£ é£¾ã¨ããæ±ãããã¯ããã¦ãããã°ã©ãã³ã°æè¡çã«è¦æ±ã¬ãã«ãããé«ããªã£ãæããããã¨ãããã2000å¹´åå¾ã®HTMLã§ã®UIããã°ã©ãã³ã°ããã¨ããããã¨ããæ°ããããã
ã§ãã¢ãã¡ã¼ã·ã§ã³ã®é¨åã®è¨è¨æ¹éã®è©±ãåºæ¬çã«Windowsã®UIããã°ã©ãã³ã°ãªã©ã¯ã¤ãã³ãé§åæ¹å¼ãªã®ã§ã¤ãã³ãã«ã¼ããä½ã£ã¦å¾ ã¡ã®å§¿å¢ã§å¦çããããã§ãã¢ãã¡ã¼ã·ã§ã³ãããå ´åã¯å®æã§ã¤ãã³ããçºçãããããã«ãã¦å¦çãããã¨ããæãã«ãªã£ã¦ããã
Javaã®å ´åãã¢ãã¡ã¼ã·ã§ã³ã¨ããããã¨ãã¦Threadãä½ã£ã¦å®æçã«å¼ã³åºããããè¨è¨ã«ãã¡ãã人ãç¶åºãã¦ãã«ãã¹ã¬ããããã°ã©ãã³ã°ã®è½ã¨ãç©´ã«å¤§éã«åµãã¨ããæãã ã£ããJavaã®Swingã®ã©ã¤ãã©ãªã¯UIé¢é£ã®å¦çã¤ãã³ãã¯ãã¥ã¼ã«ãããããã·ã³ã°ã«ã¹ã¬ããã§é 次å¦çãããã¢ãã«ãã¨ã£ã¦ããã®ã ãã©ããã®EDT(ã¤ãã³ããã£ã¹ãããã¹ã¬ãã)ã®æ±ãæ¹ãç解ãã¦ãã人ã¯ç¸å¤ãããå°ãªããè¿å¹´ã¯è¯æ¸ãã§ã¦ãããããã·ã«ã¯ãªã£ããã©ãä¸æãªã¨ããã«UIä½ãããã¨ã²ã©ãäºã«ãªãã
çµå±ãã¢ãã¡ã¼ã·ã§ã³ããããå ´åã¯ãã²ã¼ã ããã°ã©ãã³ã°ã§ä½¿ããã¦ããããã«å®æçã«(ã²ã¼ã ã®å ´åã¯ä¸»ã«1/60ç§ã ãããã¯ã¢ãã¿ã®ãªãã¬ãã·ã¥ã¬ã¼ãã«ä¾ãããã以ä¸ã®é度ã§çµµãä½ã£ã¦ãã¢ãã¿ã«ã¯æç»ãããªãããæå³ãç¡ã)æç»ãã¬ã¼ã ãæãæ¹éãä½ãæããWindowsã§ã®UIããã°ã©ãã³ã°ã¨ãã§ã²ã¼ã ãªã©ãä½ãå ´åãçµå±ãããç¬èªã«ã¿ãªãå®è£ ãã¦ãã£ã¦ããã ã
Adobeã®Flex/AIRã®å ´åã¯Flashããã®æµãããã¢ãã¡ã¼ã·ã§ã³ãã¬ã¼ã ã管çãããã¬ã¼ã ã¯ã¼ã¯ã¨ãªã£ã¦ãã¦ããã¯ãã¢ãã¡ã¼ã·ã§ã³ãããããªãã²ã¼ã ããã°ã©ãã³ã°ã§åºãåããã¦ããææ³ãç¡é£ã§ãããã¨ã伺ããã
åºå®ãã¬ã¼ã ã¨å¯å¤ãã¬ã¼ã
ã¢ãã¡ã¼ã·ã§ã³ããããå ´åã«ããã®æç»ãã¬ã¼ã ã¯æéãåºå®ã¨ããã¹ãããå¯å¤ã¨ããã¹ããã
å¤å ¸åå¦ã§èãããªããæç»å¯¾è±¡ãªãã¸ã§ã¯ããé ç½®ãããããæªæ¥ã®ç¶æ ã¯æ±ºå®ãã¦ãããã ããæéãå¼æ°ã«ä¸ããããã®ç¶æ ãã¨ããããã«ããã°ã©ã ãããããæç»ããã°ãããããªãããã¨ããèããæã£ã¦ãã¾ãããã®ã¢ã¤ãã¢ã¯ä¸è¬ã«ãã¾ããããªãã
ã¦ã¼ã¶ã®å ¥åç³»ã«ããå¤é¨æ¹ä¹±ãããããã§ãæªæ¥ã¯æ±ºå®çã§ã¯ãªãã¨ãããã¨ãããã¨ããããè¡çªå¤å®ã«ãã£ã¦ãã¦ã³ãããã¨ãççºããã¨ãããããä»æããå ¥ãããå ´åãå¯å¤æéã§ããã¨ããªã大å¤ãªãã¨ã«ãªãã
1ãã¬ã¼ã ã®æéãåºå®ããã¨ããã®ã¯ã妥å½ãªææããã§ããã¨æããå¼å®³ã¨ãã¦ã¯ã²ã¼ã ã«ããããå¦çè½ã¡ãã®ãããªç¶æ ãçºçãã¦ãã¾ããã¨ããããã1ãã¬ã¼ã ã®æéãå¯å¤ã¨ããå ´åã®åå¦ã®è¨ç®ã®ãã¾ãã®è¤éåã¨å¤©ç§¤ã«ããããªãã°ãå¦çè½ã¡ããããããããªããã¨è¨ããããªãã
ããããããè¡çªå¤å®ããã£ããã«ãªãã¨ãããã¨ã ãéã«è¡çªã¨ãè¨ç®ããªããªãå¥ã«ããã»ã©åé¡ã¯ãªããçéç´ç·éåããããªããªãã¸ã§ã¯ããããªããªãåé¡ã¯ãªãã¨æããã
è¡çª
è¡çªã«ã¤ãã¦ã¯ããã ãã§å¤ãã®æ¸ç±ãåºããã¦ããããå±±ã®ãããªç 究è«æãã¿ã¤ãããã¨ã ãããçé¢ç®ã«è¡çªå¤å®ãããã¨é£ããã
åºå®ãã¬ã¼ã ã«ããã¨ããã§ãåãã®éããªãã¸ã§ã¯ãå士ãã¶ã¤ãããã«ããæããã¨ããç¾è±¡ãããçããããããæéã«æå°åä½ããã£ã¦ãããããç©ä½ã空éã®æå°åä½ã§ããåããªãã®ã§ããã°ããæãã¨ããã¾ãæ°ã«ããªãã¦ãããã ãã©ããããã§ãゼノンのパラドックスã®ã競æå ´ãã®ãããªç¶æ³ã§æå°åä½ã®ç©ä½å士ãããæããã¨ãã¯ãããããããããæå°åä½ã§ã¯ãªãå¦çãã¬ã¼ã ããã
ãã®ã¸ãã®ãé£ãããé¨åã«çã£åããåãæãã£ãã®ãããããç©çæ¼ç®ã¨ã³ã¸ã³ã¨å¼ã°ãã代ç©ã§ãããã£ãªãã®ã ã¨ãããã¨ã2次å ã§ç©å½¢(ããããå°éç¨èªã ãã¤ã¾ãã¨ããåè§å½¢ã®ãã¨ã ã)ã ããæ±ã£ãã¨ãã¦ããå転ããåä½ã®åè§å½¢ã®è¡çªã¨ãã®åããã·ãã¥ã¬ã¼ã·ã§ã³ãããã¨ãããæ³£ããªããæ°å¼ã¨éãã¯ãã«ãªãããã£ã¦ããã£ãã
ã¨ããããã§ãAndroidã¨ãã®ã¹ãã¼ããã©ã³ã®ã¢ããªã§ãæã§ã¹ã©ã¤ããããUIãä½ã£ãå ´åã«ã¡ãã£ã¨åå¦ãåç¾ããã£ã½ãæ触ã«ãããã¨ããã¨ãã¦ãã大çé¢ç®ã«ç©çæ¼ç®ã¨ã³ã¸ã³ãªããã«æãåºãã¨å¤§æããã«ãªããããã®ã§ãã©ãã§ãã¾ãææããã¦ããã£ã½ãè¦ãããã¨ãã話ã«ãªã£ã¦ã
ãããããã£ã¦ã¾ãã¾ã²ã¼ã ããã°ã©ãã³ã°ã ãªããã¨æãã«è³ãããã§ããã
ç¸äºä½ç¨ã®ãªããã¤ã¾ãè¡çªããªãå¹½éã®ãããªç©ä½ã§ããã°ãçéç´ç·éåãçå é度éåã表ç¾ããã®ã¯ããã¦é£ãããªããæ©æ¦ã®å¹ããç©ä½ã®éåãä¾ãããªãæºã®ä¸ã§ãã¯ãããæ»ããããããªããã¯ãããè¡çªããããã¨ããã¨æ¥ã«é£ãããªããåã¨åã®è¡çªãªãã¾ã é£æ度ã¯ä½ãã¨ã¯ãããã
ã ãããã¹ããã§ããç¨ãããã¦ãããèæ¯ãæã§ã¹ã©ã¤ãã¹ã¯ãã¼ã«ããUIã¨ããã®ã¯ãããã ãã§ã¯ããã¾ã§é£ãããªããä¸çªç«¯ã¾ã§ããããã¦ã³ãããããããã©ãã«ããªãã ãããç¸äºä½ç¨ãåã¼ããªãã¸ã§ã¯ãã2ã¤ã«å¢ããã¨ãããã¡ã ããã®ããããè½ã¨ãæã¨ãã¦ããã®ãããã¨æãã
ãªãã¸ã§ã¯ãã®åº§æ¨ã¨æéã®æ´æ°
ã²ã¼ã ããã°ã©ãã³ã°ã«ãããã¬ã¼ã ã£ã¦ã®ã¯ã漸åå¼ã®ãããªã¢ãã«ã¿ãã¦ããããä»ãã®ç¶æ ãããã¦ã¦ã¼ã¶ã®å ¥åããããã次ã®ãã¬ã¼ã ã®ç¶æ ãæ±ããã
ãã®ãç³»ãã«åå¨ãããªãã¸ã§ã¯ããããã°ã©ã ã®ã¯ã©ã¹ã¨ãã®ã¤ã³ã¹ã¿ã³ã¹ã§è¡¨ç¾ããã¨ãããããªãã¸ã§ã¯ãã¯åº§æ¨ãæã¤ãå é度ãæã¤ã¨ãããã座æ¨ã¨å é度ããã次ã®ãã¬ã¼ã ã®ç¶æ ã«æ¨ç§»ããããã°ã©ã ãããã®ã¯ã©ã¹ã®ã¡ã³ãé¢æ°ã¨ãã¦å®ç¾©ãã¦ããã ãããï¼
ãªãã¸ã§ã¯ãå士ãç¸äºä½ç¨ã®ãªããç³»ããªãããã¯ã¢ãªã ã¨æãã
ã¨ãããããªãã¸ã§ã¯ãå士ãç¸äºä½ç¨ãã¤ã¾ãè¡çªãããªã©ããå ´åããã®ã¡ã³ãé¢æ°ã®å é¨ã§ã¯ãç³»ãã®ãããããªãã¸ã§ã¯ãã¸ã®åç §ãè¡ããªãã¦ã¯ãªããªãããè¦ãããããç¶æ ãããªãã¨ãããªããªããã¨æãã
ã¨ããã°ããªãã¸ã§ã¯ãã¯ç¶æ ã ããæã£ã¦ãç¶æ ã®æ´æ°(ãã£ã¨ãç¶æ ãæ®éã«ãã¦ãç³»ããã次ã®ãã¬ã¼ã ã®ãç³»ããä½ãã»ããé¢æ°åè¨èªçã§ã»ã¼ããã£ãªè¨è¨ã ããã)ã¯ãç³»ããè¡ãã¨ããè¨è¨ã«ããã®ã妥å½ã ããã
â¦ã¨ããçµè«ã«ãããã¾ã§å¦ã«ããã£ã¦è¨è¨ããªãã©ãæ¸ããªãããããã¦ããã®ã§ãæªæ¥ã®åãåããã¨ãæ©ãã§æéãã ãã«ããªãããã«ãã®ã¡ã¢ãæ®ãã