I created a custom view and added it to my layout in the xml file. I’m trying to refresh the custom view with a click event but I can’t figure out how to call the onDraw method from a different class. invalidate and postInvalidate aren’t refreshing the custom view.
Share
You should create method inside your view which takes the changes and calls invalidate from the inside of your view.
Works perfectly for me.