jjzjj

AppCompatResources

全部标签

java - ResourcesCompat.getDrawable() 与 AppCompatResources.getDrawable()

我对这两个API有点困惑。ResourcesCompat.getDrawable(Resourcesres,intid,Resources.Themetheme)ReturnadrawableobjectassociatedwithaparticularresourceIDandstyledforthespecifiedtheme.Varioustypesofobjectswillbereturneddependingontheunderlyingresource--forexample,asolidcolor,PNGimage,scalableimage,etc.PriortoAPI