Android Development: realize sliding exit Fragment + Activity two in one

prefaceCan you add a sideslip return when the sideslip menu is not included, and finish the current Fragment?Today, we have completed this work and made it into a separate SwipeBackFragment library and fragment SwipeBack extension librarycharacteristic: 1. Swipebackfragment, swipebackactivity two in one: when the number of fragments in the Act ...

Posted by sean14592 on Sat, 12 Feb 2022 03:31:36 +0100

Try to implement a simple mvvm with Proxy

A brief overview of Proxy and Reflect Proxy can be understood as setting up a layer of "interception" before the target object, through which the external access to the object must first be intercepted, so it provides a mechanism to filter and rewrite the external access. The original mean ...

Posted by deadparrot on Fri, 19 Jun 2020 12:46:44 +0200

Glide(1) Lifecycle Binding

Glide decouples in a unique way. Related articles: How Fragment s Bind to Activity's Life Cycle 1.1 Glide.with() Glide.with(FragmentActivity activity) // RequestManager with(FragmentActivity activity) public static RequestManager with(Activity activity) { return getRetriever(activity).get(activity); } publi ...

Posted by luke_barnes on Thu, 18 Jun 2020 18:09:43 +0200

How to listen for Auto Save events after Prefab modification in Editor

1) How to listen for Auto Save events after Prefab modification in Editor 2) On the advantages of turning on the Optimal option of animation files 3) Is it helpful for performance to split a large terrain into multiple mesh Colliders 4) Camera.SetReplacementShader And Projector display problems 5) FMOD can't switch sound when plugging in and ou ...

Posted by felixtgomezjr on Thu, 18 Jun 2020 09:06:01 +0200

How to use alicloud oss to upload large files in pieces

How to use alicloud oss to upload large files in pieces It's very easy to upload large files, but there are various problems in doing it. I just made one. Now record the process demand The company's new project needs to do a large file upload function, which saves some engineering project models and ...

Posted by ariliquin on Tue, 09 Jun 2020 05:43:46 +0200

Glide (II) Request queue management

entrance The first part summarizes the life cycle management of Glide by using fm and an empty Fragment. Here we continue to see load & into. Don't talk about it // The first part analyzes with and continues to see load & into Glide.with(this).load("url").into(...); 1.1 load public RequestBuilder<Drawa ...

Posted by Pyrite on Sun, 31 May 2020 08:21:07 +0200

Android Serial 12 - Perfect news app content area

1. Write a class here to start an activity by first loading the news_we just created in the onCreateView() methodContent_The frag layout, which is unexplained, goes on to provide a refresh() method for displaying news titles and content on the interface.As you can see, here you get the title and content control of the news by the findViewById() ...

Posted by muthuraj_mr on Wed, 20 May 2020 19:19:36 +0200

react Reading Notes

Source Digging Booklet - react Actual: Design Patterns and Best Practices react design idea Property Expansion - Keep the props required by the current component and pass on other props var obj = {a: 1, b: 2, c: 3, d: 4, e: 5} const { a, ...other } = obj console.log(other) // {b: 2, c: 3, d: 4, e: 5} In react, the interface is entire ...

Posted by vulcant13 on Sat, 16 May 2020 21:57:03 +0200

Lazy loading of Fragment data

The usage scenario of Fragment lazy loading is that when a ViewPager manages multiple fragments, the "excellent" cache mechanism of ViewPager will display a Fragment and pre load some resources of two adjacent fragments (which will trigger the onCreate life cycle of adjacent fragments). Lazy loading allows u ...

Posted by nickadeemus2002 on Fri, 01 May 2020 13:46:07 +0200

onMeasure and onLayout of source code analysis of ViewPager

Reprinted from: https://www.jianshu.com/p/b0830f9b44bb We know that the ViewPager is a ViewGroup. When we customize the ViewGroup ourselves, in addition to writing at least two constructors, the onMeasure and onLayout functions basically have to be written. Today, I will study two functions of onMeasure and onLayout carefully~ onMeasure View ...

Posted by mikwit on Thu, 30 Apr 2020 18:56:28 +0200