Android开发之 -- 一句代码获取安卓drawable中图片的宽高
Drawable drawable = ContextCompat.getDrawable(getContext(), R.drawable.xxx); int intrinsicWidth = drawable.getIntrinsicWidth(); int intrinsicHeight = drawable.getIntrinsicHeight();
仅做记录!
本文来自博客园,作者:稻草人11223,转载请注明原文链接:https://www.cnblogs.com/hero11223/p/16810562.html