It's time to embrace ViewBinding!!

It's time to embrace ViewBinding!! I. Preface 2, Getting to know ViewBinding 3, Embrace ViewBinding 3.1 environmental requirements 3.2 turn on the ViewBinding function 3.3 use of ViewBinding in Activity 3.3.1. Direct controls in layout 3.3.2 imported controls in layout Thousands of sails pass ...

Posted on Tue, 25 Feb 2020 06:05:59 -0500 by alpha2zee

What is used in the PreferenceActivity instead of "addpreferencefromresource"?

I just noticed the fact that the method addPreferencesFromResource(int preferencesResId) is in the Android documentation( Reference Entry )Has been marked as deprecated. Unfortunately, no alternative method is provided in the description of the method. Which method should I use to connect preferenceScreen.xml to a matching PreferenceActi ...

Posted on Tue, 25 Feb 2020 00:51:12 -0500 by joey3002

Flutter 77: illustration of the history of Android Native project access to the Flutter Module

With the gradual development and improvement of Flutter, more and more scenarios are used in combination with Native. Xiaocai tries to connect a historical Android Native project to the Flutter Module today; AndroidX The development of Flutter is very fast. Most plug-ins are suitable for Android X. for the convenience of future development, the ...

Posted on Sun, 23 Feb 2020 04:13:38 -0500 by Gafaddict

Unity - micro phone test recording, play recording, display sound wave chart (not Spectrum chart)

I've been looking for inspiration for game design recently. Looking for it, I suddenly remembered that in a previous airplane game, end game, he could automatically fire bullets according to the music files you played. The players could not fire bullets on their own. At that time, I always took a piece ...

Posted on Wed, 19 Feb 2020 06:22:22 -0500 by squariegoes

Widget layout and page navigation developed by Flutter

1, Horizontal layout Row Row control can be divided into two types: non flexible arrangement and flexible arrangement. It can be flexibly used by expanding outside Mix the two: import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override ...

Posted on Sun, 16 Feb 2020 07:05:29 -0500 by friedemann_bach

Learning experience of the first line of code (Android) - activity

UI related knowledge 1, Four layouts LinearLayout Android: orientation specifies the arrangement. Vertical is vertical and Horizontal is Horizontal. Android: layout > gravity specifies the alignment of the control in the layout, top,bottom,center. If the arrangement is Horizontal, it can only be ...

Posted on Tue, 11 Feb 2020 08:34:10 -0500 by waygood

Publish your project to maven repository and start using it in maven and gradle

Publish your project to maven repository and start using it in maven and gradle The log printing project mentioned in the previous blog is almost maintained, but now it is still used as jar package and put it into other projects, so we decided to transfer the project to maven warehouse, and only need to configure it I use Alibaba cloud's maven ...

Posted on Mon, 03 Feb 2020 23:45:24 -0500 by twizler

mockito short tutorial

1 overview of mockito Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. Mockito doesn't give you hangover because the tests are very readable and they produce clean verification errors. Mockito is a very good simulation framework ...

Posted on Sun, 02 Feb 2020 04:45:32 -0500 by jennyp

Pet adoption website: SpringBoot supports JSP development and configuration

Pet adoption website (2): SpringBoot supports JSP development and configuration 1.build.gradle configuration 2. Build webapp directory 3. Add page and Controller layer 4. Add properties to the application.properties file 5. Project operation and test Spring boot originally does not recommend JSP a ...

Posted on Fri, 31 Jan 2020 02:32:08 -0500 by hucklebezzer

Android Development - What is MVVM, MVVM Framework, Quick Start, Simple Use, Popular Explanation

Expect 10 minutes for full text reading This is probably the clearest explanation you've ever seen Subject_ Write before: Why do we use frames?When people invent something new, along with joy and cheer, the question that comes with it is how to produce it in batches. After all, new things are creat ...

Posted on Fri, 24 Jan 2020 20:30:14 -0500 by slshmily