This is using the Rclass that the Android SDK generates for us to represent resources, such as the arrays.xml file.
这是使用 Android SDK 生成的 R 类表示资源,例如 arrays.xml 文件。
2
Should you find the .r transformation method on strings unclear, you can also define regexes by creating new instances of the Regex class, as in: new Regex("""W""").