Use of ORMLite in Android-Framework

Reprint: https://www.cnblogs.com/itgungnir/p/6210949.html There are many frameworks for operating SQLite databases in Android, and now ORMLite and GreenDAO are the most common and common ones. ORMLite is a lightweight framework compared with GreenDAO, and learning costs are relatively low. So ORMLite is introduced in this post ...

Posted on Sat, 26 Jan 2019 07:15:14 -0500 by plaggypig

Android implements sliding discoloration of immersive status bar and title bar

1. Implementing Immersion Status Bar There are many ways to implement the immersive status bar, Baidu and Google can do it by themselves. Here the immersive status bar implements the use of third-party open source libraries ImmersionBar The integration method allows you to view official documents directly. Here is just a dem ...

Posted on Sat, 26 Jan 2019 06:51:14 -0500 by tywin

RecyclerView implements vertical automatic infinite scrolling, similar to winning information, horse-running lights

There are two ways to achieve the effect in RecyclerView: One is to scroll once every few seconds, using item as a unit. A Slow Rolling for the Whole Flow Form Achieve infinite scrolling The way to achieve infinite scrolling here is to set itemCount to Integer.MAX_VALUE in adpater Note: This is based on BaseQuickAdapter li ...

Posted on Sat, 26 Jan 2019 00:18:15 -0500 by moe

Android Adb Source Analysis

Wrap your ass up in triumph Recently, the project I was in charge of turned the previous version of userdebug off to user version because it was close to mass production, and increased the privileges of selinux. Everyone was overwhelmed with excitement and joy in preparing for mass production. Who knows, after the release of ...

Posted on Fri, 25 Jan 2019 23:00:14 -0500 by egroeg41

Hibernate: Cascading queries

Case: Order Category and Order Item Category Questions in Cascading Queries Introduction to Lazy=true Lazy=false Introduction: Check all the time there is a problem. In the set lazy = "false" can also be reported error (com.zking.4.entity.Order.orderItems,       could not initialize proxy - no Session)   <set lazy ...

Posted on Fri, 25 Jan 2019 21:06:14 -0500 by ben2k8

Use of Expandable ListView 2: Expandable ListView + SQLite + Json parsing + network download

The last article described the basic use of Expandable ListView https://blog.csdn.net/qq_17846019/article/details/83276920 Realization of complex cases under Case 2: Implementation of Expandable ListView of SQLite and json Data Based on Network Understand a few concepts first Biz:(Business Logic Layer) biz is the abb ...

Posted on Fri, 25 Jan 2019 20:33:14 -0500 by KingWylim

Conditional operators for Rxjva 2.x

Conditional Operator all operator ambArray operator contains operator any operator isEmpty operator defaultIfEmpty operator switchIfEmpty operator sequenceEqual operator takeUntil operator takeWhile operator skipUntil operator skipWhile operator all The all operator is used primarily to determine whether all elements satisf ...

Posted on Fri, 25 Jan 2019 19:03:14 -0500 by ryanhowdy

Use of CFNetwork Framework for iOS Development

Use of CFNetwork Framework for iOS Development I. Introduction In iOS application development, CFNetwork framework is not very commonly used. Compared with NSURLSession framework, it is a relatively low-level network framework. The following figure in the official document describes the position of CFNetwork in the whole network system: C ...

Posted on Fri, 25 Jan 2019 17:36:14 -0500 by danlindley

Design Patterns-Six Principles of Object-Oriented

Design Patterns-Six Principles of Object-Oriented Principle of Single Responsibility Opening and closing principle Richter's replacement principle Dependence Inversion Principle Interface Isolation Principle Dimiter Principle In this paper, the six principles of the above interviewees, do a step-by-step understanding of rec ...

Posted on Fri, 25 Jan 2019 13:09:15 -0500 by 99degrees

How to customize Android Build Config configuration file in Android Studio

There will be many apps in a project. Variable values such as compileSdkVersion and build Tools Version will be configured in different module s. If the compile project in each app can not be unified, it will be very troublesome in future upgrades. So we call these common configuration items shared variables. Steps: 1. Define a ...

Posted on Fri, 25 Jan 2019 10:12:13 -0500 by rempires