actionbarsherlock

ActionBarSherlock getCustomView() return null on pre ICS android versions

自作多情 提交于 2019-12-12 05:25:21
问题 I'm developing an application using ABS Library. In two fragmentActivities I need use a custom view in the Actionbar. My code work perfect in ICS and JB. But I test in gingerbread and crashed. My code is the next: public class SearchContactActivity extends SherlockFragmentActivity { private EditText searchField; private ImageButton searchButton; @Override protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.search_contacts); ActionBar actionBar =

java.lang.OutOfMemoryError appears after SherlockActionBar was added

人盡茶涼 提交于 2019-12-12 03:56:42
问题 I added SherlockActionBar (layouts were not changed since prev version), tested my app in several devices and everything worked fine but ACRA has been reporting about new and new similar errors: java.lang.RuntimeException: Unable to start activity ComponentInfo{net.aviascanner.aviascanner/net.aviascanner.aviascanner.ui.activities.SearchResultsActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown> at android.app.ActivityThread.performLaunchActivity

ICS spinner outside ActionBar and not working dropdown menu

六眼飞鱼酱① 提交于 2019-12-12 03:49:14
问题 I've tried to make IcsSpinner outside ActionBar using ActionBarSherlock. I used the informations from Dropdown Spinner outside of actionbar? (IceCream Sandwich style, w/ActionBarSherlock). It looks nice, that's what I am looking for. My problem is that my spinner shows only first option and is not clickable. Dropdown menu is not accessible and method getDropDownView is never called. HoloSpinner.java: import android.content.Context; import android.util.AttributeSet; import com

android launch from eclipse not working properly without error message

烂漫一生 提交于 2019-12-12 03:18:17
问题 while i'm developing my android app on my HTC sensation, i can't run the app directly from eclipse. this problem only occurs when i'm using ICS phones and it's almost a hit or miss, the app would start sometimes without actually reinstalling, it would just start the old version of my app; other times it would work perfectly for a while before it stops starting the app... the console shows this for everything(working , not working, not updating etc) [2012-03-21 21:08:57 - ActionBarSherlock]

ProGuard and HoloEverywhere: Export Signed Application Errors

蹲街弑〆低调 提交于 2019-12-12 03:03:23
问题 I'm using ActionBarSherlock and HoloEverywhere in my project. Everything works perfectly, except when I try to export my signed application, ProGuard gives me grief: [2013-05-19 00:13:53 - ] Proguard returned with error code 1. See console [2013-05-19 00:13:53 - ] Warning: com.actionbarsherlock.widget.SuggestionsAdapter: can't find referenced field 'android.content.Context mContext' in class com.actionbarsherlock.widget.SuggestionsAdapter [2013-05-19 00:13:53 - ] Warning: com

Action Bar Sherlock has deprecated methods

点点圈 提交于 2019-12-12 02:39:29
问题 I downloaded the ActionBarSherlock version 4.1.0.0, and added a the Android Project library into Eclipse 4.2 on my Win7 java 1.6 update 24 machine. I used an Eclipse Project Build Target of Android 4.1 in Project | Properties | Project Build Target. I want to incorporate the ActionBar functionality into an existing app that has minSdkVersion="7". I noted the code from the ActionBarSherlock library appears to have some deprecated methods, and an error: Example 1: ActionBarContainer.java,

how to set setContentView?

让人想犯罪 __ 提交于 2019-12-12 02:34:59
问题 i creating a project using actionbarsherlock "menuviewpager" I want to put the class from my project in it. but i got several error. I want to insert imageswitcher into the fragment in the manueviewpager's project. here are the code that i already copy and past into the projects.There are four error that i got:- setContentView findViewById Fragment1.this; .padding_medium); Fragment1.java package com.androidbegin.menuviewpagertutorial; import com.actionbarsherlock.app.SherlockFragment; import

Linking from an activity to a fragment activity with a button using actionBarSherlock

大城市里の小女人 提交于 2019-12-12 02:15:27
问题 I made a project wherein when you click a button from the MainActivity, it will lead to a fragment activity. But I can't seem to make it work. Here's a snippet of my code for the button in MainActivity: Button button2 = (Button) findViewById(R.id.button2); button2.setOnClickListener(new OnClickListener () { public void onClick(View v) { Intent intent = new Intent (v.getContext(), page3.class); startActivityForResult(intent, 0); } }) ; Here's my snippet for page3 where the button from

How to enable the home button to return to a common activity?

陌路散爱 提交于 2019-12-12 01:22:50
问题 I use ActionbarSherlock and would like to enable the home button ... Therefore I call setHomeButtonEnabled(true) in my base activity. public class BaseFragmentActivity extends SherlockFragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { setTheme(R.style.Theme_Sherlock); super.onCreate(savedInstanceState); getSupportActionBar().setHomeButtonEnabled(true); // Here } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case

TabHost tabs are not horizontally scrolling when swiping using ViewPager

安稳与你 提交于 2019-12-12 01:03:01
问题 I am writing an app that uses many fragments. I have used ActionBarSherlock (with ActionBar). To work-around bug #240, I've decided to switch a functionally working implementation to use ActionBarSherlock with TabHost . After half a few hours of work, it is working fine, except for when I am swiping between pages: The correspondent tab is selected, but is not centered and often not even visible so the user can't see which tab is selected. In the picture you can see the visible fragment (