Encapsulate a tool to delete useless resource files at will

Encapsulate a tool to delete useless resource files at will Train of thought: Export a txt file with lint log through lint command Filter out all useless resource files by reading the "[UnusedResources]" field in it Files can be deleted directly - drawable-mdpi - drawable-hdpi - drawable-xhdpi ...

Posted by RedDragon on Fri, 31 Jan 2020 09:35:06 -0800

Android native integration React Native

1. Create an empty directory RNDemo 2. Create a subdirectory android in RNDemo 3. Copy the android project to the subdirectory android, as shown in the project structure below. 4. Create the package.json file in RNDemo and add the following contents: { "name": "MyReactNativeApp", "version": "0.0.1", "private": true, "s ...

Posted by Minase on Fri, 31 Jan 2020 09:33:06 -0800

Fresco of Android open source framework

brief introduction Fresco is Facebook's latest powerful image library for displaying pictures in Android applications, which can load pictures from network, local storage and local resources. Compared with image loader, it has many advantages, such as faster image download speed and can load and displ ...

Posted by jmrothermel on Fri, 31 Jan 2020 09:15:26 -0800

Android imitates meituan, a modified version of the suspension effect of the purchase box

Please indicate that this article is from xiaamming's blog( http://blog.csdn.net/xiaanming/article/details/17761431 )Please respect the hard work of others, thank you! I wrote an article about meituan.com, the effect of purchase box in public comments Android monito ...

Posted by linda_v on Fri, 31 Jan 2020 04:33:55 -0800

Apply wakelock tool class AlertWakeLock

1. apply the wake lock tool class AlertWakeLock After the mobile phone is dormant, the application's calculation, timing and download may be dormant due to the CPU, resulting in the application itself unable to receive the message, data and broadcast in time. To solve the problem caused by CPU sleep, we can use hold lock to ke ...

Posted by konnwat on Fri, 31 Jan 2020 00:19:05 -0800

Learning Android ConstraintLayout

Advantages: Reduce layout nesting Better performance More powerful Reference blog: Android ConstraintLayout use details ConstraintLayout fully parsed. Let's optimize your layout ConstraintLayout visual operation Performance advantages of ConstraintLayout Introduction steps compile 'com.android.support.constraint:con ...

Posted by new2code on Thu, 30 Jan 2020 23:46:12 -0800

Introduction to Android Development - Common UI controls

date: 2020-01-12 21:46:05 Article directory control Button TextView EditText ImageView ProgressBar AlertDialog ProgressDialog layout LenearLayout android:layout_gravity android:layout_weight RelativeLayout FrameLayout Percentage layout Other Custom control ListView Customizing the ListView UI o ...

Posted by cjmling on Thu, 30 Jan 2020 23:42:42 -0800

AOP of architecture design of centralized landing architecture based on aspect oriented idea

1, Before you start: Centralized login architecture design: this login is not a login request, but a judgment of whether the current login status is available. If it is not, skip the login interface; otherwise, perform the corresponding skip logic. This business is a global business, and the global b ...

Posted by keystroke on Thu, 30 Jan 2020 22:50:33 -0800

UI Interface Design - Android

Android UI Interface Design - with Reference Documents UI Interface Design 1. Basic Components 1. Text class components 1.1 TextView Reference Document docs 1.2 EditText (a subclass of the textview component) 2. Button class components 2.1 Button, a common button component (a subclass of the tex ...

Posted by lajollabob on Thu, 30 Jan 2020 18:38:47 -0800

cordova custom plugin

Preparation Install cordova npm install -g cordova Create cordova project and add android platform cordova create Project name Package name cd Project name cordova platform add android Install plugman npm install -g plugman Create plugin Create a plug-in (this blog demo plug-in name mytoast, package name com.digi ...

Posted by mikegzarejoyce on Thu, 30 Jan 2020 08:26:38 -0800