Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は疑問に思っていました.xmlでanimationdrawableを定義することと、コードでanimationdrawableを動的に作成することの間にメモリに関する違いはありますか?
私が受け入れることができる答えがなかったので、これが言われたことです(そして何が正しいか)。 xml で AnimationDrawable を作成するか、コードで動的に作成するかに違いはありません。xml で作成した場合、Android のフレームワークはバックグラウンドで AnimationDrawable を動的に作成します。