How do you change the 'Done' text in a CAB?
Asked Answered
K

2

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:

Keening answered 29/10, 2012 at 18:0 Comment(1)
Please look into this, it may help you. #14965439Skyros
B
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.

Bedraggle answered 4/11, 2012 at 19:58 Comment(1)
perhaps this should be a feature request for the next version of the SDK?Freighter
J
3

if you use ABS, this can help you

<string name="abs__action_mode_done"></string>
Joellenjoelly answered 7/12, 2012 at 10:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.