[MyBatis Source Analysis] Load the Xml configuration file

Debug Entry Find the XmlConfigBuilder Test in the mybatis source code and run shouldSuccessfully Load XMLConfigFile () in debug mode. Initialization First, create the XMLConfigBuilder object, in the construction method: Reading files through InputStream to generate Document objects for XML, the operations related to XML are beyond the sc ...

Posted by Imad on Wed, 05 Jun 2019 12:06:24 -0700

Android custom pop-up menus and dialogs

In Android development, there may be many custom layout requirements, such as custom popup windows and custom dialogs. Don't say much, just put on the picture. First, customize PopUpWindow 1.popupWindow protected void showPopWindow(View view, final int pos){ WindowManager wm= (WindowManager) myContext.getSystemService(Context.WI ...

Posted by sparks on Tue, 04 Jun 2019 15:12:56 -0700

Android Custom EditText: Hand-in-hand instructions for making a Super EditText with a one-click deletion & Custom Style

Preface EditText is very common in Android development This article will teach you how to make a SuperEditText control with one-click deletion function, which is rich in custom style. I hope you will like it. Design sketch Open source in Github: Super_EditText Welcome to Star! Catalog Sketch Map 1. introduction A SuperEditText co ...

Posted by CWebguy on Tue, 04 Jun 2019 14:29:11 -0700

View (2) Custom Properties

There are three main ways to implement custom attributes. Method 1: No namespace, no attrs.xml file. Get the attribute value by attrs.getAttributeResourceValue method Method 2: Use namespace instead of attrs.xml file. Get the attribute value by attrs.getAttributeResourceValue method Method 3: Use namespace and attrs.xml file. Get the attrib ...

Posted by diesel on Tue, 04 Jun 2019 13:14:55 -0700

On SpringBoot's Auto-Configuration and Startup Process

I. Introduction Spring Boot simplifies the development of Spring applications. By adopting the idea that conventions are greater than configurations, it is easy to build an independent, product-level application with simplicity and simplicity. 1. Disadvantages of traditional J2EE development Development is cumbersome, configuration is complex, ...

Posted by ask9 on Tue, 04 Jun 2019 11:46:48 -0700

Rotating Windmill for Android Custom View

Windmill Custom View of a Rotary Windmill Imitating Huawei Weather I'm working on a weather forecast app recently. Because I use Huawei's mobile phone. It is found that Huawei's weather forecast software is quite good. So the main interface of my weather forecast software mainly imitates Huawei's weather. App address OneWeather. This rotati ...

Posted by coops on Tue, 04 Jun 2019 11:07:47 -0700

CardView Source Parsing-View Shadow

CardView extends the FrameLayout class and allows you to display information within the card that is presented consistently across the platform.The CardView widget can have shadows and rounded corners. If you want to create a card using shadows, use the card_view:cardElevation property.CardView uses true height and dynamic shadows in A ...

Posted by goobers on Tue, 04 Jun 2019 09:49:48 -0700

Getting started with Android modularization:)

Due to the development needs, there may be more and more projects and more repetitive modules in the future. We do not want to repeat development every time, so we have recently started the transformation of modular development. Here's an overview of the process: First, create the project in the original mode, which is nothing to say, and t ...

Posted by downfall on Mon, 03 Jun 2019 21:34:27 -0700

View those things (2) -- Understanding MeasureSpec

Measure is the first step in the process of drawing View. To understand the measurement process of View, we must first understand MeasureSpec. Literally, MeasureSpec means "measurement specification". In fact, it determines the measurement process of View to a certain extent. Specifically, it contains the dimension information of a V ...

Posted by pedrokas on Sun, 02 Jun 2019 16:25:54 -0700

Summary of Drawer Layout's Side Slip Layout

This film is a detailed analysis of Drawer Layout and a summary of the problems encountered in development. DrawerLayout is a control supporting side-slip effect in SupportLibrary. In the development, it mainly cooperates with Navigation View + Toolbar to realize side-slip menu and see the effect concretely. This effect template can be ...

Posted by tyrol_gangster on Sun, 02 Jun 2019 16:11:08 -0700