OpenGL Learning Delayed Coloring Deferred Shading
This operation looks at the introduction in order to reduce the cost of forward rendering (that is, rendering the next model after one model has finished)
introduce
Forward Rendering or Forward Shading. In a scene, we illuminate an object according to all the light sources, then render the next object, and so on. It is very e ...
Posted by phparmy on Fri, 25 Jan 2019 09:48:14 -0800
AAC Learning Notes Dagger (2) -- Injecting Activity
This article is part of Android Architecture Components Learning Notes
The document code is Kotlin, but the code generated by the system is still Java.
For ease of understanding, I've broken down the official examples step by step.
My level is limited. If there is something wrong with me, please don't hesitate to give me advice ...
Posted by macattack on Fri, 25 Jan 2019 05:03:13 -0800
Fragment uses the ViewPager+Fragment mode without retaining background activities. After the Activity is destroyed and rebuilt, the Fragment exception occurs.
Cause analysis
Activity saves the status of all added Fragments after adding Fragments to Activity; Activity recreates the original fragments and attach es them when it is reclaimed due to problems such as system memory; however, if we use a reference to save and use Fragments in ViewPager, it will cause an exception.
Problem ...
Posted by wkerplunk on Tue, 22 Jan 2019 18:03:13 -0800
EasyDemo*ViewPager+Fragment Implementation of on Github
Source code: https://github.com/Way123Ne/android/tree/master/SlideFragment
Preface
Wechat's sliding switching has won unanimous praise. In the process of our development, we often imitate the navigation effect of Wechat.
First look at the rendering.
The effect is fairly good, you can slide switch and click switch, the W ...
Posted by candice on Fri, 04 Jan 2019 11:33:09 -0800
A Summary of the Tab Type Main Interface of Android Project Fragment+TabPage Indicator+ViewPager
For reprint, please indicate the source: http://blog.csdn.net/lmj623565791/article/details/24740977
Android now implements more and more Tab-type interfaces, today we will summarize the common implementation methods. At present, I have written:
1. Traditional ViewPager Implementation
2. Implementation of Fragment Manager+Fragment
3. Implementa ...
Posted by KaFF on Wed, 02 Jan 2019 11:54:09 -0800
android uses Fragment to implement bottom menu switching using show() and hide() to maintain Fragment status
Reprinted from: http://blog.csdn.net/lovexieyuan520/article/details/50594271
In the layout of android development, a large number of domestic use of the bottom menu, which is not in line with the norms of android, I personally hate, but the product is designed in this way, can only do so. In this blog, I will combine the information on ...
Posted by ekalath on Sat, 29 Dec 2018 07:36:09 -0800
Master Kotlin standard functions: run, with, let, also and apply
Links to the original text
Some of Kotlin's Standard function Very similar, we are not sure which function to use. Here I will introduce a simple way to clearly distinguish their differences and how to choose to use them.
Range function
I focus on run, with, T.run, T.let, T.also and T.apply functions. I call them scope functions because I thi ...
Posted by nicholasstephan on Thu, 27 Dec 2018 14:33:06 -0800
Tab menu bar at the bottom of Android (FragmentTabHost+ViewPager+Fragment)
The bottom menu bar is frequently used in Android development. The main means of implementation are as follows:
TabWidget
Hide the TabWidget, using RadioGroup and RadioButton
FragmentTabHost
TabLayout after 5.0
Bottom navigation recently launched
Today, let's explore how to use Fragment+FragmentTabHost++ViewPager
Implementing the botto ...
Posted by laurajohn89 on Tue, 25 Dec 2018 15:06:06 -0800
Kotlin Android Extensions: Goodbye to findViewById (KAD 04) -- Update
Author: Antonio Leiva
Time: Aug 16, 2017
Links to the original text: https://antonioleiva.com/kotlin-android-extensions/
After the release of Kotlin 1.1.4, the original author decided to update and rewrite the articles for several months based on a series of new features of Kotlin and questions from readers about how to use Kotlin in Fragment ...
Posted by ale8oneboy on Sun, 23 Dec 2018 17:06:06 -0800
MVP Framework of RxJava+retrofit+Dagger2+AAC
I. Preface
This article is a summary of my past app development and a reflection on the use of the framework. I also invite you to laugh at the technical salted fish. Generally speaking, the first thing we think about when we develop app is how to build a framework. At first, there was no so-called framework in app development ...
Posted by lordofgore on Sat, 22 Dec 2018 07:06:05 -0800