Android development @ IntDef perfectly replaces Enum (enumeration)

outline Enum is a type containing fixed constants in java. When we need to define some values in advance, we use enum. This is usually done to avoid errors caused by accepting additional constants at compile time. Moreover, Enum increases the size of APK and uses 5 to 10 times more memory than constant, which is the best practice on applicati ...

Added by methyl_blue on Fri, 04 Feb 2022 11:16:36 +0200

Synchronous comparison of Chinese version of beeware tutorial

Mobile phone code words are easy to make mistakes and leak. Some links are difficult to add. Go back and touch the computer and change it. Please forgive me for the time being Product Name: Bee set Ingredients: toga, briefcase, rubicon objectc, rubicon java 😂 Another fatal weakness is that all his files have to be downloaded from the net ...

Added by funguse on Thu, 03 Feb 2022 20:40:18 +0200

Flutter - Fundamentals Chapter 2

Introduction to Flutter catalog 1, Introduction to directory structure 2, Fluent entry file and entry method // main.dart void main(){ runApp(MyApp()); } // It can also be abbreviated void main() => runApp(MyApp()); /*There is a main in the lib directory of each fluent project Dart is the entry file of fluent The main method is t ...

Added by newburcj on Thu, 03 Feb 2022 15:49:05 +0200

apk safety reinforcement, shelling and shelling Technology

In order to increase the security of apk and prevent it from being decompiled and cracked (for example, the commonly used decompile tool jadx GUI). During the development of apk, the developer will work on the project Proguard rules After the confusion commonly used by google is added to the pro file and encrypted and packaged with the key alia ...

Added by Chrisww on Thu, 03 Feb 2022 11:52:35 +0200

ViewPager implements the second section of an automatic rotation chart

The general framework of the viewpager in the previous section has been set up. We found that there is a rotation picture, that is, it can't rotate automatically, and can only slide left and right manually, and it can't slide indefinitely. If you slide to the beginning and end in order, you can't move. Next, we'll realize how to make the pictur ...

Added by whir on Thu, 03 Feb 2022 07:31:46 +0200

Window Insets for Android Compose

Window Insets for Android Compose In addition to the content area of the app, some other fixed elements will be displayed on the mobile phone screen, including the status bar at the top, bangs, navigation bar at the bottom, and input method keyboard, They are the UI of the system, also known as Insets As shown in the figure: The status bar at ...

Added by dietkinnie on Thu, 03 Feb 2022 03:44:49 +0200

Android floating ball source code [long press judgment, multiple click judgment, automatic edge]

To realize the suspended ball, we need to understand Winodw and WindowManagerSerivce Version: Android 10 Android studio version: 2020.3.1 Targetversion: 30 (26 +) Gradle version during development; com.android.tools.build:gradle:7.0.0 Application permission: ACTION_MANAGE_OVERLAY_PERMISSION Effect achieved: Short pressIt can be pressed ...

Added by miltonos on Wed, 02 Feb 2022 20:48:06 +0200

jetpack must know how to use three basic Lifecycle

In daily development, some time-consuming tasks or objects need to be associated with some life cycles of Activity or Fragment to release resources or schedule tasks. Our usual practice is to execute the relevant code in the corresponding life cycle function, but this will lead to the need to write a lot of template code, and life cycle managem ...

Added by ediehl on Wed, 02 Feb 2022 16:48:07 +0200

Android: use system services to set system volume

system service The Service written by the user is a background application Service program, which is located in the application layer of Android system. Relatively speaking, System Services can be regarded as the built-in software of Android system. It is the system background Service program running with the startup of the operating system u ...

Added by volleytotal.ch on Wed, 02 Feb 2022 05:47:32 +0200

Usage of Android VirtualDisplay and click event problems encountered

preface Recently, I was looking at the problems related to Android multi screen, and initially came into contact with some things of DisplayManager. Android supports multiple screen displays. The screen of the mobile phone is the main screen, and the screen connected through HDMI, usb and wifi is the external display. Another is the Api provid ...

Added by NeoPuma on Tue, 01 Feb 2022 16:31:55 +0200