How do you change the 'Done' text in a CAB?
-
15-07-2021 - |
Question
Android's documentation says a lot about CAB's, but nothing about how to change the text for "Done". Does anyone know how to?
Other Links:
Solution
The layout for "Done" are provided in layout and layout-large folders in the framework. This button can be styled using the attribute android:attr/actionModeCloseButtonStyle
in the activity's theme. The style only covers the android:background
of the button, as mentioned in styles.xml. Also, the string used for "Done" is within Android's scope (@string/action_mode_done
). Hence, the string for the CAB cannot be changed.
OTHER TIPS
if you use ABS, this can help you
<string name="abs__action_mode_done"></string>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow