04. Handwritten ButterKnife(ButterKnife source reading)

Source address: https://github.com/renzhenming/MyButterknife I believe that most Android developers are using ButterKnife for code generation. There are several advantages of using ButterKnife. Firstly, to improve the efficiency of development, we can generate all the View objects in the layout or set the click events of View in on ...

Posted by dstonek on Sat, 19 Jan 2019 21:21:12 -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

Android builds a useful MVP framework (Retrofit+Rxjava2+ButterKnife)

Preface Recently, I have seen a lot of MVP frameworks in the new project, and then I built the MVP framework myself. So I summarize them here and hope you can learn from each other. I. Basic Architecture The structure of MVP is briefly introduced, full name: Model-View-Presenter; it is evolved from the classical model MVC, their basic ide ...

Posted by kaedus on Mon, 31 Dec 2018 10:36:08 -0800

Source code analysis based on Arraylist's add(int index, E object) method and time-consuming comparison with Linkedlist's access data

First, compare the speed of Arraylist and Linkedlist accessing data @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_content_detail); ButterKnife.bind(this); System.out.println("ArrayList Add to" + N + "Time consuming:" + addElements(new ArrayList())); ...

Posted by newbieaj on Sun, 16 Dec 2018 22:33:04 -0800

"A Zero Start of an Android Project" - 4, base (3) BaseActivity - Title

Let's start with two sentences. Today, we enter the third part of BaseActivity, Title. It's a pleasant name. You can see what it means from the name, so you don't need to explain it. (Although you don't want to admit it, it's actually because I'm lazy), so let's start today's content.Or I want to share my code cloud address with you: [Based o ...

Posted by scott212 on Tue, 11 Dec 2018 14:06:06 -0800