Application of XML in Android mobile application development (combined with java in android studio)
As we all know, XML files and java files exist together in Android development. We can understand java as a method of creating and defining objects, while XML file is a visual interaction with users (i.e. UI interface). XML includes the following interactive functions: animation video, pictures (transparency, size, position), layout, buttons, t ...
Added by boofboof on Tue, 04 Jan 2022 16:46:55 +0200
Groovy basics of Gradle learning
1, What is Groovy
1. Official website:
http://www.groovy-lang.org/
2. Concept:
It is a dynamic language based on JVM virtual machine. It is very similar to Java in syntax and fully compatible with Java. It can be said to be a very flexible dynamic scripting language
3. Application:
Gradle's build script file is a Groovy script file, which ...
Added by FatalError on Tue, 04 Jan 2022 16:06:02 +0200
The first line of Android code -- Chapter 4 explores fragments
What are the fragments
Fragment is a UI fragment that can be embedded in activities, which can make the program more reasonable and make full use of the space of the large screen. Therefore, it is widely used in tablets.
Use of fragments
Simple use of fragments
Left layout_ fragment. xml
<LinearLayout xmlns:android="http://schemas.andro ...
Added by ditusade on Tue, 04 Jan 2022 14:20:07 +0200
One of Kotlin Coroutine actual combat
What problems does the Android collaboration solve?Handle time-consuming tasks that often block the main threadEnsure that the main thread is safe and that any suspend function is safely called from the main threadExample (asynchronous task)Implement an example of requesting network data: there is a button, a loading and a textview on the page ...
Added by AudiS2 on Tue, 04 Jan 2022 12:37:27 +0200
Advanced Android - system server creates and starts the Installer service
introduction
By the way, if my article is of some help to you, maybe you can take a few seconds to move your finger to vote, thank you, through train Five star praise Come on, encourage each other!
After the system server process executes the startbootstrap services method, it first creates and starts the Installer system service thr ...
Added by robh76 on Tue, 04 Jan 2022 02:58:29 +0200
Implementation of custom View circular progress bar with heartbeat animation effect!
Today, let's implement a custom view progress bar with a gap, with a heartbeat animation effect
Take a look at the effect of the screenshot
When it comes to custom view s, we need to implement the onDraw() method to operate the Canvas parameters it carries, and draw the layout style we want through the drawXXX() series of methods.
How to re ...
Added by Deviants on Mon, 03 Jan 2022 20:35:11 +0200
Thoroughly understand the drawing process of Android View
preface
To become an excellent Android Developer, you need a complete Knowledge system , here, let's grow up as we think~
As we all know, PhoneWindow is the most basic window system in the Android system, and each Activity will create one. At the same time, PhoneWindow is also an interface for interaction between Activity and View systems. De ...
Added by Northern Flame on Mon, 03 Jan 2022 17:47:41 +0200
Drag and drop sharing - Android R
1. App layer implementation
Here, take two imageviews as examples to realize the function of dragging pictures from one ImageView to another
1.1 drag to start ImageView
Uri imageUri = getFileUri(R.drawable.image, "image.png"); // Constructing the uri of an image
ImageView imageView = (ImageView) view.findViewById(R.id.image_ ...
Added by universelittle on Mon, 03 Jan 2022 16:58:31 +0200
Android learning notes - Services
Backstage silent workers
01 service
service is a solution to realize the background running of programs in android It is suitable for performing tasks that do not need to interact with users and require long-term operation
the operation of the service does not depend on any other user interface. Even if the program is switched ...
Added by keithschm on Mon, 03 Jan 2022 11:58:35 +0200
Screen out process - Android R
PhoneWindowManager responds to the power key
First, press the power key and then call frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.. Interceptkeybeforequeuing method of Java:
// TODO(b/117479243): handle it in InputPolicy
/** {@inheritDoc} */
@Override
public int interceptKeyBeforeQueueing(Ke ...
Added by firmolari on Mon, 03 Jan 2022 11:27:04 +0200