Network loading framework OkHttp

1. What is OkHttp github address: https://square.github.io/okhttp/ An open source project for processing network requests contributed by Square is the most widely used network framework for Android. Starting with Android 4.4 The underlying implementation of HttpURLConnection adopts OkHttp. 1. Support HTTP/2 and allow all requests to the ...

Posted by dprichard on Sat, 30 Oct 2021 12:08:34 -0700

Android tutorial | UI layout RelativeLayout relative layout

home pagespecial columnandroidArticle details0Android tutorial | UI layout RelativeLayout relative layoutAndroid_ An Zi Published 3 minutes agoRelativeLayout overviewRelativeLayout inherits from android.widget.ViewGroup and completes the layout according to the position relationship between child elements. As the most flexible and commonly used ...

Posted by djcee on Sat, 30 Oct 2021 05:22:58 -0700

Android Getting Started tutorial ๐ž“œ DrawerLayout sidebar

DrawerLayout is a control that implements the sideslip menu effect. DawerLayout is divided into two parts: side menu and main content area: The main content area should be placed in front of the side menu. In addition, the main content area should preferably take the DrawerLayout as the root layout of the interface, otherwise the touch event ...

Posted by alco19357 on Sat, 30 Oct 2021 03:04:10 -0700

Animation and transition, advanced view Animation: extend the definition of animation

Android animation and overview mainly covers the following contents: Animation and transition (I). Overview and use of view animation Animation and transition (II). Advanced view Animation: extend the definition of animation Animation and transition (III), interpolator and estimator overview and use Animation and transition (IV). Use Layout ...

Posted by JMJimmy on Fri, 29 Oct 2021 08:29:47 -0700

Implement text buffer

The role of data structures and algorithms Functions provided: such as add, delete, set Previous data structure The editor's thinking model is line basedDevelopers read and write source code line by lineThe compiler provides row / column based diagnosticsStack traces contain line numbers, tag engines run line by line, and so on When enterin ...

Posted by terry2 on Fri, 29 Oct 2021 01:27:50 -0700

Android SMB realizes data transmission from mobile phone to computer in a few simple steps

What is SMB SMB, namely "Server Message Block" server information block, is a network file sharing protocol. It can be used for Web connection and information communication between client and server, allowing applications and end users to access file resources from remote file servers. SMB communication protocol is an agreement form ...

Posted by puzzle on Thu, 28 Oct 2021 10:09:08 -0700

Android advanced decryption reading notes -- the startup process of four components

Startup process of root Activity There are two types of Activity startup: one is the startup process of root Activity, and the other is the startup process of ordinary Activity. Root Activity refers to the first Activity started by the application, so the startup process of root Activity can also be understood as the startup process of the app ...

Posted by digitalflash on Wed, 27 Oct 2021 16:06:02 -0700

Analysis of EventBus principle

Analysis of EventBus principle 1, Overview As we all know, EventBus is used for data communication within app, which can achieve good decoupling effect. The traditional broadcast or callback mode has the characteristics of high code coupling, messy code and not suitable for maintenance. EventBus uses the subscriber / publisher mode, with conc ...

Posted by fonster_mox on Tue, 26 Oct 2021 01:26:57 -0700

"21 days of good habits" phase I-4

I learned BroadcastReceiver from my teacher today. Let's record it. Send standard broadcast (use static registration, that is, manually write the registration code in AndroidManifest.xml) Take a look at my project structure ย  The MainActivity code is as follows import android.content.ComponentName; import android.conten ...

Posted by jb489 on Mon, 25 Oct 2021 16:05:37 -0700

Jump between Android app development activities (job 2)

Jump between Android app development activities (job 2) Purpose of the experiment: (1) Click and jump the page with recycleView. For example, if a tab page is a news list, click a line to jump to the news details page; (2) The basic principle of this assignment is to understand the life cycle of activity and state transition operation; 1, ...

Posted by raister on Mon, 25 Oct 2021 05:44:03 -0700