JakeWharton/ActionBarSherlock — Issue #297: Feature Toggles demo is blank on 3.1
Author: eburnette
Created: 2012-02-21 20:58:44+00:00
State: open

When I try the Feature Toggles demo on a Samsung Galaxy Tab 10.1 running 3.1 the screen is mostly blank. I can see the title at the top ("Feature Toggles"), the blue line under the action bar, and the words "Use these buttons to create various configurations with the action bar to see how it behaves." However I don't see any buttons. I can see a scroll bar on the right, as if there were a larger page there, but there is nothing there.

I didn't set the theme so it's using the default dark theme. Just now I went back and tried the other 2 themes but it didn't help.

Other samples work ok, like "Action Items", "Action Modes", and "Intermediate Progress".

I tried this two ways, first by downloading the sample from beta.abs.io, and then when that didn't work by downloading and building the source from the wip-4.0 branch on github.

LogCat shows this output:

02-21 15:54:12.010: I/ActivityManager(18664): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.actionbarsherlock.sample.demos/.SampleList } from pid 18738
02-21 15:54:12.040: D/WindowManager(18664): addWindowToListInOrder() : current mSkipWidgetFocus='true'
02-21 15:54:12.060: W/ActivityManager(18664): Trying to launch com.actionbarsherlock.sample.demos/.SampleList
02-21 15:54:12.070: E/TelephonyManager(18289): Hidden constructor called more than once per process!
02-21 15:54:12.090: D/ActionBarSherlock(18289): [] activity: com.actionbarsherlock.sample.demos.SampleList@409777c0, flags: 1
02-21 15:54:12.090: D/ActionBarSherlock(18289): [setContentView] layoutResId: 17367123
02-21 15:54:12.090: D/ActionBarSherlock(18289): [installDecor]
02-21 15:54:12.090: D/ActionBarSherlock(18289): [generateLayout]
02-21 15:54:12.090: D/ActionBarSherlock(18289): [requestFeature] featureId: 8
02-21 15:54:12.090: D/ActionBarSherlock(18289): [hasFeature] featureId: 8
02-21 15:54:12.090: D/ActionBarSherlock(18289): [hasFeature] returning true
02-21 15:54:12.090: D/ActionBarSherlock(18289): [hasFeature] featureId: 1
02-21 15:54:12.090: D/ActionBarSherlock(18289): [hasFeature] returning false
02-21 15:54:12.090: D/ActionBarSherlock(18289): [hasFeature] featureId: 9
02-21 15:54:12.090: D/ActionBarSherlock(18289): [hasFeature] returning false
02-21 15:54:12.110: D/ActionBarSherlock(18289): [hasFeature] featureId: 5
02-21 15:54:12.110: D/ActionBarSherlock(18289): [hasFeature] returning false
02-21 15:54:12.110: D/ActionBarSherlock(18289): [hasFeature] featureId: 2
02-21 15:54:12.110: D/ActionBarSherlock(18289): [hasFeature] returning false
02-21 15:54:12.110: D/ActionBarSherlock(18289): [hasFeature] featureId: 5
02-21 15:54:12.110: D/ActionBarSherlock(18289): [hasFeature] returning false
02-21 15:54:12.110: I/ActionBarSherlock(18289): Parsing AndroidManifest.xml for com.actionbarsherlock.sample.demos.SampleList
02-21 15:54:12.110: D/ActionBarSherlock(18289): Got
02-21 15:54:12.110: D/ActionBarSherlock(18289): debuggable: true
02-21 15:54:12.110: D/ActionBarSherlock(18289): icon: @2130837599
02-21 15:54:12.110: D/ActionBarSherlock(18289): label: @2131361795
02-21 15:54:12.110: D/ActionBarSherlock(18289): Got
02-21 15:54:12.110: D/ActionBarSherlock(18289): name: .SampleList
02-21 15:54:12.110: D/ActionBarSherlock(18289): label: @2131361796
02-21 15:54:12.110: D/ActionBarSherlock(18289): theme: @2131427387
02-21 15:54:12.110: I/ActionBarSherlock(18289): Returning 0
02-21 15:54:12.110: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:12.110: D/ActionBarSherlock(18289): [hasFeature] featureId: 8
02-21 15:54:12.110: D/ActionBarSherlock(18289): [hasFeature] returning true
02-21 15:54:12.110: D/ActionBarSherlock(18289): [hasFeature] featureId: 1
02-21 15:54:12.110: D/ActionBarSherlock(18289): [hasFeature] returning false
02-21 15:54:12.110: D/ActionBarSherlock(18289): [dispatchOnPostCreate]
02-21 15:54:12.110: D/ActionBarSherlock(18289): [dispatchTitleChanged] title: ABS: Demos, color: 0
02-21 15:54:12.110: D/ActionBarSherlock(18289): [dispatchPostResume]
02-21 15:54:12.120: D/WindowManager(18664): addWindowToListInOrder() : current mSkipWidgetFocus='true'
02-21 15:54:12.170: D/ActionBarSherlock(18289): [dispatchInvalidateOptionsMenu]
02-21 15:54:12.170: D/ActionBarSherlock(18289): [callbackCreateOptionsMenu] menu: com.actionbarsherlock.internal.view.menu.MenuBuilder@409dc328
02-21 15:54:12.170: D/ActionBarSherlock(18289): [callbackCreateOptionsMenu] returning true
02-21 15:54:12.170: D/ActionBarSherlock(18289): [callbackPrepareOptionsMenu] menu: com.actionbarsherlock.internal.view.menu.MenuBuilder@409dc328
02-21 15:54:12.170: D/ActionBarSherlock(18289): [callbackPrepareOptionsMenu] returning true
02-21 15:54:12.180: I/WindowManager(18664): Putting input method here!
02-21 15:54:12.180: D/WindowManager(18664): w.mAttrs.token=ActivityRecord{41750380 com.actionbarsherlock.sample.demos/.SampleList}
02-21 15:54:12.180: D/WindowManager(18664): w.mToken=AppWindowToken{4258f938 token=ActivityRecord{41750380 com.actionbarsherlock.sample.demos/.SampleList}}
02-21 15:54:12.180: D/WindowManager(18664): token=AppWindowToken{4258f938 token=ActivityRecord{41750380 com.actionbarsherlock.sample.demos/.SampleList}}
02-21 15:54:12.180: I/WindowManager(18664): Placing input method @7
02-21 15:54:12.610: I/ActivityManager(18664): Displayed com.actionbarsherlock.sample.demos/.SampleList: +545ms
02-21 15:54:13.960: I/ActivityManager(18664): Starting: Intent { cmp=com.actionbarsherlock.sample.demos/.FeatureToggles } from pid 18289
02-21 15:54:14.010: D/ActionBarSherlock(18289): [dispatchPause]
02-21 15:54:14.010: W/ActivityManager(18664): Trying to launch com.actionbarsherlock.sample.demos/.FeatureToggles
02-21 15:54:14.030: E/TelephonyManager(18289): Hidden constructor called more than once per process!
02-21 15:54:14.030: D/ActionBarSherlock(18289): [] activity: com.actionbarsherlock.sample.demos.FeatureToggles@409e14b0, flags: 1
02-21 15:54:14.030: D/ActionBarSherlock(18289): [requestFeature] featureId: 2
02-21 15:54:14.030: D/ActionBarSherlock(18289): [requestFeature] featureId: 5
02-21 15:54:14.030: D/ActionBarSherlock(18289): [setContentView] layoutResId: 2130903059
02-21 15:54:14.030: D/ActionBarSherlock(18289): [installDecor]
02-21 15:54:14.030: D/ActionBarSherlock(18289): [generateLayout]
02-21 15:54:14.040: D/ActionBarSherlock(18289): [requestFeature] featureId: 8
02-21 15:54:14.040: D/ActionBarSherlock(18289): [hasFeature] featureId: 8
02-21 15:54:14.040: D/ActionBarSherlock(18289): [hasFeature] returning true
02-21 15:54:14.040: D/ActionBarSherlock(18289): [hasFeature] featureId: 1
02-21 15:54:14.040: D/ActionBarSherlock(18289): [hasFeature] returning false
02-21 15:54:14.040: D/ActionBarSherlock(18289): [hasFeature] featureId: 9
02-21 15:54:14.040: D/ActionBarSherlock(18289): [hasFeature] returning false
02-21 15:54:14.040: D/ActionBarSherlock(18289): [hasFeature] featureId: 5
02-21 15:54:14.040: D/ActionBarSherlock(18289): [hasFeature] returning true
02-21 15:54:14.050: D/ActionBarSherlock(18289): [hasFeature] featureId: 2
02-21 15:54:14.050: D/ActionBarSherlock(18289): [hasFeature] returning true
02-21 15:54:14.050: D/ActionBarSherlock(18289): [hasFeature] featureId: 5
02-21 15:54:14.050: D/ActionBarSherlock(18289): [hasFeature] returning true
02-21 15:54:14.050: I/ActionBarSherlock(18289): Parsing AndroidManifest.xml for com.actionbarsherlock.sample.demos.FeatureToggles
02-21 15:54:14.050: D/ActionBarSherlock(18289): Got
02-21 15:54:14.050: D/ActionBarSherlock(18289): debuggable: true
02-21 15:54:14.050: D/ActionBarSherlock(18289): icon: @2130837599
02-21 15:54:14.050: D/ActionBarSherlock(18289): label: @2131361795
02-21 15:54:14.050: D/ActionBarSherlock(18289): Got
02-21 15:54:14.050: D/ActionBarSherlock(18289): name: .SampleList
02-21 15:54:14.050: D/ActionBarSherlock(18289): Got
02-21 15:54:14.050: D/ActionBarSherlock(18289): name: .ActionItems
02-21 15:54:14.050: D/ActionBarSherlock(18289): Got
02-21 15:54:14.050: D/ActionBarSherlock(18289): name: .ActionModes
02-21 15:54:14.050: D/ActionBarSherlock(18289): Got
02-21 15:54:14.050: D/ActionBarSherlock(18289): name: .ActionModesNoActionBar
02-21 15:54:14.050: D/ActionBarSherlock(18289): Got
02-21 15:54:14.050: D/ActionBarSherlock(18289): name: .ActionProviders
02-21 15:54:14.050: D/ActionBarSherlock(18289): Got
02-21 15:54:14.050: D/ActionBarSherlock(18289): name: .CollapsibleActionItem
02-21 15:54:14.050: D/ActionBarSherlock(18289): Got
02-21 15:54:14.050: D/ActionBarSherlock(18289): name: .CustomNavigation
02-21 15:54:14.050: D/ActionBarSherlock(18289): Got
02-21 15:54:14.050: D/ActionBarSherlock(18289): name: .FeatureToggles
02-21 15:54:14.060: D/ActionBarSherlock(18289): label: @2131361808
02-21 15:54:14.060: I/ActionBarSherlock(18289): Returning 0
02-21 15:54:14.090: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.090: D/ActionBarSherlock(18289): [hasFeature] featureId: 8
02-21 15:54:14.090: D/ActionBarSherlock(18289): [hasFeature] returning true
02-21 15:54:14.090: D/ActionBarSherlock(18289): [hasFeature] featureId: 1
02-21 15:54:14.090: D/ActionBarSherlock(18289): [hasFeature] returning false
02-21 15:54:14.090: D/ActionBarSherlock(18289): [setProgressBarIndeterminateVisibility] visible: false
02-21 15:54:14.090: D/ActionBarSherlock(18289): [getFeatures] returning 292
02-21 15:54:14.090: D/ActionBarSherlock(18289): [setProgressBarVisibility] visible: false
02-21 15:54:14.090: D/ActionBarSherlock(18289): [getFeatures] returning 292
02-21 15:54:14.090: D/ActionBarSherlock(18289): [getActionBar]
02-21 15:54:14.090: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.090: D/ActionBarSherlock(18289): [getActionBar]
02-21 15:54:14.090: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.090: D/ActionBarSherlock(18289): [getActionBar]
02-21 15:54:14.090: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.090: D/ActionBarSherlock(18289): [getActionBar]
02-21 15:54:14.090: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [getActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [getActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [getActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [getActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [getActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [getActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [initActionBar]
02-21 15:54:14.100: D/ActionBarSherlock(18289): [dispatchOnPostCreate]
02-21 15:54:14.110: D/ActionBarSherlock(18289): [dispatchTitleChanged] title: Feature Toggles, color: 0
02-21 15:54:14.110: D/ActionBarSherlock(18289): [dispatchPostResume]
02-21 15:54:14.110: D/WindowManager(18664): addWindowToListInOrder() : current mSkipWidgetFocus='true'
02-21 15:54:14.210: D/ActionBarSherlock(18289): [dispatchInvalidateOptionsMenu]
02-21 15:54:14.210: D/ActionBarSherlock(18289): [callbackCreateOptionsMenu] menu: com.actionbarsherlock.internal.view.menu.MenuBuilder@40951cf0
02-21 15:54:14.210: D/ActionBarSherlock(18289): [callbackCreateOptionsMenu] returning true
02-21 15:54:14.210: D/ActionBarSherlock(18289): [callbackPrepareOptionsMenu] menu: com.actionbarsherlock.internal.view.menu.MenuBuilder@40951cf0
02-21 15:54:14.210: D/ActionBarSherlock(18289): [callbackPrepareOptionsMenu] returning true
02-21 15:54:14.220: I/WindowManager(18664): Putting input method here!
02-21 15:54:14.220: D/WindowManager(18664): w.mAttrs.token=ActivityRecord{417662a0 com.actionbarsherlock.sample.demos/.FeatureToggles}
02-21 15:54:14.220: D/WindowManager(18664): w.mToken=AppWindowToken{42521c10 token=ActivityRecord{417662a0 com.actionbarsherlock.sample.demos/.FeatureToggles}}
02-21 15:54:14.220: D/WindowManager(18664): token=AppWindowToken{42521c10 token=ActivityRecord{417662a0 com.actionbarsherlock.sample.demos/.FeatureToggles}}
02-21 15:54:14.220: I/WindowManager(18664): Placing input method @8
02-21 15:54:14.540: I/ActivityManager(18664): Displayed com.actionbarsherlock.sample.demos/.FeatureToggles: +529ms
02-21 15:54:14.540: D/ActionBarSherlock(18289): [dispatchStop]