xutils3 database upgrade (markdown version)

xutils is a good android development framework, which reduces a lot of code in the process of using. But there are also a few things to pay attention to. For other uses, please see Detailed usage of xutils3 1. Notes Unlike the comments of scalpel, the comments of xutils are in runtime (ps: I don't understand either). It is found ...

Posted by jchemie on Sat, 07 Dec 2019 17:16:48 -0800

Make your Dialog more concise

GitHub address Rebuild a dialog with Builder mode. There are two kinds of Builder in the case, CommonBuilder and MDBuilder. If you want to implement other general dialog, you can inherit from FRBaseDialogBuilder. 1. Usage: 1.1 ordinary Dialog private void showCommonDialog() { final FRDialog dialog = new FRDialog.CommonBuilder(this) ...

Posted by gingerboy101 on Sat, 07 Dec 2019 16:13:16 -0800

Kotlin core syntax: higher order functions, Lambda as parameter and return value

Blog Homepage 1. Declare higher-order functions A higher-order function is one that takes another function as a parameter or return value. In kotlin, functions can be represented by lambda or function references.For example, the filter function in the standard library takes a judging function as a parameter, so it is a higher-order function lis ...

Posted by renegade44 on Sat, 07 Dec 2019 10:40:46 -0800

ReactNative[IOS] can't hide keyboard by clicking blank position

Recently, in the requirements of the development project, the test students raised a bug. In the following page, there are three input boxes. On iOS phones, after input, the keyboard cannot be hidden; on Android phones, the keyboard has a stow button, so there is no such problem. Solutions in mind:1. Let the input box lose focus,2. Click the bl ...

Posted by evanesq on Sat, 07 Dec 2019 06:56:36 -0800

Simple use of ViewPager in Android Development

What is ViewPager? ViewPager (android.support.v4.view.ViewPager) is a class in the Android extension package v4. This class allows users to switch the current view left and right to achieve the effect of sliding switch. Before using this class, you must understand: The ViewPager class directly inherits the ViewGroup class, that is ...

Posted by amir1985 on Fri, 06 Dec 2019 18:54:28 -0800

How to judge whether the page is pc or mobile and enter different pages

vue judges whether pc or mobile end enters different pages respectively The mobile terminal code is determined as follows: function IsPC(){ var userAgentInfo = navigator.userAgent; var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"); var flag = true; for (var v = 0; v < Agents. ...

Posted by neuro4848 on Fri, 06 Dec 2019 16:02:03 -0800

Demonstration of using JsBridge

In the development of Android projects, if we need to call the functions in web in Android programs, we can use Jsbridge as a bridge for communication invocation. github code Express Sample demonstration: Jsbridge mutual call demonstration Jsbridge library introduction: implementation 'com.github.lzyzsd:jsbridge:1.0.4' One s ...

Posted by ldomingues on Fri, 06 Dec 2019 13:44:43 -0800

Using encapsulation for ionic3 toastController

1. description toastController is an official message prompt box component provided by ionic, which is used to give feedback and prompt to users after operation.Official website address: https://ionicframework.com/do...The following is the default style. To use it in a project, you need to change many styles, and you need to explain some parame ...

Posted by dstockto on Fri, 06 Dec 2019 11:12:54 -0800

MVC architecture design and three-tier model & the essence and decoupling of MVP

Blog Homepage 1. MVC architecture design and classic three-tier model MVC: model view controller, classic mode, easy to manage. Model: business layer and model layer, entity model and business related code View: view layer, which corresponds to layout layout file in android Controller: control layer, UI operation in android, corresponding to A ...

Posted by rdimaggio on Fri, 06 Dec 2019 08:26:53 -0800

Preview of camera+TextureSurface at the beginning of live video

Today, I'll talk about using camera interface and TextureSurface to preview First look at xml: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com ...

Posted by driverdave on Fri, 06 Dec 2019 03:19:57 -0800