Dif*_*ffy 8 android drawable android-drawable
我正在使用Drawable.getConstantState来比较这里提到的两个drawable,但无法理解它的用途.在文档中,它给出了
Return a Drawable.ConstantState instance that holds the shared state of this Drawable
Run Code Online (Sandbox Code Playgroud)
哪个共享状态?
另外,Drawable.ConstantState
is used by Drawables to store shared constant state and data between Drawables
Run Code Online (Sandbox Code Playgroud)
所以我不明白这里的共享状态和存储的数据是什么?它如何帮助比较drawables.
| 归档时间: |
|
| 查看次数: |
1982 次 |
| 最近记录: |