Secondary encapsulation of paging data source and my current understanding

To be honest, the definition of paging data source is too tedious, so it's encapsulated twice, without any intrusion, clean and neat. It's preserved for the time being, maybe it can be used in my life.. package com.lk.care.respository import androidx.paging.DataSource import androidx.paging.PageKeyedDataSource import androidx.paging.PagedList ...

Posted by sy-co on Wed, 03 Jun 2020 06:58:43 -0700

How to identify and read American driver license information on Android devices

According to the American Association of motor vehicle managers (AAMVA https://www.aamva.org/DL-ID-Card-Design-Standard/ )According to the regulations of PDF417, the US driver's license uses PDF417 code, as shown in the following figure: Google Mobile Vision SDK The Google service supports driver license resolution. You can find the correspond ...

Posted by colinexl on Tue, 02 Jun 2020 08:32:46 -0700

RadioGroup implements ios-like Segmented Control controls

In ios7, there is a flat style control called SegmentedControl, which is divided into rows with several buttons separated by simple lines. Only one button can be selected per click. It is similar to tabbar but slightly different. This control is used by new qq mobile client. However, there are no ready-made controls available in android, but th ...

Posted by Unknown User on Mon, 01 Jun 2020 10:09:04 -0700

Using attribute animation to realize the animation effect of starlight

In Android, attribute animation is a very interesting function to control the animation effect of parameter transformation Compared with gif image, animation controls need to save space and increase response speed main points: (1) Use PercentLayout to set the size of custom controls (2) The two important functions of attribute animation are ...

Posted by mauri_gato on Sun, 31 May 2020 09:14:52 -0700

Andropoda fit exploration

Android adaptation has always been a big hate of Android developers. Fortunately, Android 5.0 provides a universal adaptation method. For details, please refer to Zhang Hongyang's universal adapter. However, it doesn't necessarily work for the development of TV or the Internet of things in the current fire, because the companion machine of the ...

Posted by Crazy-D on Sun, 31 May 2020 07:37:35 -0700

Vertically scrolling ViewPager--VerticalViewPager

VerticalViewPager a vertical scrolling ViewPager Inherited from ViewPager, it has the same usage as ViewPager, including adapter, listening, but the sliding direction is different. Occasionally, we will find that viewpager wants to slide vertically, but the official doesn't provide a method. We found this on stack overflow, which can perfectl ...

Posted by hush2 on Sun, 31 May 2020 00:55:56 -0700

Recycle view's checkBox reuse disorder solution

Solution to the problem of recycle view reuse disorder Achieving results Single item selection with checkBox After killing the application in the background, enter the application again to display the options when killing the application in the background Problem description Because recyclerView adopts the reuse strategy, when refreshi ...

Posted by BinaryBird on Sat, 30 May 2020 23:01:19 -0700

Android | super simple integration HMS ML Kit for maximum face smile capture

preface    if you have some knowledge of the face detection function of HMS ML Kit, I believe you have manually called the interface provided by us to write your own APP. At present, there are feedback from small partners in the process of calling the interface. It is not clear how to use the interface mlmaxsizefacetransportor in the ...

Posted by whizzykid on Mon, 25 May 2020 09:20:06 -0700

Custom View - Scan dial with rotation animation

In general, many APP s have a novice-guided process after the first installation starts, but each uses a different approach.Recently, when I did this, I no longer made wheels [I couldn't actually make it myself...) Find a more beautiful framework for beginners'guidance layer. Introduction to TourGuide A framework ...

Posted by auro on Sat, 23 May 2020 10:31:27 -0700

Multichannel packaging of a suite of code in Android Studio

A set of code does the following: Packaging different applicationId s can be installed on the same phone at the same time Different logo, app name, Different third-party SDK access configurations (e.g. WeChat sharing appid, laser push appkey) Ability to distinguish debug from release configurations Functions used: productFlavor and buildTypes ...

Posted by WindChill on Sat, 23 May 2020 10:26:31 -0700