{"id":378,"date":"2013-07-02T14:41:08","date_gmt":"2013-07-02T06:41:08","guid":{"rendered":"http:\/\/blog.dayandcarrot.net\/?p=378"},"modified":"2013-07-02T14:41:08","modified_gmt":"2013-07-02T06:41:08","slug":"%e5%bc%ba%e5%88%b6%e5%9c%a8actionbar%e4%b8%ad%e6%98%be%e7%a4%ba%e8%8f%9c%e5%8d%95%e5%86%85%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/dayandcarrot.space\/?p=378","title":{"rendered":"\u5f3a\u5236\u5728ActionBar\u4e2d\u663e\u793a\u83dc\u5355\u5185\u5bb9"},"content":{"rendered":"<p><strong>Q:<\/strong><br \/>\n\u5982\u4f55\u5728ActionBar\u4e2d\u59cb\u7ec8\u663e\u793a\u7ad6\u7740\u76843\u4e2a\u70b9\uff0c\u5c31\u662f\u83dc\u5355\u952e\u7684\u4e1c\u897f\u3002<br \/>\n<strong>A:<\/strong><\/p>\n<div id=\"wp\">\n<div id=\"ct\">\n<div id=\"postlist\">\n<div id=\"post_814065\">\n<table id=\"pid814065\" summary=\"pid814065\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>\n<div>\n<div>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td id=\"postmessage_814065\">\u54ea\u4e2a\u90fd\u4e0d\u80fd\u5b9e\u73b0\uff0c\u4e0a\u9762\u7684\u662f\u81ea\u5b9a\u4e49\u7684\uff0c\u6216\u8005\u662f\u5728\u6a2a\u5c4f\uff0c\u6216\u8005\u662f\u5c4f\u853d\u6bd4\u8f83\u5bbd\u7684\u65f6\u5019\uff0c<br \/>\n\u6bd4\u5982480*800 \u7ad6\u5c4f\uff0c\u9ed8\u8ba4\u662f\u663e\u793a\u4e24\u4e2a\u3002\u800c\u4e14\u591a\u4f59\u7684\u4e0d\u4f1a\u663e\u793a\u6210\u6ea2\u51fa\u7684\u83dc\u5355<br \/>\n\u6709\u4e00\u4e2a\u53ef\u884c\u7684\u65b9\u6848\uff0c\u5c31\u662fMenuItem\u4f5c\u4e3aGroup\uff0c\u5b83\u7684\u56fe\u6807\u5c31\u662f\u4e0a\u9762\u53f3\u8fb9\u7684\uff0c\u7136\u540e\u5b83\u7684\u5b50\u83dc\u5355\u624d\u662f\u4f60\u8981\u7684\u83dc\u5355\u3002<br \/>\n&lt;item android:id=&#8221;@+id\/menu_nav&#8221; android:title=&#8221;@string\/opb_more_hint&#8221;<br \/>\nandroid:showAsAction=&#8221;always&#8221;<br \/>\nandroid:icon=&#8221;@drawable\/abs__ic_menu_moreoverflow_normal_holo_light&#8221;&gt;<br \/>\n&lt;menu&gt;<br \/>\n&lt;item android:id=&#8221;@+id\/menu_account_user_manager&#8221; android:showAsAction=&#8221;ifRoom|withText&#8221;<br \/>\nandroid:title=&#8221;@string\/action_account_user_manager&#8221;\/&gt;<br \/>\n&lt;item android:id=&#8221;@+id\/menu_search&#8221; android:showAsAction=&#8221;ifRoom&#8221;<br \/>\nandroid:title=&#8221;@string\/action_search&#8221;\/&gt;<br \/>\n&lt;item android:id=&#8221;@+id\/menu_home_user&#8221; android:showAsAction=&#8221;ifRoom|withText&#8221;<br \/>\nandroid:title=&#8221;@string\/action_home_user&#8221;\/&gt;<br \/>\n&#8230;.<br \/>\n\u8fd9\u6837<br \/>\n\u7b2c\u4e00\u4e2amenu_nav \u5c31\u662f\u653e\u53f3\u8fb9\u7684\u56fe\u6807\uff0c\u4e0b\u9762\u7684\u662f\u5b50\u83dc\u5355\uff0c\u5c31\u53ef\u4ee5\u4e86<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Q: \u5982\u4f55\u5728ActionBar\u4e2d\u59cb\u7ec8\u663e\u793a\u7ad6\u7740\u76843\u4e2a\u70b9\uff0c\u5c31\u662f\u83dc\u5355\u952e\u7684\u4e1c\u897f\u3002 A: \u54ea\u4e2a\u90fd\u4e0d\u80fd\u5b9e\u73b0\uff0c\u4e0a\u9762\u7684\u662f\u81ea\u5b9a\u4e49\u7684\uff0c\u6216\u8005\u662f\u5728\u6a2a\u5c4f\uff0c\u6216\u8005\u662f\u5c4f\u853d\u6bd4\u8f83\u5bbd\u7684\u65f6\u5019\uff0c \u6bd4\u5982480*800 \u7ad6\u5c4f\uff0c\u9ed8\u8ba4\u662f\u663e\u793a\u4e24\u4e2a\u3002\u800c\u4e14\u591a\u4f59\u7684\u4e0d\u4f1a\u663e\u793a\u6210\u6ea2\u51fa\u7684\u83dc\u5355 \u6709\u4e00\u4e2a\u53ef\u884c\u7684\u65b9\u6848\uff0c\u5c31\u662fMenuItem\u4f5c\u4e3aGroup\uff0c\u5b83\u7684\u56fe\u6807\u5c31\u662f\u4e0a\u9762\u53f3\u8fb9\u7684\uff0c\u7136\u540e\u5b83\u7684\u5b50\u83dc\u5355\u624d\u662f\u4f60\u8981\u7684\u83dc\u5355\u3002 &lt;item android:id=&#8221;@+id\/menu_nav&#8221; android:title=&#8221;@string\/opb_more_hint&#8221; android:showAsAction=&#8221;always&#8221; android:icon=&#8221;@drawable\/abs__ic_menu_moreoverflow_normal_holo_light&#8221;&gt; &lt;menu&gt; &lt;item android:id=&#8221;@+id\/menu_account_user_manager&#8221; android:showAsAction=&#8221;ifRoom|withText&#8221; android:title=&#8221;@string\/action_account_user_manager&#8221;\/&gt; &lt;item android:id=&#8221;@+id\/menu_search&#8221; android:showAsAction=&#8221;ifRoom&#8221; android:title=&#8221;@string\/action_search&#8221;\/&gt; &lt;item android:id=&#8221;@+id\/menu_home_user&#8221; android:showAsAction=&#8221;ifRoom|withText&#8221; android:title=&#8221;@string\/action_home_user&#8221;\/&gt; &#8230;. \u8fd9\u6837 \u7b2c\u4e00\u4e2amenu_nav \u5c31\u662f\u653e\u53f3\u8fb9\u7684\u56fe\u6807\uff0c\u4e0b\u9762\u7684\u662f\u5b50\u83dc\u5355\uff0c\u5c31\u53ef\u4ee5\u4e86<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9],"tags":[19],"class_list":["post-378","post","type-post","status-publish","format-standard","hentry","category-technical","category-mobilelife","tag-android"],"_links":{"self":[{"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=\/wp\/v2\/posts\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=378"}],"version-history":[{"count":0,"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=\/wp\/v2\/posts\/378\/revisions"}],"wp:attachment":[{"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}