Gradle configuration skills
I summarized four gradle configuration skills, which can be more convenient for debugging and packaging in Android projects 1. Use gradle's custom Property to realize unified management of configuration and dependency of Android project 2. Use gradle's produc ...
Posted on Tue, 30 Jun 2020 12:40:10 -0400 by Tomcat13
Easy to bind components and use
Handle click events easily, such as viewholder in adapter
At the same time, child components do not need to be bound when parent components are boundBe careful
Used after setcontentview, and subspace cannot use static final attribute anymore
Expand the click event without changing t ...
Posted on Mon, 08 Jun 2020 13:19:15 -0400 by jacinthe
QR code scanning example
1. Rely on zxing
2. QR code generation
3. QR code scanning
4. onActivityResult receives QR code scanning results
It can be quickly integrated through the open source framework. zxing is a powerful QR code scanning library launched by Google, which supports multiple platf ...
Posted on Tue, 31 Mar 2020 06:07:39 -0400 by pandaweb
It's time to embrace ViewBinding!!
2, Getting to know ViewBinding
3, Embrace ViewBinding
3.1 environmental requirements
3.2 turn on the ViewBinding function
3.3 use of ViewBinding in Activity
3.3.1. Direct controls in layout
3.3.2 imported controls in layout
Thousands of sails pass ...
Posted on Tue, 25 Feb 2020 06:05:59 -0500 by alpha2zee
I'm in a bad mood. It's been a long time. Let's look at the BaseFragment code
private boolean isViewCreated;
protected boolean isInitData;
private Unbinder mUnBinder;
protected Context mContext;
private CompositeDisposable mCompositeDisposable;
private List<Observer> observerList;
private View view;
Declare some param ...
Posted on Sun, 09 Feb 2020 10:46:48 -0500 by Pr0digy
Introduction to EasyUI
1. Implement butterknife-like IOC frameworks using reflection mechanisms and annotations
2. Fast findViewById and OnClick
3. Extended click without network monitoring
4. Extended Quick Click Monitoring
2. Initialization (optional)
This step mainly conf ...
Posted on Mon, 20 Jan 2020 11:23:32 -0500 by svan_rv
Original view: https://blog.csdn.net/calvin_zhou/article/details/79253709
After a general App refresh, it will show how much content or update has been added. It is common for news or live broadcast. So, how to achieve this effect?
Pull down refresh to get the latest data of the server. The size of the data collection ...
Posted on Tue, 17 Dec 2019 16:21:35 -0500 by Amman-DJ
For various reasons, Android Gradle needs to be upgraded. When gradle > 3.0, Java 8 is supported by default. Each large version upgrade involves a lot of content, so you should be as careful as possible, but you should simply record the problems encountered in the upgrade process;
Upgrade classpath 'com.android.tools.build:gradle:3.0.1'
Posted on Sun, 15 Dec 2019 06:36:48 -0500 by Kinneh
Android Netease cloud history search and hot Tags
Recently, we have developed a Netease cloud music player. There is a need to display search suggestions and historical search records
Project address: https://github.com/shellhub/NetEaseMusic
As can be seen from the rendering, if the label i ...
Posted on Sat, 30 Nov 2019 11:33:28 -0500 by DickDeeds
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