Using PhotoView to view pictures

The project needs to realize the function of picture viewing. Using ImageView can't scale, using the system's picture viewer can't meet their own customized needs, so I used Viewpager + PhotoView to realize it. Introducing PhotoView Github link for PhotoView , PhotoView is designed to help developers easily scale Android ImageView. 1. Conf ...

Added by yanisdon on Thu, 30 Apr 2020 17:22:01 +0300

Asymmetric encryption algorithm in PHP

PHP uses asymmetric encryption algorithm (RSA) In the daily design and development, in order to ensure the security of data transmission and data storage, the clear data can be encrypted into complex ciphertext by specific algorithm. At present, the mainstream encryption methods can be roughly divided into one-way encryption and two-way encryp ...

Added by czukoman20 on Tue, 21 Apr 2020 06:17:09 +0300

RxHttp, a more elegant protocol experience than Retrofit

1. Preface Hello, you little friends, have met again. Looking back, RxHttp We are about to have our anniversary birthday (launched in April 19). This year, we have come over with sincerity.... Sincerity is not easy. Code maintenance, writing articles, writing documents, etc. are often done after zero o'clock. It is also the first time that I sp ...

Added by Jordi_E on Mon, 20 Apr 2020 19:24:27 +0300

Use fonts in Android O XML

Use fonts in Android O XML 2017/9/25 20:14:35 Android 8.0 introduced a new feature, fonts in XML, that allows you to use fonts as resources.This means that you no longer need to bundle fonts as assets.Fonts are compiled in R files and, as a resource, are automatically used on the system.You can then access these fonts using a new resour ...

Added by bios on Sun, 19 Apr 2020 19:35:47 +0300

Literal operation database

Litepal is an open-source Android database framework. It uses the object relational mapping (ORM) mode to encapsulate some database functions that we usually use. Add dependent file compile 'org.litepal.android:core:1.6.1'Object relational mapping (ORM): the programming language we use is the object-oriented language, and the database we use ...

Added by geetakhurana on Mon, 13 Apr 2020 19:25:04 +0300

OpenGL ES 3. OBJ file rendering

Hello, next I will introduce OpenGL ES 3. OBJ file rendering. The previous section introduces the OBJ file and its text structure. Next, it introduces how to load the OBJ file into memory and render it through OpenGL. 1. OBJ file parsing class Because OBJ text files are stored according to certain rules (see the previous section for de ...

Added by TalonFinsky on Wed, 08 Apr 2020 11:26:19 +0300

[learn Java notes from scratch] Set class and Map class

You can pay attention to the author's account and the Java notebook from scratch. You can also go to the author's blog Garden to learn from the catalog. This film will be based on the black horse programmer job class video for learning and data sharing, and take notes and their own views. Welcome to study and discuss together. [learn Java note ...

Added by rowman on Tue, 07 Apr 2020 21:34:41 +0300

Research on the dynamic update scheme of Android multi language

This article starts with WeChat official account of vivo Internet technology. Links: https://mp.weixin.qq.com/s/jG8rAjQ8QAOmViiQ33SuEg Author: Chen Long Recent projects need to support dozens of languages. Many small languages seem to be the same as garbled code in the eyes of people who don't know them. Translation is generally transl ...

Added by liamloveslearning on Tue, 07 Apr 2020 13:20:15 +0300

Android message processing mechanism: Several overload methods of sendMessage() method in Handler

Use sendEmptyMessage(int what) in Handler to send message Click the button to send the message and process the message in the Handler. Only one message with the what attribute is sent. case R.id.button1: new Thread(new Runnable() { // Check the Handler's api, which has several ways of sendMessage() ...

Added by peerData on Sun, 05 Apr 2020 14:39:40 +0300

Android camera, picture library for pictures

In your APP, you often get pictures from your mobile camera and gallery. The encapsulation method here is convenient for you. It solves the acquisition method of Android 7.0 resource uri. It is compatible with machines above SDK19, and has the authority to request integration. Welcome to use it off the shelf, and comment and gu ...

Added by Amanda1998 on Sun, 05 Apr 2020 10:13:17 +0300