JakeWharton/ActionBarSherlock — Issue #291: Actionbar height not taken into consideration when layout contains ListView
Author: nelenkov
Created: 2012-02-18 17:15:11+00:00
State: open

It seems the actionbar height is not taken into consideration when the layout contains some views on top of a ListView. See screenshot. It happens even when not using the split AB, and works fine on ICS. The layout I use is this:

http://code.google.com/p/wwwjdic/source/browse/branches/2.0/wwwjdic/res/layout/sentence_breakdown_fragment.xml

![ABS invalid height](http://dl.dropbox.com/u/342975/abs-invalid-height.png)

Not sure if this helps, but ABS log when starting this activity is below:

```
I/ActionBarSherlock(30243): Parsing AndroidManifest.xml for org.nick.wwwjdic.SentenceBreakdown
D/ActionBarSherlock(30243): Got
D/ActionBarSherlock(30243): hardwareAccelerated: true
D/ActionBarSherlock(30243): debuggable: true
D/ActionBarSherlock(30243): name: org.nick.wwwjdic.WwwjdicApplication
D/ActionBarSherlock(30243): icon: @2130837634
D/ActionBarSherlock(30243): label: @2131361795
D/ActionBarSherlock(30243): Got
D/ActionBarSherlock(30243): uiOptions: 0x1
D/ActionBarSherlock(30243): windowSoftInputMode: 0x24
D/ActionBarSherlock(30243): name: org.nick.wwwjdic.Wwwjdic
D/ActionBarSherlock(30243): Got
D/ActionBarSherlock(30243): name: org.nick.wwwjdic.AboutActivity
D/ActionBarSherlock(30243): Got
D/ActionBarSherlock(30243): taskAffinity:
D/ActionBarSherlock(30243): name: org.nick.wwwjdic.DictionaryResultList
D/ActionBarSherlock(30243): Got
D/ActionBarSherlock(30243): name: org.nick.wwwjdic.DictionaryEntryDetail
D/ActionBarSherlock(30243): Got
D/ActionBarSherlock(30243): name: org.nick.wwwjdic.KanjiResultList
D/ActionBarSherlock(30243): Got
D/ActionBarSherlock(30243): name: org.nick.wwwjdic.ExamplesResultList
D/ActionBarSherlock(30243): Got
D/ActionBarSherlock(30243): uiOptions: 0x1
D/ActionBarSherlock(30243): name: org.nick.wwwjdic.SentenceBreakdown
D/ActionBarSherlock(30243): theme: @2131427418
I/ActionBarSherlock(30243): Returning 1
D/ActionBarSherlock(30243): [hasFeature] featureId: 8
D/ActionBarSherlock(30243): [hasFeature] returning true
D/ActionBarSherlock(30243): [hasFeature] featureId: 1
D/ActionBarSherlock(30243): [hasFeature] returning false
D/ActionBarSherlock(30243): [getActionBar]
D/ActionBarSherlock(30243): [initActionBar]
D/ActionBarSherlock(30243): [dispatchOnPostCreate]
D/ActionBarSherlock(30243): [dispatchTitleChanged] title: WWWJDIC for Android, color: 0
D/ActionBarSherlock(30243): [dispatchPostResume]
V/TtsService(29746): TtsService.onCreate()
V/TtsService(29746): About to load /data/data/com.marvin.espeak/lib/libttsespeak.so, applyFilter=false
E/ActivityThread(29746): Failed to find provider info for com.marvin.espeak.providers.SettingsProvider
I/TextToSpeech.java(30243): initTts() successfully bound to service
D/ActionBarSherlock(30243): [dispatchInvalidateOptionsMenu]
D/ActionBarSherlock(30243): [callbackCreateOptionsMenu] menu: com.actionbarsherlock.internal.view.menu.MenuBuilder@407f0560
D/ActionBarSherlock(30243): [getMenuInflater]
D/ActionBarSherlock(30243): [getActionBar]
D/ActionBarSherlock(30243): [initActionBar]
D/ActionBarSherlock(30243): [callbackCreateOptionsMenu] returning true
D/ActionBarSherlock(30243): [callbackPrepareOptionsMenu] menu: com.actionbarsherlock.internal.view.menu.MenuBuilder@407f0560
D/ActionBarSherlock(30243): [callbackPrepareOptionsMenu] returning true
W/KeyCharacterMap(30243): No keyboard for id -1
W/KeyCharacterMap(30243): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
V/TtsService(29746): TtsService.setLanguage(eng, USA, )
E/eSpeak Engine(29746): lang input param: eng country input param: USA
E/eSpeak Engine(29746): Language: en-rUS
I/SynthProxy(29746): setting speech rate to 100
E/eSpeak Engine(29746): eSpeak isLanguageAvailable: eng
V/TtsService(29746): About to load /data/data/jp.kddilabs.n2tts/lib/libttsn2.so, applyFilter=false
D/ActionBarSherlock(30243): [dispatchInvalidateOptionsMenu]
D/ActionBarSherlock(30243): [callbackCreateOptionsMenu] menu: com.actionbarsherlock.internal.view.menu.MenuBuilder@407f0560
D/ActionBarSherlock(30243): [getMenuInflater]
D/ActionBarSherlock(30243): [callbackCreateOptionsMenu] returning true
D/ActionBarSherlock(30243): [callbackPrepareOptionsMenu] menu: com.actionbarsherlock.internal.view.menu.MenuBuilder@407f0560
D/ActionBarSherlock(30243): [callbackPrepareOptionsMenu] returning true
I/ActivityManager( 172): Displayed org.nick.wwwjdic/.SentenceBreakdown: +485ms
```