Answer the question
In order to leave comments, you need to log in
How to find the cause of incorrect behavior of Contextual action bar?
The problem is that in Genymotion, Samsung GT-I8730 and Sony - Xperia Z3 the contextual action bar is displayed correctly:
And on Samsung Galaxy Note 2 and S4 it stretches to full screen:
Has anyone encountered such a problem? In which direction to dig?
Answer the question
In order to leave comments, you need to log in
I found the reason on Stackoverflow - a bug with the action mode style in some Samsung firmware. The solution from the link did not work, but I managed to defeat the bug as follows:
Created a basic style
<style name="Widget.ActionMode">
<item name="android:background">?android:attr/actionModeBackground</item>
<item name="android:backgroundSplit">?android:attr/actionModeSplitBackground</item>
<item name="android:height">?android:attr/actionBarSize</item>
<item name="android:titleTextStyle">@android:style/TextAppearance.Widget.ActionMode.Title</item>
<item name="android:subtitleTextStyle">@android:style/TextAppearance.Widget.ActionMode.Subtitle</item>
</style>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question