java code customization for Android product customization (an Activity in the same application uses different java code)

Preface As we mentioned in the previous article, we can customize different versions of our implementation to use different resource files, so can we customize different java source code as well?Yes, it's not very difficult, but the steps are slightly more cumbersome than just customizing the resource file. Custom Notice Alt ...

Added by jeremy0 on Wed, 15 May 2019 19:02:18 +0300

PathMeasure Tool Class for Simple Use

Preface Path animation is a very useful way to achieve animation, using SVG can easily achieve the effect of path animation, but the version required by SVG is relatively high, many applications can not fully support it at present. The PathMeasure tool class provided in Android system can calculate the length of the path, get ...

Added by marijn on Tue, 14 May 2019 19:32:44 +0300

Eclipse android project to android studio

The old project of the former company was developed with eclipse. Although android studio has been out for a long time, it has been trying to avoid some problems in migration, but recently Google has asked that android projects be compiled with android 8.0. Then it is found that eclipse+ADT no longer supports jdk 1.8 and androi ...

Added by lajocar on Tue, 14 May 2019 19:19:56 +0300

Activation Code Verification Code Input Box for Custom view

Two days ago, I received a project. In the project, I need to customize an activation code input box, which is similar to the square input box of a drip taxi. Then I thought about how to do this input box. I finally got it today. The input box receives the number of customized input boxes, the width of the input box, the partit ...

Added by kratsg on Tue, 14 May 2019 18:45:47 +0300

One of the easiest ways to restrict input for Android

Today brings a small Amway in the work, product requirements for user name input need to be limited, can only be digital and alphabetic, symbols, can not contain spaces and keyboard input emoji. Start to get this demand, I think to add an addTextChangedListener to EditText, which makes a variety of judgments on OK! Haha, and can play happily. ...

Added by horizontal on Tue, 14 May 2019 16:39:19 +0300

Android System Performance Optimization (52) - - Mobile Performance Monitoring Scheme Hertz

Mobile Performance Monitoring Scheme Hertz Performance issues are one of the main causes of App user churn. App's performance problems include crashes, network request errors or timeouts, slow response, list scrolling cartons, high traffic, power consumption, and so on. There are many reasons for the poor performance ...

Added by swizenfeld on Sun, 12 May 2019 14:54:53 +0300