Android
-
Android simple file manager instance (list file directory)
Core code: File fatherFile = new File(path); File[] files = fatherFile.listFiles(); design sketch: To implement this l…… -
Android monitors touch events in fragment
This paper introduces the implementation of monitoring fragment's touch event. If you have a better mechanism, you can…… -
Comparison of Android custom button click event and long press event
Comparison of Android custom button click event and long press event A button implements click and long press events a…… -
Tutorial on how to add services to Android system
preface Recently, because the company's platform is moving from Android 4.4.4 to Android 6.0, the problem is that we h…… -
Android imitation bubble window implementation of drop-down menu bar example code
Function Description: click the drop-down button to display all entries. There are deletion and click functions. After…… -
Analysis of file mechanism for Android data persistence
This paper describes the file mechanism of Android data persistence. Share with you for your reference, as follows: In…… -
Implementation code of exit confirmation box in Android
This is achieved by blocking and rewriting the operation of the fallback key: when the fallback key is pressed, a prom…… -
Android uses < layer list > to realize wechat chat input box function
LayerDrawable The < layer list > tag can set layerdrawable, a layered drawable overlay effect, < layer list &…… -
Android manually obtains judgment processing permission
Several methods are mainly used: Permission constant ID: Among the above four methods, the first three methods are ava…… -
Android web image viewer and web source viewer
Add the permission to access the network in androidmanifest.xml: <uses-permission android:name="android.permission.…… -
Mobile phone number, name (including minority), ID number verified by Android regular expression.
Recently, mobile phone name, ID number and other information are needed to verify the new function. The best way is to…… -
Application details of Android touch events
preface The last article talked about the transmission mechanism of Android touch events. For details, see here to lea…… -
Android implements the background sliding login interface (pop-up keyboard without compressing the background)
Without much nonsense, let's take a look at the effect after implementation: Realization idea See the effect of the GI…… -
Analysis of Scrollview — imitation QQ space title bar gradient
Let's take a look at the renderings first: We need to get the height of the picture and set the scroll monitor. With t…… -
Android selects the video file to upload to the background server
This example shares the specific code of Android selecting video files to upload to the background server for your ref…… -
Android EditText implements segmentation of input content
There may be many input boxes that need to enter mobile phone numbers, bank card numbers or ID number in the project. …… -
Android adds text and image watermark example code to images
We sometimes need to add watermarks to pictures when we are doing projects. Shuihan encountered such a problem today, …… -
Method of clicking hyperlink to start QQ in WebView in Android
preface Once in an interview, the interviewer asked how to click a hyperlink in WebView to start a type of QQ similar …… -
Graphic tutorial of Android studio installation and configuration method
This article mainly explains some problems encountered in installing Android studio and configuring environment variab…… -
Java.net.bindexception: bind failed: eaddinuse problem in Android solution
Java.net.bindexception: bind failed: eaddinuse problem in Android solution Look at the following questions: resolvent:…… -
Talking about Android getting pictures on ImageView and a possible problem
1. Call setdrawingcacheenabled (true) before obtaining the picture: Example: mimageview.setdrawingcacheenabled (true);…… -
Detailed explanation of the method of drawing dashed lines by Android custom view
preface To tell you the truth, when I first saw this requirement, my first reaction was that canvas only had drawLine …… -
Dynamically add height instances of LinearLayout
Examples are as follows: Note: obtain the screen width first, and obtain the height of the layout through the screen w…… -
Android starts the activity implementation code in another app / APK
Android starts the activity implementation code in another app / APK preface: Android provides the ability to start an…… -
Detailed explanation and application of Android layoutanimation
Detailed explanation and application of Android layoutanimation preface: Recently, when playing an app, I found that w…… -
Detailed introduction to Android and H5 intermodulation
Detailed introduction to Android and H5 intermodulation Wechat, microblog, wechat, QQ space, a large number of softwar…… -
How to implement the activity of starting another program in Android
How to implement the activity of starting another program in Android You can use action, for example: 1. For example, …… -
Detailed introduction to modifying datepicker font color and split line color for Android
1、 Introduction to datepicker and TimePicker Datepicker is a date selection control, which inherits from the FrameLay…… -
How does Android enable full screen video playback on HTML5 pages in WebView
preface This article mainly summarizes and shares a problem encountered in recent work, and mainly introduces how to m…… -
Android realizes the functions of clicking on the picture in the WebView interface to slide browse and save the picture
1、 Implementation requirements Recently, the requirements encountered in the company's projects are as follows: 1. Cl…… -
Android five ways to hide the status bar and title bar
Android five ways to hide the status bar and title bar Method 1: Method 2: Method 3: Method 4: dynamically display and…… -
Detailed explanation of switching language in app
A few days ago, the customer requested to add a function to the app. This function is already very common in the marke……