Android flexible switch pull-down refresh (policy mode + reflection)
Recently, I want to change the pull-down to refresh, but I don't want to discard the previous one. I want to know whether both of them can coexist. Before using it, configure A to use A, and configure B to use B. (the principle is to control the use of corresponding strategies through reflection)
It is very simple to use. You can directly swi ...
Posted by ShaileshD on Sun, 05 Apr 2020 06:05:10 -0700
android reflection usage -- the usage of reflection method in IWIndowManager
If you don't say much, just go to the code. It's in the code meaning annotation
Method getRotation ;
Object IWindowManager ;
public void getRotation(){
try {
//Load to get the ServiceManager class, and then get the method getService.
Method getServiceMethod = Class.forName("android.os.ServiceM ...
Posted by pinochio on Sun, 05 Apr 2020 04:22:04 -0700
Android gets the absolute path of the picture according to the picture Uri
This article is reprinted from a brief book tianma , at: http://www.jianshu.com/p/b168cbe50066
When we need to select and take pictures to show them, we usually do the following:
// Enter the picture selection interface
private void selectImage(){
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
in ...
Posted by gnetcon on Sun, 05 Apr 2020 00:45:01 -0700
Vue implementation of 6-digit password (IOS WebView carton optimization)
In ios system, when the native webview nesting H5 page is used, the completed 6-digit input password is written, and the solution to the password stuck problem is as follows:
The following picture:
The reason is because of CSS. In short, if the style left is negative, this problem will not appear in android visual i ...
Posted by ppgpilot on Sat, 04 Apr 2020 23:50:03 -0700
Retrofit+BroadcastReceiver realizes the function of App version update
Preface:
In the process of project development, there is generally a need for "version update". We can judge whether to upgrade according to the version code. Generally, for each version update, the version number is increased by one. If the version number on the get server is higher than the version number of this program, you will ...
Posted by PGTibs on Sat, 04 Apr 2020 22:30:56 -0700
Android studio production welcome interface and Application Icon
Preface
Hello, I'm Vic. Today I'll give you an overview of Android studio's production welcome interface and application icons. I hope you like it
Welcome interface and Application Icon
This project uses Android Studio 3.0.1 as a development tool
activity_splash.xml
An activity_splash.xml layout file is created. To welcome the ...
Posted by 758 on Sat, 04 Apr 2020 19:18:39 -0700
Simple use of PhotoView
Preface
This is a picture viewing library, which can realize the function of picture browsing, support the function of gesture or click zoom, support the use in ViewPager, and allow the application to notify the users on the photos to click
Wechat's head image can be enlarged by clicking, and many App's image display can be r ...
Posted by westexasman on Sat, 04 Apr 2020 14:16:08 -0700
Encapsulation of Android logstore Logger and the problem of AS3.0 log not being aligned
It doesn't matter how to introduce loggers. There are a lot of them on the Internet. This article records the encapsulation of loggers in use and the use of loggers in Android Studio 3.0 and above.
Encapsulation of Logger
When using any third-party library, if you can encapsulate it once to replace it later, o ...
Posted by yuan22m on Sat, 04 Apr 2020 12:10:11 -0700
Self-timer Tutorial 52 Python_adb Run Shell Script
Android, as a Linux terminal, must have run Shell scripts that support the.sh suffix.
Sometimes the test environment prepares or intercepts complex logs for a long time, and so on, the development will give you some Shell scripts.
Benefits of Shell script execution:
Quick and efficient, Shell scripts are supported on Linux terminals.
Since th ...
Posted by timvw on Sat, 04 Apr 2020 09:51:50 -0700
Android creates local folders, creates local files, and accesses local files
Before this, you need to obtain read-write access to the memory. Add the following in AndroidManifest.xml:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:nam ...
Posted by silviuchingaru on Sat, 04 Apr 2020 06:01:33 -0700