How can I force IDEA to always start Android resource references with R.?
When I use IDEA to insert an Android resource for use in my code, for example
textView.setText(R.string.my_text),
it changes the statement to
textView.setText(string.my_text)
It's not a big deal to me that it changes the import to com.<company>.R.string, but then the Lint inspector doesn't see those strings as used. The Lint inspector seems to require the R. prefix in order to accurately detect usage.
Any ideas?
Thanks!
请先登录再写评论。