Updating only a portion of View without using invalidate(Rect)
问题 In my current application I am using invalidate(Rect) to update a portion of my current view but as of API 28 this method is deprecated. So my questions are: 1.Are there any other way to update only a portion of view? 2.What are the consequences of using a deprecated method? 回答1: According to the android documentation, just call the invalidate() method as the redrawing area is calculated internally. From view docs This method was deprecated in API level 28. The switch to hardware accelerated