8

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:

ahodder
  • 11,353
  • 14
  • 71
  • 114
  • Please look into this, it may help you. http://stackoverflow.com/questions/14964939/remove-done-button-of-actionmode/17144854#17144854 – paibhavesh Jun 17 '13 at 10:13

2 Answers2

11

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.

sriramramani
  • 1,088
  • 1
  • 9
  • 8
3

if you use ABS, this can help you

<string name="abs__action_mode_done"></string>
Preetam
  • 5,528
  • 10
  • 32
  • 39