There are loads of default resources in android. I want to use the android.R.string.cancel and android.R.string.ok.

I can do this in code easily enough

getString(android.R.string.cancel)

but how do do it in the layout.xml

@string/cancel

Tried a few things

@android.R.string/cancel
@android.string/cancel

but these do not work. I'm sure I have seen this on dev tutorials, but can't find it all now.

Edit
Report