base (5) base Fragment Packaging

Let's start with two sentences. First of all, I would like to apologize to you, before the end of the BaseActivity part and the ButterK part are somewhat excited, after the blog was sent out, I forgot to submit the code to git. When I opened the project, I saw all the green and blue files. It's really embarrassing. I have submitted them, so I ...

Posted by suigion on Thu, 13 Jun 2019 11:21:21 -0700

Android Compile-Time Annotations Generate Code

Android Compile-Time Annotations Generate Code *This project is for learning purposes only and ButterKnife is recommended as part of the project* 1 Introduction _In the current stage of Android development, annotations are becoming more and more popular, such as ButterKnife, Retrofit, Dragger, EventBus, and so on.Depending on the processi ...

Posted by ElizaLeahy on Fri, 07 Jun 2019 11:11:52 -0700

Annotative Framework--The Use of Butterknife

Write in front: This document uses version 7.0, version 8.0 method name has been changed, it is recommended to see the official document, the overall business logic and principles have not changed. Official website In the process of android programming, we will write a lot of layout and click events. Simple and repetitive operations like i ...

Posted by Dev on Tue, 21 May 2019 12:47:51 -0700

Common plug-ins for Android Studio

1. Import third-party jar packages and open source libraries Import local jar Copy the jar file to libs, right-click on the jar file and select add as a library to import. The compile of build.gradle in the module will increase. compile files('libs/butterknife-6.1.0.jar') If builder.gradle already has compile fileTree(include: ['*.jar'], dir: ' ...

Posted by Irvin Amoraal on Fri, 19 Apr 2019 14:21:32 -0700

Java Annotation Processor

Some basic concepts Before we start, let's first state a very important issue: we don't discuss annotations that are processed at Runtime through a reflection mechanism, but rather annotations that are processed at Compile time. Annotation Processor is a tool of javac that scans and processes annotations at compile time. You can customize ann ...

Posted by felodiaz on Fri, 19 Apr 2019 11:48:33 -0700

Manual Implementation of IOC Framework

The popular annotation framework is butterknife. The main purpose of using annotation framework is to improve the coding efficiency and write as few duplicate codes as possible, such as findviewbyid. Annotations are divided into compile-time annotations and run-time annotations, butterknife is compile-time annotations, and the framework implem ...

Posted by Patch^ on Thu, 04 Apr 2019 17:21:31 -0700

Retrofit2 of Network Framework

Retrofit2 of Network Framework Summary Restrofit framework is a network framework produced by Square Company. With annotations and dynamic proxy, it greatly simplifies the tedious steps of network requests and is very suitable for handling Restful network requests. Main features: Good performance, fast processing, simple use. One of the ...

Posted by vargefaret on Thu, 28 Mar 2019 09:36:29 -0700

BUTTERKNIFE--VIEW Injection Framework

Original address: http://stormzhang.com/openandroid/android/2014/01/12/android-butterknife/ As the saying goes, "A programmer who is not lazy is not a good programmer!" As an Android developer, are you often tired of a lot of findViewById and setOnClickListener code? ButterKnife It's a View Injection Framework that focuses on And ...

Posted by llandudno on Tue, 26 Mar 2019 08:06:28 -0700

android Learning - Tab Tab Tab Tab Tab with TabLayout and some problems encountered (1)

Use of TabLayout Foreword: Better to use, more convenient and more concise link:https://developer.android.google.cn/reference/android/support/design/widget/TabLayout.html 1. start 1.1 Add a reference to TabLayout compile 'com.android.support:design:25.1.0' 1.2 Adding TabLayout layout to xml <android.support.design.widget ...

Posted by qt4u on Mon, 25 Mar 2019 00:21:27 -0700

Android AOP(1): APT Annotation Processing Tool Annotation Processing Processor

introduce APT(Annotation Processing Tool), an annotation processor, is a tool for processing annotations, specifically a tool for javac, which scans and processes annotations at compile time. The annotation processor takes Java code (or compiled bytecode) as input and generates. java files as output. Simply put, at compi ...

Posted by jayshadow on Wed, 06 Feb 2019 04:39:17 -0800