actionbarsherlock

Action Bar Sherlock SearchView not expanding on click of it

一世执手 提交于 2019-12-19 05:38:09
问题 I have one Sherlock Fragment Activity from which i am setting the different sherlock fragments using fragment pager adapter. Now to show the searchview in each of the fragment i have placed this method in onCreate of Fragment:: This method will show menu items in the ActionBar of the fragment. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); } I have now also set the onCreateOptionMenu() like this :: @Override public void

You cannot combine custom title with other title features

断了今生、忘了曾经 提交于 2019-12-19 03:33:42
问题 In my application, I'm using ActionBarSherlock library. Also I'm using a custom title bar. Here goes my onCreate: requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.main_tab); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title); And in my styles.mxl <style name="MyTheme" parent="Theme.Sherlock"> <item name="android:background">#ff888888</item> <item name="android:windowNoTitle">false</item> <item name="android:windowTitleSize">50dp</item>

Actionbar scherlock is not refreshed when the orientation is changed

限于喜欢 提交于 2019-12-19 03:24:26
问题 I use Sherlock action bar in my application. I used "ifRoom|withText" feature in my menu. If I test my code in portrait mode, I can see only icon and if I rotate orientation to landscape, still I see only icon. On the other hand, if I run with landscape, I can see text and icon on portrait and landscape. This means that When the screen is rotated, action bar is not refreshed. How can I fix? In menu, I have android:showAsAction="ifRoom|withText" Also I used this line in my manifest file to

Android DrawerLayout is not working with ViewPager?

不问归期 提交于 2019-12-18 20:08:31
问题 I have implemented ViewPager inside a DrawerLayout it is working properly but Drawer menu list view not displaying properly with the action bar it will display below the ViewPager tabs.Hope following figure will give you an idea. And i am using actionbarsherlock library. How can i display the Drawer menu list view exactly below the action bar?? What i have tried. Activity OnCreate(): setContentView(R.layout.activity_layout); mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);

How to maintain backwards compatibility while utilising Android API Level 15?

佐手、 提交于 2019-12-18 15:17:25
问题 Ice cream sandwich introduced a lot of new UI design elements but market penetration is still only 4% or so. If one wanted to future-proof their application and utilise some of the design elements introduced with Honeycomb/Ice Cream Sandwich, such as the action bar, the colour scheme etc., what would be the best way to ensure you maintain some modicum of backwards compatibility? 回答1: While I agree with @Ollie C, I think there are other options to add other than just using the Actionbar

Padding the actionbar “up” indicator image

試著忘記壹切 提交于 2019-12-18 12:28:49
问题 I'm in search of a way to style the ActionBar's "up" icon that is displayed when you configured it to be displayed from your Activity : getSupportActionBar().setDisplayHomeAsUpEnabled(true); I've been looking around and found a way to add padding between the home icon and the title (Padding between ActionBar's home icon and title), but not a way to add padding between the home icon and the up indicator icon. I dug into ActionBarView.HomeView in the android source and it appears to inflate the

Android Studio APK install error: “local path doesn't exist”

↘锁芯ラ 提交于 2019-12-18 07:40:44
问题 I get the following output when hitting the "run" or "debug" button in Android Studio: Waiting for device. Target device: emulator-5554 (2.2) Uploading file local path: /Users/myname/Development/TestProject/Test/build/apk/Test-debug-unaligned.apk remote path: /data/local/tmp/nz.co.adbc.testproject Installing nz.co.adbc.testproject DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/nz.co.adbc.testproject" pkg: /data/local/tmp/nz.co.adbc.testproject Success Uploading file local path: /Users

Actionbarsherlock - change actionbar line colour

只愿长相守 提交于 2019-12-18 04:16:53
问题 I am currently working on making my application compatible with pre 3.0 devices with the aid of actionbarsherlock. My application has a custom theme which overide Holo.light changing the blue to orange. I am wanting to change the blue line which appears under the actionbar to orange. With the official actionbar I managed this by overriding <item name="android:background">@drawable/ad_tab_unselected_holo</item> Unfortunately this does not seem to be working in actionbarsherlock 4. 回答1: You

ActionBarSherlock + Maps + Loaders = java.lang.NoClassDefFoundError

烂漫一生 提交于 2019-12-18 04:12:55
问题 Edit: For a detailed how-to, check out my answer. I'm struggling with it for two days now, hope someone can help. I'm trying to use the newest ActionBarSherlock (4.0) with a MapView. I knew it's problematic with fragments, but I don't need them in this activity. But I need Loaders and it appears, that to use Loaders I have to extend the FragmentActivity too. No problem, I thought, we have the android-support-v4-googlemaps from Pete Doyle. As suggested on many SO threads and Google Groups I

ActionBarSherlock - Style contains key with bad entry

霸气de小男生 提交于 2019-12-18 03:04:26
问题 I'm trying to use ActionBarSherlock in one specific activity which I've declared in the Manifest like this: <activity android:name=".activities.Bla" android:screenOrientation="portrait" android:theme="@style/Theme.Sherlock" /> My Activity code is this: public class Bla extends SherlockFragmentActivity implements ActionBar.OnNavigationListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.bla); getSupportActionBar()