{"id":7845,"date":"2015-10-31T12:21:59","date_gmt":"2015-10-31T12:21:59","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/31\/customize-actionbar-in-android-using-actionbarsherlock-and-jeremyfeinstein-slidingmenu-open-source-projects-jfeinstein10-slidingmenu\/"},"modified":"2015-10-31T12:21:59","modified_gmt":"2015-10-31T12:21:59","slug":"customize-actionbar-in-android-using-actionbarsherlock-and-jeremyfeinstein-slidingmenu-open-source-projects-jfeinstein10-slidingmenu","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/31\/customize-actionbar-in-android-using-actionbarsherlock-and-jeremyfeinstein-slidingmenu-open-source-projects-jfeinstein10-slidingmenu\/","title":{"rendered":"Customize ActionBar in Android using ActionbarSherlock and jeremyfeinstein slidingmenu-open source projects jfeinstein10\/SlidingMenu"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/dKIq9.jpg?s=128&amp;g=1\" \/> <strong>Aspicas<\/strong><\/p>\n<p>Implement &#8220;Sliding Menu&#8221; it&#8217;s perfect with Sherlock ActionBar<\/p>\n<p><strong>Link library<\/strong><\/p>\n<p>https:\/\/github.com\/jfeinstein10\/SlidingMenu<\/p>\n<p><strong>VideoTutorial for implement two libraries<\/strong><\/p>\n<p><iframe loading=\"lazy\" title=\"Setting Up SlidingMenu and ActionBarSherlock for Android 4.x.x\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/IW6idyV0CZQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p><strong>EDIT<\/strong><\/p>\n<pre><code>\/\/pre-ICS\nif (actionBarSherlock instanceof ActionBarImpl) {\n    enableEmbeddedTabs(actionBarSherlock);\n\n\/\/ICS and forward\n} else if (actionBarSherlock instanceof ActionBarWrapper) {\n    try {\n        Field actionBarField = actionBarSherlock.getClass().getDeclaredField(\"mActionBar\");\n        actionBarField.setAccessible(true);\n        enableEmbeddedTabs(actionBarField.get(actionBarSherlock));\n    } catch (Exception e) {\n        Log.e(TAG, \"Error enabling embedded tabs\", e);\n    }\n}\n\n\/\/helper method\nprivate void enableEmbeddedTabs(Object actionBar) {\n    try {\n        Method setHasEmbeddedTabsMethod = actionBar.getClass().getDeclaredMethod(\"setHasEmbeddedTabs\", boolean.class);\n        setHasEmbeddedTabsMethod.setAccessible(true);\n        setHasEmbeddedTabsMethod.invoke(actionBar, true);\n    } catch (Exception e) {\n        Log.e(TAG, \"Error marking actionbar embedded\", e);\n    }\n}\n<\/code><\/pre>\n<p>look that link:<\/p>\n<blockquote>\n<p>https:\/\/groups.google.com\/forum\/#!topic\/actionbarsherlock\/hmmB1JqDeCk<\/p>\n<\/blockquote>\n<p>When you had tabs on your action bar you can asing one style for your tabs, border, backgroundImage, gravity and you give button appearance.<\/p>\n<p>Look:<\/p>\n<blockquote>\n<blockquote class=\"wp-embedded-content\" data-secret=\"fXQhc3mmcZ\"><p><a href=\"https:\/\/www.silverbaytech.com\/2013\/05\/13\/themes-for-the-android-actionbar-tabs\/\">Themes for the Android ActionBar &#8211; Tabs<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Themes for the Android ActionBar &#8211; Tabs&#8221; &#8212; Silver Bay Technologies\" src=\"https:\/\/www.silverbaytech.com\/2013\/05\/13\/themes-for-the-android-actionbar-tabs\/embed\/#?secret=KmRy6FJrs3#?secret=fXQhc3mmcZ\" data-secret=\"fXQhc3mmcZ\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<\/blockquote>\n<p>Try it and tell us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aspicas Implement &#8220;Sliding Menu&#8221; it&#8217;s perfect with Sherlock ActionBar Link library https:\/\/github.com\/jfeinstein10\/SlidingMenu VideoTutorial for implement two libraries EDIT \/\/pre-ICS if (actionBarSherlock instanceof ActionBarImpl) { enableEmbeddedTabs(actionBarSherlock); \/\/ICS and forward } else if (actionBarSherlock instanceof ActionBarWrapper) { try { Field actionBarField = actionBarSherlock.getClass().getDeclaredField(&#8220;mActionBar&#8221;); actionBarField.setAccessible(true); enableEmbeddedTabs(actionBarField.get(actionBarSherlock)); } catch (Exception e) { Log.e(TAG, &#8220;Error enabling embedded tabs&#8221;, e); } [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7845","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7845"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7845\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}