Tech tip of this week

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