RadioGroup implements ios-like Segmented Control controls

In ios7, there is a flat style control called SegmentedControl, which is divided into rows with several buttons separated by simple lines. Only one button can be selected per click. It is similar to tabbar but slightly different. This control is used by new qq mobile client. However, there are no ready-made controls available in android, but th ...

Posted by Unknown User on Mon, 01 Jun 2020 10:09:04 -0700

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 madolia on Sat, 30 May 2020 23:09:19 -0700

How to use slot in vuejs

Official website address: https://cn.vuejs.org/v2/guide/render-function.html Usage scenario of slot: if you want to add a paragraph of html or text inside the defined component, for example <my-button> <p>Hello world</p> </my-button> In this case, you can use slot to display the inserted html code in the slot positi ...

Posted by MikeTyler on Thu, 21 May 2020 08:47:31 -0700

"Vue Response Principle and MVVM Implementation" of JS Core Theory

MVVM concept MVVM represents Model-View-ViewModel. Model: Model layer, responsible for handling business logic and interacting with the server side View: View layer: responsible for converting data models into UI displays, which can be easily understood as HTML pages ViewModel: The View Model layer that connects Models to Views and ser ...

Posted by parms on Sun, 17 May 2020 17:03:12 -0700

Lifecycle aware component

brief introduction Lifecycle is one of Google's recommended architecture components Lifecycle aware components can perform actions in response to changes in the lifecycle state of another component, such as Activity and Fragment. These components help you write more organized and often streamlined code that is easier to maintain. By using life ...

Posted by killerofet on Wed, 13 May 2020 03:20:25 -0700

Wechat applet development tab (tabbar at the top / bottom of the window) page switching

In the development of wechat applets, the tabs are generally fragment in android, which makes you feel confused when it comes to the applets Finally, it's done. Share it and have a look First look at the effect: Add the code: 1.index.wxml <!--index.wxml-->   <view class="swiper-tab">       <vie ...

Posted by dtdetu on Tue, 05 May 2020 17:48:29 -0700

LeakCanary: a tool for real-time monitoring Android memory leaks

I believe that many developers will not be unfamiliar with android memory leakage. In terms of optimizing performance, memory leakage, especially in large projects, is often difficult to locate due to the collaborative development of multiple people. Here is an open source tool, LeakCanary, from square company, which can help you to monitor me ...

Posted by simon622 on Tue, 05 May 2020 16:17:57 -0700

Android uses TabLayout to create a sliding tab bar

Sliding tab bar is very common in App. I tried to implement one by myself in the past. Using HorizontalScrollView and ViewPager, now TabLayout is much more convenient. First, the effect map and UI are slightly ugly. Don't mind ha ~ PS: there is a source code link at the bottom design sketch No nonsense, just code! ...

Posted by ppatwari on Tue, 05 May 2020 00:26:14 -0700

TabLayout+ViewPager to realize the dynamic sliding effect of tabs

1. Prerequisite preparation Today, I reviewed the joint use of TabLayout and ViewPager, and wrote a demo to deepen my understanding. First, make sure that TabLayout is under design, not under the original widget of the system. So first, add the following reference to the dependencies closure of build.gradle under app: ...

Posted by hakmir on Mon, 04 May 2020 13:30:46 -0700

Zhihu daily client -- look at the section every day

After reading this article, you should learn how to show the photo wall and save the pictures to the local place. design sketch: The last one is about: The realization of Zhihu daily Knowledge points of this article include: Okhttp, Picasso, CardView, dynamic request permission, create file, folder, save picture. Layout first: Material ...

Posted by adrafa on Thu, 30 Apr 2020 00:46:42 -0700