{"provider_name":"Hatena Blog","type":"rich","blog_title":"Qoop's Developers Blog","author_name":"QoopMk","title":"Android ImageView\u306eTintColor\u3092\u5909\u66f4\u3059\u308b","url":"https://qoopmk.hatenablog.jp/entry/2019/11/05/080000","description":"Xml\u304b\u3089\u5909\u66f4 android:tint=\"@color/hoge\" \u30b3\u30fc\u30c9\u304b\u3089\u5909\u66f4 ImageView\u306eTintColor\u3092\u30b3\u30fc\u30c9\u304b\u3089\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u30d0\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306b\u5dee\u7570\u304c\u3042\u308b\u306e\u3067\u30e1\u30e2\u3067\u3059\u3002 API21\u4ee5\u4e0a\u5411\u3051\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u304a\u3051\u3070\u554f\u984c\u306a\u3057\u3067\u3059\u3002 /** * \u753b\u50cf\u306eTintColor\u3092\u8a2d\u5b9a * * @param color \u30ab\u30e9\u30fc */ fun ImageView.setTintColor(@ColorInt color: Int) { ImageViewCompat.setImageTintList(this, ColorStateList.valueOf(color)) } /**\u2026","version":"1.0","provider_url":"https://hatena.blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/Q/QoopMk/20191104/20191104154015.png","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqoopmk.hatenablog.jp%2Fentry%2F2019%2F11%2F05%2F080000\" title=\"Android ImageView\u306eTintColor\u3092\u5909\u66f4\u3059\u308b - Qoop&#39;s Developers Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/QoopMk/","published":"2019-11-05 08:00:00","width":"100%","blog_url":"https://qoopmk.hatenablog.jp/","height":"190","categories":["Android","Kotlin"]}