Resources myResources = getResources ();
CharSequence styledText = myResources.getText (R.string.stop_message);Drawable icon = myResources.getDrawable (R.drawable.app_icon);
int opaqueBlue = myResources.getColor (R.color.opaque_blue);
float borderWidth = myResources.getDemension (R.dimen.standard_border);
Animation tranout = AnimationUtils.loadAnimation (this, R.anim.spin_shrink_fade);
String {} stringArray = myResources.getStringArray (R.array.string_array);
int [] intArray = myResources.getIntArray (R.array.integer_array);
Resources myResources = getResources ();AnimationDrawable rocket = (AnimationDrawable) myResources.getDrawable (R.drawable.frame_by_frame);
Я сравниваю последние два предложения с последующими.Мой вопрос заключается в том, почему AnimationDrawable явно приводится, когда в других приведенных выше примерах приведение не требуется?