Android Notes 1 - Analysis of the View Event Distribution Mechanism

Coo Coo Coo Basically, this article summarizes the chapter on the View event distribution mechanism from the book “Exploring Android Art Development.” A long time ago, Android development notes were too superficial. Brief Introduction As we all know, an event sequence starts with MotionEvent.ACTION_DOWN (press), followed by multiple MotionEvent.MOVE (move) events, and ends with a MotionEvent.ACTION_UP (release). The order of event transmission is: Activity -> Window -> DecorView -> RootView (the View you set)....

August 14, 2019 · 7 min · LingC

The question of Zhihu Daily

The author started developing a third-party Zhihu Daily client during the summer vacation, using the MVP architecture. They encountered some issues, such as global exception handling and JSON parsing, and chose to use Picasso to load images. To solve the problem of images being too wide in the WebView, the author adjusted the image size through JavaScript. In the end, the author completed the basic loading and viewing functions and shared the code on GitHub. Despite the challenges in the development process, the author still enjoyed the experience.

July 4, 2019 · 4 min · LingC