Operation details and examples of Rxjava2 connectable Observable

Briefly: Requirements understanding: Ordinary Observable in Rxjava will transmit data when the observer subscribes, but sometimes we want to control the data transmission by ourselves. For example, we need to use the connectable Observable in Rxjava to fulfill this requirement after having a specified observer or all observers subscribing. This ...

Posted by hmb3801 on Tue, 31 Dec 2019 13:41:34 -0800

Android work experience Fragment management

Fragment, or fragment for short, is proposed by Android 3.0 (API 11). In order to be compatible with the lower version, a set of Fragment API has been developed in support-v4 library, which is at least compatible with Android 1.6. In the past, the support-v4 library was a jar package. Since version 24.2.0, the support-v4 libra ...

Posted by ploppy on Sat, 28 Dec 2019 11:37:32 -0800

Mybats related pits (I)

1, Note the use of sql relationship symbols such as > =, < =, < and so on The following code: <select id="queryGoodsList" resultType="com.sanbang.vo.GoodsInfo" parameterType="java.util.Map"> select g.id, g.name, IFNULL((select s.salePrice from ezs_goods_audit_process s where s.goods_id = g.id and s.delete ...

Posted by lovely on Fri, 27 Dec 2019 08:15:38 -0800

DBLE Learning Configuration schema.xml for Database Middleware

Preface There's a video that often entices me to "play to death" and a big BOSS that keeps "pushing me to learn faster".It is these two extremes of love that often convince me of where I am going.Well, it's not worth it! Introduction to SCHEMA.XML The last one was written: Database middleware DBLE learning (1) Basic introduc ...

Posted by rem on Thu, 26 Dec 2019 14:24:40 -0800

java8 dynamic compilation preserves method parameter names

Compile reserved method parameter name javac document javac doc -parameters Stores formal parameter names of constructors and methods in the generated class file so that the method java.lang.reflect.Executable.getParameters from the Reflection API can retrieve them. Get a list of parameters supported by dynamic compilation The problem o ...

Posted by nonexistentera on Wed, 25 Dec 2019 13:33:50 -0800

1 minute to master the use of ViaBus architecture

Copyright notice: This is the original article of blogger. Please indicate the author and link for reprint. More on KunMinXhttps://blog.csdn.net/IamTheReal/article/details/82837568 0. Add the following dependencies to build.gradle of the module implementation "com.kunminx.viabus:viabus-android:0.3.3" 1. Define an interface f ...

Posted by kidbrax on Wed, 25 Dec 2019 11:41:39 -0800

Android event distribution mechanism - system default mechanism

1. Why do you want to understand the Android event mechanism? Background: when I was working on the Android project, I encountered a nested relationship like activity - > fragment - > Scrollview - > Button. When everything was ready, the system crashed when I clicked the Button after the program was started. Tencent B ...

Posted by Francois on Mon, 23 Dec 2019 11:17:02 -0800

javascript add element add element with DocumentFragment

Insert node When we want to insert a single node, we can use the insertBefore() and appendChild() methods. If we want to insert multiple content, we need to use DocumentFragment. It is a strategy to use the insertion method repeatedly, but in this way, the browser will render the DOM tree continuously, which will affect the us ...

Posted by rslnerd on Sat, 21 Dec 2019 12:08:54 -0800

Intel Galileo gen2 motherboard experiment (1)

Intel Galileo gen2 motherboard experiment (1) Intel Galileo gen2 motherboard specifications Intel Galileo gen2 motherboard specifications SD card startup disk making Software used: Win32DiskImager (for writing sd card image), SD card image of Galileo Linux (an integrated Yocto based Linux, Galileo poky SW image 20160606. Z ...

Posted by nicandre on Thu, 19 Dec 2019 08:48:36 -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