Adroid Performance Optimization -- Start Page Optimization
Usually, app needs to load a lot of layout and data when it is first started. Our company needs to load an Activity with 7 fragments in it when it is first started. Add all kinds of data, often lead to white screen phenomenon at startup. In order to solve all kinds of phenomena perfectly, some efforts have been spent. Here is a record.
1: Cli ...
Posted by lenhewitt on Fri, 22 Mar 2019 04:00:54 -0700
Tracking and parsing Spring ioc boot source code
Zero Preparations
0 FBI WARNING
The article is extremely verbose and winding.
1 version
Spring version: spring 5.1.2.RELEASE
IDE : idea 2018.3
2 Bean Demo
package ioc;
/**
* java bean
*/
public class Person {
private String name;
private Integer age;
public String getName() {
return name;
}
public void setName( ...
Posted by Z3RatuL on Thu, 21 Mar 2019 01:18:53 -0700
Android uses open source framework PagerSliding TabStrip to implement navigation titles
The official address of this open source framework: https://github.com/astuetz/PagerSlidingTabStrip
It can be understood as an interactive page indicator control used with ViewPager.
If you don't say much, first put on the effect map.
In order to demonstrate the difference between pSTS Indicator Height and pSTS Underline Height, different sett ...
Posted by gareh on Wed, 20 Mar 2019 13:39:26 -0700
Android builds MVVM architecture from scratch: ——ViewModel
The ViewModel class is designed to store and manage UI-related data in a perceptible lifecycle manner, and the data in the ViewModel will survive even if the activity configuration changes.
What are the advantages of ViewModel?
1. Data persistence
Before the destruction and reconstruction of activity, we can use the onSave I ...
Posted by delfa on Tue, 19 Mar 2019 20:33:27 -0700
Android< communication between Fragments and communication between Fragments and Activities >
1. Situational assumptions:
Suppose there is a requirement, a layout with FragmentLeft and FragmentRight in an Activity, and a layout with Textview at the bottom.
Now when a button in FragmentLeft is clicked, FragmentRight and Textview in Activeness respond, similar to this effect:
2. Solutions:
i. Define an interface in Frag ...
Posted by deezin on Wed, 13 Feb 2019 16:45:18 -0800
Exceptions in Hibernate development: could not initialize proxy - no Session
I. Abnormal Contents
could not initialize proxy - no Session
2. Analysis of Abnormal Reasons
First, I have the following fragment in my persistence class User:
//User.java
@Entity
@Table(name = "user_inf")
public class User {
//User's Order Information
@OneToMany(targetEntity=Order.class,mappedBy="user")
private Set<Order> ...
Posted by space1 on Sun, 10 Feb 2019 03:00:18 -0800
Kotlin Commission
Delegation in Kotlin
In delegation mode, two objects participate in processing the same request, and the object receiving the request delegates the request to another object for processing.
Class delegate
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCr ...
Posted by .Darkman on Fri, 01 Feb 2019 22:51:15 -0800
node Implements Piecewise Download
Based on http Range Requests protocol, this paper realizes the function of fragmented download.
Use scenarios include browser-based streaming file fragment transfer, client-based fragmented download, etc.
principle
http through Range Requests related header, can negotiate with the server to achieve partial requests.
Here we will not elaborate o ...
Posted by goldages05 on Fri, 01 Feb 2019 15:51:15 -0800
Android 8.1 Platform System UI Virtual Navigation Key Loading Process Analysis
demand
Based on MTK8163 8.1 platform, customize the navigation bar, dynamically click on icons to hide virtual keys, and the customization steps are shown in the next article.
thinking
Before you start to do the requirement, you must read the code flow of the System UI Navigation module!!! Don't copy other people's changed r ...
Posted by Jim02 on Wed, 30 Jan 2019 16:27:15 -0800
Android-TabLayout-A Convenient Implementation of Tab
Personal blog CoorChice,https://chenbingx.github.io/ The latest article will be published CoorChice's blog Welcome to explore!
Meanwhile, by searching for the Wechat Public Number CoorChice or scanning the two-dimensional code at the end of the article, you can pay attention to my Wechat Public Number. At the same time, articles ...
Posted by chrispols on Sat, 26 Jan 2019 02:33:13 -0800