Customize the View and draw the Android radar map with Kotlin

stay Custom View and Radar chart Based on the two blogs, I have made some modifications. Here I summarize my own learning experience. There are several ways to customize the View typedefinitionCustom composite controlMultiple controls are combined into a new control to facilitate multiple reuseInherit system View controlIt inherits from TextV ...

Posted by not_skeletor on Fri, 14 Jan 2022 21:46:18 +0100

Look at layoutinflator, you may have a new understanding this time

This article is also published in my WeChat official account. It can scan the two-dimensional code at the bottom of the article or search for Guo Lin in WeChat. Today, I don't want to talk about some new features and features of Android. I especially want to talk about this old topic: layoutinflator. Now most of my articles are old Android. ...

Posted by tuneout on Tue, 14 Dec 2021 01:11:32 +0100

Advanced Android [2] ten minutes to thoroughly understand the View event distribution mechanism

prefaceAndroid event distribution mechanism is the foundation that Android developers must understandThere are a large number of articles on Android event distribution mechanism on the Internet, but there are some problems: incomplete content, unclear ideas, no source code analysis, complex simple problems and so onToday, I will comprehensively ...

Posted by spider22 on Sat, 06 Nov 2021 14:34:55 +0100

Interpreting the event distribution mechanism of View in Android

Sequence of event distribution Activity->Window->DecorView->ViewGroup->View Type of event ACTION_DOWN,ACTION_MOVE,ACTION_UP,ACTION_CANCEL Usually an event sequence is such an action_ The down event is the starting point of an event, followed by multiple actions_ Down event, followed by ACTION_DOWN, an action may be received in th ...

Posted by tony_l on Tue, 12 Oct 2021 22:08:20 +0200