{"id":95,"date":"2010-10-02T18:58:59","date_gmt":"2010-10-02T10:58:59","guid":{"rendered":"http:\/\/leybreeze.com\/blog\/?p=95"},"modified":"2010-10-02T19:32:25","modified_gmt":"2010-10-02T11:32:25","slug":"%e5%88%9b%e5%bb%ba%e7%a8%8b%e5%ba%8f%e5%90%af%e5%8a%a8%e5%b1%8f%e5%b9%95","status":"publish","type":"post","link":"http:\/\/leybreeze.com\/blog\/?p=95","title":{"rendered":"\u521b\u5efa\u7a0b\u5e8f\u542f\u52a8\u5c4f\u5e55"},"content":{"rendered":"<p>\u4ee3\u7801\u53ca\u8303\u4f8b\uff1a<\/p>\n<pre lang=\"java\">public class Splashscreen extends Activity {\r\n\tprotected int _splashTime = 200;\r\n\r\n\t@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\r\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\r\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\r\n\t\t\/\/setContentView(R.layout.splash);\r\n\t\tstartActivity(new Intent(Splashscreen.this, Ankicard.class));\r\n\r\n\t\tThread splashTread = new Thread() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint waited = 0;\r\n\t\t\t\t\twhile ((waited &lt; _splashTime)) {\r\n\t\t\t\t\t\tsleep(100);\r\n\t\t\t\t\t\twaited += 100;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\/\/ do nothing\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tstartActivity(new Intent(Splashscreen.this, Ankicard.class));\r\n\t\t\t\t\tstop();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tsplashTread.start();\r\n\t}\r\n}<\/pre>\n<p>\u8bf4\u660e\uff1a\u901a\u8fc7\u65b0\u5efa\u4e00\u4e2a\u7ebf\u7a0b\u6765\u521b\u5efa\u4e00\u4e2asplash screen\uff0c\u6548\u679c\u5c31\u5982\u540c\u7535\u8111\u4e0aOffice\u3001Photoshop\u3001Media Go\u7b49\u8f6f\u4ef6\u542f\u52a8\u65f6\u6709\u4e00\u4e2a\u753b\u9762\u663e\u793a\u8fdb\u5ea6\u90a3\u6837\u3002\u5728\u6b64\u671f\u95f4\u7a0b\u5e8f\u53ef\u4ee5\u8fdb\u884c\u521d\u59cb\u5316\u5de5\u4f5c\uff0c\u51cf\u5c11\u7528\u6237\u7684\u7b49\u5f85\u611f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee3\u7801\u53ca\u8303\u4f8b\uff1a public class Splashscreen extends Activity { pro &hellip; <a href=\"http:\/\/leybreeze.com\/blog\/?p=95\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u521b\u5efa\u7a0b\u5e8f\u542f\u52a8\u5c4f\u5e55\u201d<\/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":[4],"tags":[5,14,15],"_links":{"self":[{"href":"http:\/\/leybreeze.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/95"}],"collection":[{"href":"http:\/\/leybreeze.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/leybreeze.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/leybreeze.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/leybreeze.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=95"}],"version-history":[{"count":10,"href":"http:\/\/leybreeze.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":107,"href":"http:\/\/leybreeze.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions\/107"}],"wp:attachment":[{"href":"http:\/\/leybreeze.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/leybreeze.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/leybreeze.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}