Current Android Release version:
Version Code: Pie
Version: 9
API level: 28

Remove Tick mark from Contextual Action mode bar

   

To remove tick mark from Contextual Action Mode bar(CAB), have to set below code in styles.


<style name="DeviceDefaultTheme" parent="android:Theme.DeviceDefault.Light">
        <item name="android:actionModeCloseButtonStyle">@style/NoCloseButton</item>
</style>
<style name="NoCloseButton"    parent="@android:style/Widget.DeviceDefault.ActionButton.CloseMode">
        <item name="android:visibility">gone</item>
</style>

No comments:

Post a Comment