You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was trying to create a drawable icon in a kotlin project:
val test1 =MaterialDrawableBuilder.with(applicationContext)
.setIcon(MaterialDrawableBuilder.IconValue.WEATHER_RAINY)
.setColor(Color.WHITE)
val test2 = test1.build()
Then Android Studio show a error: Type net.steamcrafted.materialiconlib.MaterialDrawableBuilder.MaterialDrawable! is inaccessible in this context due to: net.steamcrafted.materialiconlib.MaterialDrawableBuilder.MaterialDrawable!
I was only import net.steamcrafted.materialiconlib.MaterialDrawableBuilder
Is this a bug or my mistake?
Hope someone can solve this problem, very thanks!
The text was updated successfully, but these errors were encountered:
You also need to chain the build method, you can't save the intermediate builder, the intermediate representation class was made private to prevent anyone from doing that.
When I was trying to create a drawable icon in a kotlin project:
Then Android Studio show a error:
Type net.steamcrafted.materialiconlib.MaterialDrawableBuilder.MaterialDrawable! is inaccessible in this context due to: net.steamcrafted.materialiconlib.MaterialDrawableBuilder.MaterialDrawable!
I was only import
net.steamcrafted.materialiconlib.MaterialDrawableBuilder
Is this a bug or my mistake?
Hope someone can solve this problem, very thanks!
The text was updated successfully, but these errors were encountered: