{"id":10261,"date":"2020-09-04T13:01:54","date_gmt":"2020-09-04T04:01:54","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=10261"},"modified":"2020-09-29T10:25:47","modified_gmt":"2020-09-29T01:25:47","slug":"viewpropertyanimator%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ea%b0%9c%eb%b3%84-%eb%b7%b0view-%eb%8b%a8%ec%9c%84-%ec%95%a0%eb%8b%88%eb%a9%94%ec%9d%b4%ec%85%98","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=10261","title":{"rendered":"ViewPropertyAnimator\ub97c \uc774\uc6a9\ud55c \uac1c\ubcc4 \ubdf0(View) \ub2e8\uc704 \uc560\ub2c8\uba54\uc774\uc158"},"content":{"rendered":"<p>\uc548\ub4dc\ub85c\uc774\ub4dc\uc5d0\uc11c \ud558\ub098\uc758 \ubdf0\uc5d0 \ub300\ud55c \ud2b9\uc815 \uc18d\uc131\uac12\uc744 \uc560\ub2c8\uba54\uc774\uc158\ud654\ud558\uae30 \uc704\ud55c API\uc778 ViewPropertyAnimator\uc5d0 \ub300\ud55c \ub0b4\uc6a9\uc785\ub2c8\ub2e4. \uba3c\uc800 \uc544\ub798\uc640 \uac19\uc740 \ub808\uc774\uc544\uc6c3\uc5d0 \uc560\ub2c8\uba54\uc774\uc158\uc744 \uc704\ud55c \ubc84\ud2bc \ubdf0\ub97c \ud558\ub098 \ubc30\uce58\ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\">\r\n&lt;?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n&lt;ScrollView xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:orientation=\"vertical\"\r\n    android:scrollbars=\"none\">\r\n\r\n    &lt;Button\r\n        android:id=\"@+id\/myView\"\r\n        android:layout_width=\"80dp\"\r\n        android:layout_height=\"80dp\"\r\n        android:layout_marginTop=\"8dp\"\r\n        android:layout_marginBottom=\"8dp\"\r\n        android:text=\"Hello\" \/>\r\n\r\n&lt;\/ScrollView>\r\n<\/pre>\n<p>\uc774\uc81c \ubc84\ud2bc\uc744 \ud130\uce58\ud560\ub54c \uc560\ub2c8\ub9e4\uc774\uc158\uc774 \uc2dc\uc791\ub420 \uc218 \uc788\ub3c4\ub85d \ub2e4\uc74c \ucf54\ub4dc\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"kotlin\">\r\nmyView.setOnClickListener {\r\n    myView\r\n        .animate()\r\n        .scaleX(5.0f)\r\n        .scaleY(5.0f)\r\n        .alpha(0.0f)\r\n        .translationX(400.0f)\r\n        .translationY(400.0f)\r\n        .rotation(360.0f)\r\n        .setDuration(1000)\r\n        .withStartAction {\r\n            Toast.makeText(this, \"\uc560\ub2c8\uba54\uc774\uc158 \uc2dc\uc791\", Toast.LENGTH_SHORT).show()\r\n        }\r\n        .withEndAction {\r\n            myView.scaleX = 1.0f;\r\n            myView.scaleY = 1.0f;\r\n            myView.alpha = 1.0f;\r\n            myView.x = 0.0f;\r\n            myView.y = 0.0f;\r\n            myView.rotation = 0.0f;\r\n            Toast.makeText(this, \"\uc644\ub8cc\", Toast.LENGTH_SHORT).show()\r\n        }.start()\r\n}\r\n<\/pre>\n<p>\ucc38\uace0\ub85c \uc5b8\uc5b4\ub294 \ucf54\ub4e4\ub9b0\uc785\ub2c8\ub2e4. 1\ucd08\uac04 \ubdf0\uc758 \ud06c\uae30\ub97c 5\ubc30\ub85c, \uc810\uc810 \ud22c\uba85\ud558\uac8c, X\uc640 Y\uc758 \uc704\uce58\ub97c \uac01\uac01 400\uacfc 400\uc73c\ub85c, z\ucd95\uc73c\ub85c 360\ud68c\uc804 \ud558\ub3c4\ub85d \ud558\ub294\uc560\ub2c8\uba54\uc774\uc158\uc785\ub2c8\ub2e4. \uadf8 \uacb0\uacfc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p><center><video width=\"700px\" controls style=\"outline:none\"><source src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2020\/09\/viewpropertyanimator.mp4\">\ube44\ub514\uc624\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\ub294 \uc6f9\ube0c\ub77c\uc6b0\uc838\uc785\ub2c8\ub2e4.<\/video><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub4dc\ub85c\uc774\ub4dc\uc5d0\uc11c \ud558\ub098\uc758 \ubdf0\uc5d0 \ub300\ud55c \ud2b9\uc815 \uc18d\uc131\uac12\uc744 \uc560\ub2c8\uba54\uc774\uc158\ud654\ud558\uae30 \uc704\ud55c API\uc778 ViewPropertyAnimator\uc5d0 \ub300\ud55c \ub0b4\uc6a9\uc785\ub2c8\ub2e4. \uba3c\uc800 \uc544\ub798\uc640 \uac19\uc740 \ub808\uc774\uc544\uc6c3\uc5d0 \uc560\ub2c8\uba54\uc774\uc158\uc744 \uc704\ud55c \ubc84\ud2bc \ubdf0\ub97c \ud558\ub098 \ubc30\uce58\ud569\ub2c8\ub2e4. &lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?> &lt;ScrollView xmlns:android=&#8221;http:\/\/schemas.android.com\/apk\/res\/android&#8221; android:layout_width=&#8221;match_parent&#8221; android:layout_height=&#8221;match_parent&#8221; android:orientation=&#8221;vertical&#8221; android:scrollbars=&#8221;none&#8221;> &lt;Button android:id=&#8221;@+id\/myView&#8221; android:layout_width=&#8221;80dp&#8221; android:layout_height=&#8221;80dp&#8221; android:layout_marginTop=&#8221;8dp&#8221; android:layout_marginBottom=&#8221;8dp&#8221; android:text=&#8221;Hello&#8221; \/> &lt;\/ScrollView> \uc774\uc81c \ubc84\ud2bc\uc744 \ud130\uce58\ud560\ub54c \uc560\ub2c8\ub9e4\uc774\uc158\uc774 \uc2dc\uc791\ub420 \uc218 \uc788\ub3c4\ub85d \ub2e4\uc74c \ucf54\ub4dc\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4. myView.setOnClickListener { myView .animate() .scaleX(5.0f) &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=10261\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;ViewPropertyAnimator\ub97c \uc774\uc6a9\ud55c \uac1c\ubcc4 \ubdf0(View) \ub2e8\uc704 \uc560\ub2c8\uba54\uc774\uc158&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-10261","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10261"}],"version-history":[{"count":4,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10261\/revisions"}],"predecessor-version":[{"id":10264,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10261\/revisions\/10264"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10261"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}