actionbarsherlock

ActionBarSherlock background does not repeat on pre ICS versions

一个人想着一个人 提交于 2020-01-01 11:41:51
问题 I'm moving my app's ActionBar to ActionBarSherlock and I'm trying to customize the background with a tiled background. I'm testing my code on 2 real devices, one running Android 2.1 and the other running Android 4.0.4. The code below is working on the ICS device (the background does repeat) but not on the Eclair one (the background is stretched instead of repeating). I've also tested this on Android 2.3 emulator and the background does not repeat too. It seems the tileMode="repeat" is only

ActionBarSherlock background does not repeat on pre ICS versions

ⅰ亾dé卋堺 提交于 2020-01-01 11:40:04
问题 I'm moving my app's ActionBar to ActionBarSherlock and I'm trying to customize the background with a tiled background. I'm testing my code on 2 real devices, one running Android 2.1 and the other running Android 4.0.4. The code below is working on the ICS device (the background does repeat) but not on the Eclair one (the background is stretched instead of repeating). I've also tested this on Android 2.3 emulator and the background does not repeat too. It seems the tileMode="repeat" is only

Fullscreen Mode using ActionBarSherlock on Devices running API <11

余生长醉 提交于 2020-01-01 10:56:08
问题 Is there a way to go in fullscreen mode using ActionBarSherlock on Devices running API <11? Further Information: My app is using ActionBarSherlock and while testing on different devices i stumbled on a problem. If i try tro launch an activity in fullscreen android:theme="@android:style/Theme.NoTitleBar.Fullscreen" on a Device running on a API lower than 11 the following error occured: 05-29 10:12:54.436: E/AndroidRuntime(1034): FATAL EXCEPTION: main 05-29 10:12:54.436: E/AndroidRuntime(1034):

Issue with NotificationCompact.Builder and ActionBarSherlock

谁说胖子不能爱 提交于 2020-01-01 08:55:23
问题 In the following code, Eclipse found an error: The method build() is undefined for the type NotificationCompat.Builder Everything worked fine before adding the ActionBarSherlock (following this tutorial). import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.TaskStackBuilder; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.support.v4.app

Android statusbar overlay with ActionBar

风格不统一 提交于 2020-01-01 01:17:11
问题 I know that I can make the ActionBar overlay using requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY) and can toggle/show the status bar in my screen (by switching between FLAG_FULLSCREEN and FLAG_FORCE_NOT_FULLSCREEN ). This works great. However, I don't want my layout moving when I toggle the status bar. I know that I can make the status bar "overlay" (albeit not transparently) the content using: WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN WindowManager.LayoutParams.FLAG_LAYOUT_NO

New Facebook API 3.0. and ActionBarSherlock compatibility

拈花ヽ惹草 提交于 2019-12-31 19:54:13
问题 I'm reading facebook Android API 3.0 documents, and I do not understand what does session has to do with background activities. In all examples I'm supposed to extend "FacebookFragment". Well, that would be nice if my whole app is not extending "SherlockFragment" so I do not see extending FacebookFragment as an option. If I use the code from SessionLoginExample, and put my AppID in Strings in the very same string as facebook does I get the: Error 10-22 17:04:26.464: E/AndroidRuntime(5491):

tab contents using actionbarsherlock tab style

可紊 提交于 2019-12-31 10:56:51
问题 referring to this code below (taken from https://gist.github.com/1126843 ) how do i set the contents of the tabs? public class NativeTabActivity extends Activity { private TabHost mTabHost; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mTabHost = (TabHost)findViewById(android.R.id.tabhost); mTabHost.setup(); addTab(new TextView(this), "Tab 1"); addTab(new TextView(this), "Tab 2"); addTab(new TextView(this), "Tab

tab contents using actionbarsherlock tab style

橙三吉。 提交于 2019-12-31 10:56:16
问题 referring to this code below (taken from https://gist.github.com/1126843 ) how do i set the contents of the tabs? public class NativeTabActivity extends Activity { private TabHost mTabHost; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mTabHost = (TabHost)findViewById(android.R.id.tabhost); mTabHost.setup(); addTab(new TextView(this), "Tab 1"); addTab(new TextView(this), "Tab 2"); addTab(new TextView(this), "Tab

ActionBarSherlock gives tons of “Call requires API level 11 (current min is 7)” errors

拜拜、爱过 提交于 2019-12-31 10:48:53
问题 I downloaded ActionBarSherlock 4.0.3, unzipped it and created a new project from the library folder. The src folder was, according to Eclipse, full of errors, so I followed various instructions online, like adding android-support-v4.jar , setting target API to 15 and compiler compliance level to 1.6. Still, the project has 194 errors, all of which are "Call requires API level 11 (current min is 7)". So when I look at one of the errors, I see this: @Override public void invalidateOptionsMenu()

ActionBarSherlock + Google Maps API v2 Duplicate Id

别来无恙 提交于 2019-12-30 18:05:29
问题 I'm trying to integrate the ActionBarSherlock with Google Maps API v2 fragments. I have a layout with 2 fragments: one for a list layout and another with a SupportMapFragment. When I click on a list item first go well but when I click on a list item second time, it throws an error: " Duplicate id 0x7f040038, tag null, or parent id 0x0 with another fragment for com.google.android.gms.maps.SupportMapFragment" I tried several solutions and none of them have been able to fix it. Is there