Single, Completable and Maybe in RxJava

Maybe tomorrow.jpeg Usually, if we want to use RxJava, the first thing we think about is using Observable. If we want to consider the situation of Backpress, we will use Flowable in the RxJava 2. x era. In addition to Observable and Flowable, there are three types of Observables in RxJava 2.x: Single, Completable, and Maybe. type describe ...

Posted by krystof78 on Sat, 08 Jun 2019 12:32:22 -0700

OSG's Way to the Pit

The so-called "pit entry" is just an excuse for one's lack of proficiency.Now I have been studying OSG for three weeks. I just do some simple demo s with books and videos. Sometimes I feel like I can't get started.I don't know if I am a career change. Before I studied point cloud data processing, I had a little opengl foundation. Alth ...

Posted by butsags on Fri, 07 Jun 2019 18:45:09 -0700

Android - Implementing Top + Bottom Dual Navigation Interface Function

Recently, I want to get a dual navigation function. After checking a lot of information, I finally realized the function. Here I can even take a few notes for myself. Let's see the effect first. So it's starting to come true! The bottom navigation bar I chose to use FragmentTabHost+Fragment to achieve, which I think is very usefu ...

Posted by mhodge87 on Fri, 07 Jun 2019 18:21:40 -0700

opengles texture object-texture unit

When using textures, there is a question why these methods can create textures and use them. Here we will discuss. Let's take a look at the general steps for using two-dimensional textures: // Generate texture int[] textureHandle = new int[1]; GLES20.glGenTextures(1, textureHandle, 0); int TextureID = textureHandle[0]; GLES20.glBindTexture( ...

Posted by kkeim on Mon, 03 Jun 2019 22:17:17 -0700

RxLifecycle Anti-Memory Leakage Analysis

Generation of call chain For example, fragment inherits RxFragment from RxLifecycle and then initiates network requests in fragment // observable generated by Retrofit Retrofit.create(xxx).subscribeOn(Schedulers.io()) .unsubscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) ...

Posted by Nothadoth on Mon, 03 Jun 2019 19:11:50 -0700

Several Ways to Update UI Views Using Asynchronous Threads in Android

In Android, a neutron thread cannot update the ui. So we need to dynamically change ui views in other ways. 1,runOnUiThread activity provides a lightweight way to update the ui, using getActivity.runOnUiThread to open threads when Fragment needs to be used This method is the simplest, easy to update some notifications that need not be judged, s ...

Posted by richei on Sat, 01 Jun 2019 11:29:28 -0700

Android Coordinator Layout (3) Combination of Coordinator Layout

The last chapter talks about the simple use of CollapsingToolbarLayout + Toolbar. Remember that it is simple, complex and needs to be customized. If you can't, use simple. Note: Use CollapsingToolbarLayout only if you want to use the same effect as the previous chapter, and no other effect is necessary. 4,CoordinatorLayout+ AppBarLayout Why sho ...

Posted by Paulkirkewalker on Fri, 31 May 2019 09:07:40 -0700

Introduction of Java ArrayList related methods and source code analysis

Introduction to ArrayList: The java.util.ArrayList is one of our most commonly used classes. At the bottom of the ArrayList is a dynamic array that readers can understand as an implementation of the array public class ArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, Clon ...

Posted by theredking on Thu, 30 May 2019 10:01:12 -0700

Android Fragment Learning and Use - Advanced Chapter

I. overview The last article has explained Fragment's life cycle, basic usage methods and the role of some api s. But if you want to use Fragment well in your project, you must be able to clearly manage its status. Here are some scenarios that you will encounter in actual development. 2. Fragment Back Stack Management Activity is managed ...

Posted by ludjer on Wed, 29 May 2019 11:27:53 -0700

React Router+React-Transition-Group to Realize Page Sliding and Rolling Location Memory

    Updated 17 December 2018: Fix page misalignment when pop jump is executed in qq browser The code in this article has been encapsulated as npm package publishing: react-slide-animation-router   In React Router, if we want to do left-right sliding based on routing, we must first understand what happens when a route jump ...

Posted by Mew151 on Wed, 29 May 2019 04:42:50 -0700