Brendan Campbell-hartzell
07/09/2022, 3:01 AMR
seems to be available, but it doesn't recognize .string
or .drawable
outside of an Activity class.android.R
which makes .string
and .drawable
accessible, but I can't access any of my custom properties defined in the xml, like I could when inside an AppCompatActivitySean Proctor
07/09/2022, 3:16 AMimport com.example.R
Inside composable functions you can use the function stringResource
to get the string for a resource. You can find more information here: https://developer.android.com/jetpack/compose/resourcesBrendan Campbell-hartzell
07/09/2022, 3:50 AM