Android Advanced Drawing - Custom View Fully Mastered

This is the second blog in the Custom View series. Let's continue to learn about Custom View. Today, let's implement the ad banner case. We want to achieve such an effect. To achieve this effect, we can use the ViewPager control, and then add some custom controls to complete. So let's start now. Create a new android project. Modify the activity ...

Posted on Mon, 26 Aug 2019 01:02:49 -0400 by bigsexychris

Advanced Architecture, Principle and Use of Dagger 2

Catalog One: What is Dagger 2? Second: Why Dagger 2 Three: How to use Dagger2 Basic concepts How to use Dagger2 Advanced Usage (1) When other parameters are needed for the construction method (2) Dependency between modules (3) @Named annotation (4) @Singleton annotation (5) Custom Scoped (6)Subcomponent (7) lazy and Provider I ...

Posted on Fri, 09 Aug 2019 04:34:00 -0400 by adam87

Activity Transition Animation - Make Switching Cooler

introduce In Android version 5.0 and above, google provides us with several kinds of transition animation of activity switching, in order to make the transition of activity switching more beautiful, while the activity switching before Android 5.0 appears stiff. Although you can customize to add animation effect to activity, the eff ...

Posted on Tue, 06 Aug 2019 06:18:24 -0400 by anthonydamasco

Handwritten ButterKnife Framework

Preface   It is said that Huawei laid off employees over 34 years old, although it is rumored, but Huawei clearly stipulates that retirement after 45 years old is a real, big to BAT, small to start-up companies. It is also true that enterprises now prefer to recruit young people. People in middle age have less learning ability and physical fi ...

Posted on Sun, 14 Jul 2019 14:07:49 -0400 by php new bie

The Use of RxAndroid (I)

RxAndroid is a powerful framework, which means the cost of mastering is relatively high. It has been studied intermittently for a long time. Today, when it is written out, the output is the better input. What is Rx Rx is not a new language, but a common Java pattern, similar to Observer Pattern, which can be regarded as a common Java class ...

Posted on Wed, 10 Jul 2019 17:02:41 -0400 by MattG

One of Android Design Libraries

After using the Design package, I instantly feel that my APP is getting higher. Mom no longer has to worry about my personal App Design ugliness. Snackbar Snackbar can easily replace Toast. Implement a more elegant lightweight prompt function. Action s can also be set. At the same time, only one Snackbar can be displayed on the interface. Let's ...

Posted on Sun, 30 Jun 2019 18:48:54 -0400 by cedtech31

Fast, easy to use! Superb Butter Knife 8.8.1

Usage of ButterKnife 8.8.1 What is ButterKnife ButterKnife is a commonly used framework for assistant code generation based on Java annotation mechanism; annotation processors are used. It is a View injection framework focusing on Android system, which binds Android views and callback methods to member variables and methods, visualizes on ...

Posted on Mon, 20 May 2019 18:53:27 -0400 by NerdConcepts

Custom Annotation Processor Generation Code

Custom Annotation Processor Generation Code First of all, the previous code: public class MainActivity extends AppCompatActivity { @BindView(R.id.tv) TextView tv; @BindView(R.id.tv2) TextView tv2; @BindView(R.id.tv3) TextView tv3; @Override protected void onCreate(Bundle savedInstan ...

Posted on Thu, 09 May 2019 15:48:39 -0400 by kazer

The pits that Fragment encounters when nesting Fragments

Reprint address http://www.jianshu.com/p/58196b8116cf Because the project will change to MVP mode, fragments will be used naturally. Sometimes it may need to nest multiple fragments in a Fragment, and add needs to refresh the View of sub-fragments immediately after completion. Then an exception will be thrown. First, look at a piece of c ...

Posted on Wed, 17 Apr 2019 17:45:33 -0400 by sajy2k

Dragger 2 encounters pits Dragger 2 detailing Dragger 2's best learning materials

Dragger2 is what I'll stop talking about. I recommend two articles, both of which are carefully selected by me. I don't recommend general articles. http://android.jobbole.com/82694/ http://android.jobbole.com/82704/ http://android.jobbole.com/82705/  With a basic understanding, come and talk to me, helloworld.   Step 1: Co ...

Posted on Sat, 13 Apr 2019 12:42:33 -0400 by Simplicity