Android - Project Architecture of Multiple Lists (Rxjava+Rtrofit+Recyclerview+Glide+Adapter Encapsulation)

I haven't written a blog for a long time, mainly because I had to work hard to complete an outsourcing project before, and because it was the first time to outsource, a lot of things had to be dealt with, of course, I also learned a lot. In this series, I will share some of the outsourcing code with you and learn together. Project descripti ...

Posted by PakiGangsta on Sat, 22 Dec 2018 06:06:05 -0800

About java.lang.IllegalStateException: Fragment already added solution

Preface Recently, this bug has been found frequently in projects. Several solutions have been found on the internet, but the results are not very satisfactory. Now we will list all the modification schemes. Background The four tab page switching at the bottom of the project results in the tab switching scheme that adds four fragments to ...

Posted by laserlight on Fri, 21 Dec 2018 04:39:06 -0800

MyBatis Initial 3_mapper.xml Optimization (parameterType Abbreviation_NameSpace Abbreviation_sql Fragment_Special Character Processing)_Dynamic SQL

This article is a hard summary for bloggers. I hope I can understand more deeply when I come back later. I also hope it can help beginners. Reproduced from: luogg's Blog Garden Thank you for your cooperation. optimization 1. Aliases (generally not used, easy to write to see the origin of the class) Previous wording: <insert id="insert"pa ...

Posted by TanyaTR on Fri, 21 Dec 2018 00:30:05 -0800

Android Confusion - Why pass parameters with Fragment.setArguments(Bundle bundle)

Reprint: http://blog.csdn.net/tu_bingbing/article/details/24143249 Fragments have been available since Android 3.0, and Fragments features are also supported in compatible packages. The introduction of Fragment makes it easier and faster to write and manage user interfaces. But when we instantiate custom Fragments, why ...

Posted by dlcmpls on Mon, 17 Dec 2018 15:06:04 -0800

viewpager java.lang.IllegalArgumentException:The observer is null

Recently, I had a problem with the ViewPager when I was doing vertical switching... First of all, this vertical ViewPager is made with reference to the God on github. For GitHub address, please refer to: https://github.com/simplezhli/ChangeTabLayout Next, let's talk about the pit I met. My project uses a fragme ...

Posted by balistic on Sun, 16 Dec 2018 21:18:04 -0800

Android Architecture Components ViewModel Component Parsing

1 Preface ViewModel is a very important component of Android architecture component. It is the core of Android architecture hierarchy. You can refer to its usage and information. Android Architecture Components: An Introduction to Android Architecture Components Development You can also refer to official examples. htt ...

Posted by Skunkmaster on Sun, 16 Dec 2018 02:15:04 -0800

In iOS UIWebView and WK WebView, JavaScript and OC interaction, Cookie management look at me enough (I)

Preface In iOS development, it is used to display an html page, H5 page, and WebView is often used as a control. Speaking of WebView, how much do you know? Is it a simple presentation, or do you want to interact with OC to achieve more complex functions? This article will introduce you to WebView in iOS, and take you step by step to understand ...

Posted by Devil_Banner on Sat, 15 Dec 2018 20:21:04 -0800

[bugfix] [Jingdong App Plug-in] Make sure other views do not use the same id

Plug-in has been widely used in the current mainstream app. Although the scheme is mature, there are still many pits emerging. Here is one of the problems that Jingdongdao has encountered when it is integrated into Jingdongdao App as a plug-in. 0x01. Crash Information Stack ---java.lang.IllegalArgumentException: Wrong sta ...

Posted by Nico on Fri, 14 Dec 2018 16:12:03 -0800

ERROR_CONNECTING_TO_SERVICE error occurred in YouTube development

Problem description An initialization error occurred during android YouTube development, and the error prompt was ERROR_CONNECTING_TO_SERVICE. The effect of the error is as follows: This error can be made on some machines, but not on others, such as Huawei machines. We know that when we use the API in YouTube's native jar, ...

Posted by erasam on Tue, 11 Dec 2018 17:57:06 -0800

The source code and trick of Lifecycle-Aware of Android Architecture Components

See my brief book https://www.jianshu.com/u/c717eefe3f42 One background google's Architecture Components Components(lz abbreviated AAC) has been out for a long time, but has not had time to read the source code, take advantage of the recent gap, read the source code of AAC, share the understanding of reading. What is AA ...

Posted by Dowdy on Tue, 11 Dec 2018 13:24:06 -0800