{"id":1018,"date":"2017-03-31T09:59:09","date_gmt":"2017-03-31T01:59:09","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=1018"},"modified":"2017-03-31T09:59:09","modified_gmt":"2017-03-31T01:59:09","slug":"android%e5%bc%80%e5%8f%91%e4%b9%8blayoutanimation%e7%9a%84%e5%9f%ba%e6%9c%ac%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/android\/2017\/03\/31\/0959091018.html","title":{"rendered":"Android\u5f00\u53d1\u4e4bLayoutAnimation\u7684\u57fa\u672c\u4f7f\u7528"},"content":{"rendered":"<p>1\u3001\u5148\u770b\u4e00\u5f20\u56fe<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.yusian.com\/blog\/wp-content\/uploads\/2017\/03\/device-2017-03-31-094833.png\" alt=\"\" width=\"360\" height=\"640\" class=\"alignnone size-full wp-image-1019\" \/><\/p>\n<p>2\u3001\u529f\u80fd\u8bf4\u660e<br \/>\n2.1.1\u3001Animation\u7684\u57fa\u672c\u4f7f\u7528\u53c2\u7167\uff1a<a href=\"http:\/\/www.yusian.com\/blog\/android\/2017\/03\/30\/172204.html\" target=\"_blank\">Android\u5f00\u53d1\u4e4bAnimation\u7684\u57fa\u672c\u4f7f\u7528<\/a>\uff1b<br \/>\n2.1.2\u3001ListView\u7684\u57fa\u672c\u4f7f\u7528\u53c2\u7167\uff1a<a href=\"http:\/\/www.yusian.com\/blog\/android\/2017\/03\/22\/143628.html\" target=\"_blank\">Android\u5f00\u53d1\u57fa\u7840\u63a7\u4ef6ListView\u7684\u4f7f\u7528<\/a><br \/>\n2.2\u3001ListView\u4e2d\u5404\u4e2a\u5355\u5143\u683c\u6309\u987a\u5e8f\u6267\u884c\u52a8\u753b\uff0c\u4f7f\u7528xml\u5b9e\u73b0\uff1b<br \/>\n2.3\u3001\u57fa\u672c\u5b9e\u73b0\u6b65\u9aa4\uff1a\u5148\u521b\u5efa\u4e00\u4e2aanimation&#8211;>\u521b\u5efa\u4e00\u4e2aanimation_layout&#8211;>\u7ed1\u5b9a\u5230listview\u4e0a\uff1b<br \/>\n2.4\u3001\u53c2\u8003\u4ee3\u7801<!--more--><br \/>\nlist_anim.xml<\/p>\n<pre line=\"1\" lang=\"java\"><?xml version=\"1.0\" encoding=\"utf-8\"?>\n<set xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n    android:duration=\"2000\">\n    <alpha\n        android:fromAlpha=\"0\"\n        android:toAlpha=\"1\" \/>\n<\/set><\/pre>\n<p>list_anim_layout.xml<\/p>\n<pre line=\"1\" lang=\"java\"><?xml version=\"1.0\" encoding=\"utf-8\"?>\n<layoutAnimation xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n    android:delay=\"0.5\"\n    android:animationOrder=\"normal\"\n    android:animation=\"@anim\/list_anim\" \/><\/pre>\n<p>activity_main.xml<\/p>\n<pre line=\"1\" lang=\"java\"><?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n    xmlns:tools=\"http:\/\/schemas.android.com\/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    tools:context=\"com.yusian.layoutanimation.MainActivity\">\n\n    <ListView\n        android:id=\"@+id\/lv_main\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_weight=\"1\"\n        android:layoutAnimation=\"@anim\/list_anim_layout\">\n\n    <\/ListView>\n    <Button\n        android:id=\"@+id\/btn_start_animation\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"55dp\"\n        android:text=\"\u5f00\u59cb\u52a8\u753b\"\/>\n\n<\/LinearLayout><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u5148\u770b\u4e00\u5f20\u56fe 2\u3001\u529f\u80fd\u8bf4\u660e 2.1.1\u3001Animation\u7684\u57fa\u672c\u4f7f\u7528\u53c2\u7167\uff1aAndroid\u5f00\u53d1\u4e4bAnimation\u7684\u57fa\u672c\u4f7f\u7528\uff1b 2.1.2\u3001ListView\u7684\u57fa\u672c\u4f7f\u7528\u53c2\u7167\uff1aAndroid\u5f00\u53d1\u57fa\u7840\u63a7\u4ef6ListView\u7684\u4f7f\u7528 2.2\u3001ListView\u4e2d\u5404\u4e2a\u5355\u5143\u683c\u6309\u987a\u5e8f\u6267\u884c\u52a8\u753b\uff0c\u4f7f\u7528xml\u5b9e\u73b0\uff1b 2.3\u3001\u57fa\u672c\u5b9e\u73b0\u6b65\u9aa4\uff1a\u5148\u521b\u5efa\u4e00\u4e2aanimation&#8211;>\u521b\u5efa\u4e00\u4e2aanimation_layout&#8211;>\u7ed1\u5b9a\u5230listview\u4e0a\uff1b 2.4\u3001\u53c2\u8003\u4ee3\u7801<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[33],"class_list":["post-1018","post","type-post","status-publish","format-standard","hentry","category-android","tag-33"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/1018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=1018"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/1018\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=1018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=1018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=1018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}