Android studio 3.2 version custom apk name compilation exception

When the project is upgraded from version 3.x to version 3.2, the original code of custom output apk name is invalid, and the new writing method is changed to //This script is written in a project level gradle file // AS3.2 version / / output apk custom name android { applicationVariants.all { variant -> ...

Posted by djmc48 on Wed, 18 Dec 2019 08:59:34 -0800

Packaging the DecorView of Activity (2)

I have seen the modification of the system code of the company to the root layout decor layout.xml When I started to develop the system a few days ago, I always wanted to change the source code of the system. As for the reason, I always wanted to install it. After stepping on a few pits modified by others, I still felt that on the basis of no ...

Posted by ntjang on Wed, 18 Dec 2019 08:46:18 -0800

The right encapsulation of react native (GPS, suspended window android) does not jump to the corresponding settings

The APP often uses geographic location authorization. The following describes the encapsulation of gps and suspension window on Android Only part of the code and the creation of interaction classes are shown here Portal Design sketch There's a problem here. Because Android manufacturers are different, when users refuse to au ...

Posted by eaglelegend on Tue, 17 Dec 2019 12:36:55 -0800

Simple example of Android MVP mode

MVP mode is M (Model), V (View) and P (Presenter) Model is data. How to obtain data and data type belong to model. In a word, all data related classes and operations belong to model View is the interface displayed to the user, including all kinds of controls and click events. In Android, Activity and Fragment belong to view ...

Posted by lajkonik86 on Tue, 17 Dec 2019 08:10:34 -0800

Android based intent data transmission

Step 1: LoginActivity.xml The interface is relatively simple, so there is no need to paste the content here, and the renderings are pasted here.   2.LoginActivity.java The logic processing code is as follows: public class LoginActivity extends AppCompatActivity { private EditText et_username; private EditText ...

Posted by harnacks on Mon, 16 Dec 2019 12:21:24 -0800

Android learning - simple custom View (1)

I am not busy recently, so I look back on what I have learned and contacted in this year. I suddenly feel that blogging is a good way, and I hope I can stick to it. Custom View process Create a custom class to inherit the View, and override the constructor. There are four constructors in total. We only need to inherit the first ...

Posted by control on Sun, 15 Dec 2019 10:01:48 -0800

Android 8.0 graphics engine and form management service (WMS)

In the above four articles, Android's graphics engine is viewed from the hardware abstraction layer, data drive, rendering, output and other aspects of the graphics engine. From the perspective of engine input, the data input end of the engine mainly includes UI, Camera, Media and so on. Today, from the perspective of UI, we tak ...

Posted by countdrac on Sun, 15 Dec 2019 08:35:24 -0800

Realization of wave line and cube by css

In recent projects, it is necessary to draw a wavy line effect, which is realized by linear gradient, that is, draw a circle, and then use the background color to cover part of the circle;Realization of cube with css3 attribute perspective and rotation 1. Realization of wavy line by CSS html <div class="card-list"> <div class="wave ...

Posted by Getran on Sun, 15 Dec 2019 07:02:44 -0800

Advertisement page slide of ViewPager series

ViewPager is a control under support-v4. You need to add this package to use it! ViewPager is a control similar to ListView, composed of many items, similar to a Book flipped left and right, while ListView just flipped up and down. The adapter PagerAdapter of ViewPager is similar to the BaseAdapter of ListView, and the usage aspect is similar t ...

Posted by Sturm on Sun, 15 Dec 2019 07:00:37 -0800

Git Push Error'[[Remote Deny] Host - > Host (Branch currently checked out)''

Yesterday, I published a post about how to Git Repository from one of my computers Problem cloning to another computer , How do I "git clone" from another computer? . Now I can successfully clone the Git repository from the source (192.168.1.2) to the target (192.168.1.1). However, when I was on a file, git commit-a-m "t ...

Posted by hennety on Sat, 14 Dec 2019 18:53:33 -0800