Optimize package size - PNG section
background
Compared with JPEG image, PNG image is a lossless image storage format, and there is an additional transparency channel, so in general, PNG image is larger than JPEG image, and PNG image is often the big head of APK image resources, so optimizing the size of PNG image is more rewarding for reducing the volume of packet.
wiki about P ...
Posted by mwmobley on Thu, 05 Dec 2019 12:08:02 -0800
android: map of gaud
Divided into map, location and search (I haven't done navigation yet)
gradle integration is recommended
Add dependency
Add jcenter's warehouse address under the project/build.gradle file
allprojects {
repositories {
jcenter() // Or Maven central ()
}
}
Add dependency under app/build.gradle
android {
defaultConfig {
...
Posted by Operandi on Wed, 04 Dec 2019 09:03:05 -0800
Simple use of VirtualAPK
Steps to introduce VirtualApk:
I. Introduction of virtual APK to host application
1. Add dependency in the build.gradle file of the project:
dependencies {
classpath 'com.didi.virtualapk:gradle:0.9.8.6'
}
The complete gradle file is as follows:
// Top-level build file where you can add configuration options common to all sub-projects/module ...
Posted by darksniperx on Sun, 01 Dec 2019 14:38:17 -0800
RecyclerView -- give you a non-card sliding list
https://www.jianshu.com/p/519bb23987ca
What will you learn after reading this article?
RecyclerView adds a head, a tail, or a view somewhere in the list list
RecyclerView+SwipeRefreshLayout for drop-down refresh
Paging Load Data
List optimization scheme
Use Glide to load pictures, press the back key while sliding, and App c ...
Posted by severndigital on Sun, 01 Dec 2019 12:02:03 -0800
Flutter develops the Dio interceptor to realize the function of token verification expiration
Preface:
Before, I shared the solution of using Retrofit to refresh token invalidation in Android. Now the Flutter project also has the requirement of "token verification is overdue". So I will briefly summarize how to implement the interceptor function of automatically refreshing token and resending request in the Flutter project, h ...
Posted by implications on Mon, 25 Nov 2019 09:23:33 -0800
Gradle Core: Getting Started with Gradle, Life Cycle Exploration, Basic Scripting
After learning Groovy's core grammar, I'll move on to Gradle.
Gradle is a system building tool whose DSL is based on Groovy. Most of its functionality is achieved through plug-ins. If built-in plug-ins do not meet your needs, you can customize your own plug-ins.
Gradle Getting Started and Exploring Life Cycles
We can Reference Documents Get sta ...
Posted by Justin L H on Thu, 21 Nov 2019 18:28:09 -0800
About the use of verticaltablelayout
Now many Android mobile terminals will use the combination of TabLayout+ViewPager. The native only has horizontal layout design. Here is a vertical tablayout control.I use AS, just introduce compile 'q.rorbin: verticaltablelayout: 1.2.5' into gradle
Find this class q.rorbin.verticaltablayout.VerticalTabLayout
setTabHeight set TAB heightSet ind ...
Posted by Tyrant on Mon, 18 Nov 2019 07:54:13 -0800
Installation and use of Gradle
Official website: Gradle installation tutorial portal
I. installation
The installation process of windows and linux is basically the same
1 download the binary Gradle package
2 decompress the package
3 configure the following environment variables according to the compressed package path:
Gradle home configures the installation directory of gr ...
Posted by richcrack on Mon, 18 Nov 2019 06:36:12 -0800
cocoapods installation errors and Solutions
Error in updating pod
rubygems/core_ext/kernel_warn
/Users/joanfen/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError)
from /Users/joanfen/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55: ...
Posted by xcoderx on Mon, 18 Nov 2019 06:09:04 -0800
pipeline Reality under Jenkins Cluster
About Jenkins Cluster
stay Quick Build Jenkins Cluster In this article, we quickly set up a Jenkins cluster with docker. Today we are creating pipeline tasks in this cluster environment to experience parallel tasks under the Jenkins cluster.
environmental information
There are three computers in the cluster environment as follows:
| Host Name | ...
Posted by davo666 on Sat, 16 Nov 2019 12:18:59 -0800