Android's Powerful Scroll Control--RecylerView

The use of RecyclerView is more complex than that of ListView. The use of ListView is five steps, while our use of RecyclerView has seven steps, namely: 1. Add compile'com.android.support.recyclerview-v7:x x.x.x'to dependencies closure in build.gradle of the current project (x is the latest version) 2. Layout add RecyclerView control and ...

Posted on Wed, 29 May 2019 15:16:41 -0400 by rhosk

RN From Beginning to Abandoning

RN From Beginning to Abandoning Preface: react-native is not a new technology compared to the recent flying flutter. Facebook was open source in 2015 and has been under maintenance for 45 years, but v1 version has not been released so far, and has been updated to 0.59.The technical goal is to achieve native applications across platforms.Number ...

Posted on Wed, 29 May 2019 13:20:42 -0400 by Iokina

You can also write your own cute-bourgeois Android load waiting for custom View

Preface In Android development, the need to load and wait is very common. This article will teach you how to make a cute & petty style loading wait Android custom View control, I hope you will like it. Open source in Github: Kawaii_LoadingView Welcome to Star! Catalog 1. introduction A Lovely, Fresh & Small-capitalist ...

Posted on Wed, 29 May 2019 09:28:23 -0400 by retoknaak

Explain the intricate relationship between Window s, Activity, DecorView and ViewRoot

As for the presentation of View View in Android, what we usually see most is that it is displayed in Activity through setContentView(R.layout.activity_main); settings. However, the display of views is not done by Activity, which involves Window s, DecorView and ViewRoot. The interaction between the four is complex, and the display ...

Posted on Wed, 29 May 2019 09:00:06 -0400 by maciek4

ViewRootImpl Source Parsing Event Distribution Mechanism

The previous talks about View and Windows Manager and ViewRootImpl only talked about how ViewRootImpl triggered View drawing, but the function of ViewRootImpl is not just drawing. This article focuses on the event distribution function of ViewRootImpl. Of course, you must be familiar with event distribution, but the event distribu ...

Posted on Wed, 29 May 2019 06:26:21 -0400 by Seaholme

Android Tour - ARouter Source Analysis (2)

Beautiful scenery is always good Android Tour - ARouter Source Analysis (1) This paper mainly introduces the basic principle of ARouter starting activity. Let's look at what we did around-compiler at compile time introduce Take a look at router-compiler and build.gradle first // build.gradle // Note here that you cannot use com.android.lib ...

Posted on Tue, 28 May 2019 12:09:41 -0400 by frog_

Use of Retrofit - Introduction

Introduction to Retrofit Retrofit is an Android and Java REST client library developed by Square. The official explanation is an http client for Android and Java type security. Generally speaking, Retrofit is a third-party library used in Android to request network. Its essence is to encapsulate okhttp, which makes our development more convenie ...

Posted on Mon, 27 May 2019 18:30:16 -0400 by Dilb

Reflection mechanism in java/android

Ps: Recently, we are studying thermal repair technology, which uses reflection mechanism, so review it and make a record. What is reflex mechanism Personal understanding is to obtain all the information in the class (including variables, methods, interfaces) through decompilation for developers to use. Advantages and disadvantages ...

Posted on Mon, 27 May 2019 17:52:39 -0400 by danf_1979

Android 7.0 Power Manager Service (3) Core function updatePowerStateLocked's main process

Android 7.0 Power Manager Service (3) Core function updatePowerStateLocked's main process In the previous blog, we have analyzed that when a process in Android wants to use its power, it needs to apply to PMS for WakeLock; when the process completes its work, it needs to release the corresponding WakeLock. When PMS receives the request for a ...

Posted on Mon, 27 May 2019 17:14:29 -0400 by dfwcomputer

Chain Family Recruitment for Beijingwai Written Test Paper (Android R&D Engineer) in 2018

Written in front I haven't blogged for a while. Most recently, they are studying Android in depth and preparing for school enrollment. _has Take advantage of the leisure of the opening of school these days, comb out the written questions of Chain Home made on Saturday evening. _Chain home information is indeed the first in the country, I ...

Posted on Mon, 27 May 2019 16:16:04 -0400 by edwardtilbury