-
Set anchor points for pictures according to anchor point coordinates -
Anchor has click event -
The picture can be zoomed in and out and moved, and the relative position of anchor point remains unchanged
allprojects { repositories { ... maven { url ' https://jitpack.io ' } } }
dependencies { implementation 'com.github.OCNYang:AnchorImageViewDemo:v1.3' }
Please refer to the Demo source code
-
Create an xml folder under the res folder, and then create a network_security_config.xml file with the following contents: It has been provided in the library and can be used directly <? xml version="1.0" encoding="utf-8"?> <network-security-config> <base-config cleartextTrafficPermitted="true" /> </network-security-config> -
Next, add the following attributes to the application tag under the AndroidManifest.xml file: <application ... android:networkSecurityConfig="@xml/network_security_config" ... />