Is it possible to write a reference to an xml file in a variable?

For example, on the animation file R.anim.alpha_anim .

If so, what type should this variable have?

  • four
    Variable of type int. This can be easily seen if you look at the parameters of the method, for example, loadAnimation() getResources().getIdentifier()
  • Exactly, it was obvious) - Doraemon

0