Skip to content
This repository was archived by the owner on Apr 19, 2018. It is now read-only.
This repository was archived by the owner on Apr 19, 2018. It is now read-only.

ActionBar Height is double in landscape on GT-S5360 2.3.6 #1117

Description

@Loda

Steps:

  • use setRequestedOrientation()
  • rotate the screen from portrait to landscape

Observed :

  • action bar height is double as when in portraite.

issue actionbar double height

expected:

  • action bar height remain the same.

Workaround tested:

Config:

  • ActionBarSherlock manifest: android:versionCode="100" android:versionName="4.2.0"
  • ActionBarSherlock pom : com.actionbarsherlock4.3.1
  • The issuereproduce on device GT-S5360 2.3.6
  • the issue don't reproduce on any otyher device I got, including GT-S583i 2.3.6 or terminal with 4.x
  • My app got one activity and various fragment. (the Navigation change the current fragment)

Manifest:

- I do NOT use "android:configChanges=" in the manifest

<application
    android:theme="@style/Theme.Sherlock.Light" >

    <activity
        android:name=".MainActivity" 
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

Code:

    public class MainActivity extends SherlockFragmentActivity {

        /**called by the onResume of the fragment.*/
        public void onCurrentFragmentChange(BaseDelegate currentFrag){
            // depending the fragment/terminal, the activity may rotate or not.
            setRequestedOrientation(currentFrag.getRequestedScreenOrientation());

            actionbar_loadNavigationList(currentFrag); // call _mActionBar.setListNavigationCallbacks(null or adapter)
            updateActionBar(currentFrag, currentFrag.isOrientationLandscape()); // call _mActionBar.setNavigationMode(list for portrait, none for landscape); invalidateOptionsMenu() and _mActionBar.setTitle()
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions