Understanding Golang component protobuf

What is protobuf protocol buffers is a language independent, platform independent and extensible method for serializing structured data. It can be used for (data) communication protocol, data storage, etc. It is a flexible, efficient and automatic structural data serialization method - comparable to XML, but smaller (3-10 times), faster (20-100 ...

Posted on Thu, 26 Mar 2020 12:50:09 -0400 by ethan.whitt

android -------- custom control (3)

In the previous section, I briefly described several methods of custom control in Android. Today, I realize a simple case through code   Customize a pie chart Custom control example: Here is an example of how to inherit View public class CircularView extends View { /**** * The third parameter in a three parameter constructor is ...

Posted on Thu, 26 Mar 2020 12:49:53 -0400 by pdub56

Android 7.0 take photos and upload

On Android 7.0 mobile phone, call the system camera with the old method to take photos and keep throwing. FileUriExposedException is abnormal. This is because Android 7.0 forces a policy called StrictMode to be enabled, and App cannot expose URI of file: / /. If you use Intent to open an external App with such a URI (for exampl ...

Posted on Thu, 26 Mar 2020 11:35:22 -0400 by Lexas

springboot integrates mybatis and sets up multiple data sources

Springboot is now more popular than spring because it is simple, fast and convenient. Springboot was originally designed to simplify the configuration of spring by integrating new functionality faster in development, simplifying or reducing related configurations.Springboot is based on convention over configuration.All frameworks are integrated ...

Posted on Sun, 22 Mar 2020 13:09:25 -0400 by BornForCode

Java single application - common framework - 07.Spring MVC - Maven modular development (iot-

Original address: http://www.work100.net/training/monolithic-frameworks-spring-mvc-maven-module.htmlMore tutorials: Beam cloud - free course Maven modular development Serial number Chapter in text video 1 Summary - 2 Create root project - 3 Create a unified dependency management module - 4 Create a common tool class module - 5 Cre ...

Posted on Sat, 21 Mar 2020 10:15:07 -0400 by djcubez

The Spring Learning Road 3-AOP and Three Ways to Implement AOP

AOP Aspect-oriented programming (AOP), also translated as Aspect-oriented programming and Profile-oriented programming, is a program design idea in computer science. It aims to further separate cross-cutting concerns from business entities to improve the modularity of program code.By adding an additional Advice mechanism to the existing code, ...

Posted on Thu, 19 Mar 2020 15:04:54 -0400 by Fed51

GridView realizes radio function

Let's see the effect first If it's what you need, you can keep looking down It's easy to implement and directly codeThe layout of the main Activity. A Button is used to jump to the filtered Activity and a TextView is used to display the filtered results <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:a ...

Posted on Thu, 19 Mar 2020 13:38:03 -0400 by mikeatrpi

Customize View FlowLayout

1, Renderings 1. Effect 1: the corresponding usage method 1 (add sub View label effect in the layout): 2. Effect 2: corresponding mode 2 (add sub View label effect in code): The two effects are the same, just to show that the flow layout adds sub View in the layout and adds sub View in the code. Both implementation metho ...

Posted on Thu, 19 Mar 2020 13:02:10 -0400 by ashok_bam

android click button to display the secondary linkage menu of popupwindow

Turn from android click button to display the secondary linkage menu of popupwindow android click button to display the secondary linkage menu of popupwindow <div class="article-info-box"> <div class="article-bar-top d-flex"> <span c ...

Posted on Thu, 19 Mar 2020 11:57:24 -0400 by derrick24

Attempting to start the service on Android

I was trying to start the service when the device started on android, but it didn't work properly.I've looked at a lot of online links, but none of the code works.Did I forget anything? AndroidManifest.xml <receiver android:name=".StartServiceAtBootReceiver" android:enabled="true" android:exported="false" android:label ...

Posted on Wed, 18 Mar 2020 21:54:06 -0400 by daglasen