Skip to content
This repository has been 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

Open
Loda opened this issue Nov 4, 2014 · 0 comments
Open

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

Loda opened this issue Nov 4, 2014 · 0 comments

Comments

@Loda
Copy link

Loda commented Nov 4, 2014

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()
        }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant