Recent Posts
-
Explanation of Android dialog using examples
Dialog boxdialog What is a dialog box Dialog box is a small window that pops up on the current page. It is used to dis…… -
Implementation method for Android to obtain local IP address and MAC physical address
Get native IP address Get the physical address of this machine The above is the method for Android to obtain mobile ph…… -
How Android studio uses AAR
I brief introduction AAR is a file format similar to jar. But there are differences between them. Jar: contains only c…… -
Share a special way for Android to set up circular pictures
Cardview and ImageView display circular rendering: When I was just looking at the knowledge points of the custom view,…… -
Precautions for Android application permission
Apply for permission for Android programs note Android system provider provides permission application, that is, use u…… -
Detailed explanation and example code of Android listview and adapter
A listview usually has two responsibilities. (1) Populates the layout with data. (2) Handle user selection, click and …… -
Android recyclerview data binding instance code
preface In the last project, there were a lot of recyclerviews, and then I needed to write a lot of adapters and viewh…… -
Several common methods of Android adapter
Several common methods of Android adapter are shared with you. The specific contents are as follows 1. When did the li…… -
Detailed explanation of five layout modes of Android
The five layout methods commonly used in Android are as follows: Linear layout: components laid out vertically or hori…… -
Android news interface simulates the application of listview and viewpager
Simulate the interface of news app 1) Write layout before writing listview: There are two layouts of items: The first …… -
Android image color processing example code
Imitate Meitu XiuXiu, move the mouse to adjust seekbar and adjust the color of the picture The project layout is as fo…… -
Android realizes dynamic expansion and contraction of landing page logo with keyboard retraction and retraction (perfectly solves the problem of keyboard pop-up blocking controls)
In two recent projects, the project requirements require us to realize / * the content of the login page can be pushed…… -
Recyclerview adapter auxiliary class details and sample code
What is it? Baserecyclerviewadapterhelper is a powerful and flexible recyclerviewadapter What can you do design sketch…… -
Android imitation iPhone list data view refresh animation details
Because I like to add some interesting animation when jumping between different pages. Today, I inadvertently see an a…… -
The behavior of material design series realizes the home page of Android
The purpose of this blog is to simulate the animation of hiding toolbar, flocationactionbutton and tab navigation when…… -
Android progress bar component ProgressBar
The first is main XML file The code is as follows: Then write activity Java class The code is as follows: Operation ef…… -
Click the Android simulation switch button to open the animation (translation animation of attribute animation)
In Android, some cool animations are really attractive. They are pleasing to the eye. A good-looking animation may imp…… -
Detailed explanation of Android APK optimization tool zialign
The Android SDK includes a new tool ziphalign for optimizing APK. It improves the interaction efficiency between the o…… -
Android uses addview to dynamically add components
In project development, we often need to add components dynamically. There are two parts that can be added: layout and…… -
Implementation of calender code for Android Custom Calendar
The product needs a check-in function. The check-in function is based on a calendar, so a calendar is customized accor…… -
Use bitmapshader in Android to make a round head with its own border
The effects are as follows: A brief introduction to bitmapshader What shaders are, what kinds of shaders are there and…… -
Three lines of Android code to achieve smooth switching between day and night modes
Usage xml android:background= ? Attr / zzbackground app: backgroundattr = zzbackground / / if the current page needs t…… -
Android calls the system camera to take photos and record videos
This paper implements the call of Android system camera to take photos The layout of the project is quite simple, with…… -
Android custom actionprovider toolbar implements menu red dots
Today's goals: 1 Custom actionprovider 2 Toolbar actionbar custom menu 3 Add a corner sign to the menu on the right si…… -
Detailed explanation of code confusion examples in Android App
Receive a new task to code confuse the existing project. I have some understanding of confusion before, but it is not …… -
Android dialog full explanation and sample code
Activities provides a dialog box mechanism for creating, saving and replying that is convenient for management, such a…… -
Solution to key problem of Android settag method
When Android designs the view class, in order to store some auxiliary information, it designs a settag / gettag method…… -
Java – where to call public static void main?
I just want to know where our main methods are called Solution It is specified in the Java language specification, 12.…… -
Using JavaFX application. On the shutdown hook Stop() method
So I use shutdown hooks for cleaning, because it does not always guarantee the execution of the shutdown hooks thread.…… -
Java – does explicit locking automatically provide memory visibility?
Example code: class Sample{ private int v; public void setV(){ Lock a=new Lock(); a.lock(); …… -
Java – comparison of positive and negative zeros
Why is java inconsistent when comparing - 0.0 and 0.0? What is the Java standard way to compare numbers to - 0 / 0? I …… -
Java – “with private access” errors and generics
I have a problem I can solve myself, but I still don't understand why my original code doesn't work, or if there is a ……