Category:Mobile Development

  • Android uses table layout to design the registration interface

    Time:2021-7-31

    Android uses table layout to design the registration interface for your reference. The specific contents are as follows The registration page includes: user name, password, confirmation password and verification code. The verification code is generated using an encapsulated tool class and can be used directly. The renderings are shown below. No event handling, just a […]

  • IOS enables cell folding

    Time:2021-7-31

    This example shares the specific code of IOS to realize cell folding for your reference. The specific contents are as follows The core of folding is that the number of rows or columns of a cell changes in real time The more important steps are: 1. Set array (variable array, used to update cell content) […]

  • Flitter uploads files directly to alicloud OSS

    Time:2021-7-30

    catalogue code implementation Example of calling upload Another way preparation: Give a tool class code implementation The following is a class I wrote to upload OSS. You can directly upload OSS by replacing the parameters ossaccesskeyid, ossaccesskeysecret, bucket, URL and expiration import ‘dart:convert’; import ‘dart:io’; import ‘dart:math’; import ‘package:crypto/crypto.dart’; import ‘package:dio/dio.dart’; class UploadOss { static […]

  • The following methods for changing the font of immersive navigation bar in Android 6.0 (only valid for some mobile phones)

    Time:2021-7-30

    This method is only valid for some phones below Android 6.0 (the color can be modified successfully). If it is invalid, the navigation bar is translucent and the font can be seen. Android immersive navigation bar is very common, which can “integrate” the status bar with the title bar of the mobile phone and look […]

  • IOS realizes the floating effect of dragging view with fingers

    Time:2021-7-30

    This example shares the specific code of dragging view to float with your finger in IOS for your reference. The specific contents are as follows design sketch: 1. Customize the view to float with the finger // // OrangeView.m //Drag the view to float with your finger // // Created by llkj on 2017/8/16. // […]

  • Android serialization 36 – query data, use of native SQL and use of transactions

    Time:2021-7-29

    1、 Query data Android’s query database operation is very complex. Sqlitedatabase uses the query method to find data, which contains many parameters. Let’s take a look Query() method parameters Corresponding SQL part describe table from table_name Table name colums select colum1,colum2 Column name to query selection where column = value constraint condition selectionArgs – Provide […]

  • Android realizes the progress effect of text dynamic highlight reading

    Time:2021-7-29

    This example shares the specific code for Android to realize the dynamic text highlight reading progress for your reference. The specific contents are as follows 1. Renderings Similar to the effect of lyrics. Play the audio of the following text, and the audio playback progress shall be consistent with the text highlighting progress. 2. Code […]

  • IOS realizes picture dithering effect

    Time:2021-7-29

    This example shares the specific code of IOS to realize the image dithering effect for your reference. The specific contents are as follows design sketch: Core code: // // ViewController.m //Icon jitter // // Created by llkj on 2017/8/29. // Copyright © 2017 laynecheung. All rights reserved // #import “ViewController.h” #define angle2Rad(angle) ((angle) / 180.0 […]

  • Pit and summary in the development of Android widget

    Time:2021-7-28

    @ catalogue summary Official reference design sketch AndroidManifest.xml Receiver Service Options res/xml/ widget_desktop_options.xml Common parameters Size updatePeriodMillis initialLayout Using App Widgets with Collections Official reference AppWidgetProvider RemoteViewsService RemoteViewsFactory DesktopActivity summary Official reference Build an App Widget design sketch Put a rendering. This is the desktop app folder I play AndroidManifest.xml Receiver Remember not to make […]

  • Transparent animation for Android

    Time:2021-7-28

    This example shares the specific code of Android transparent animation for your reference. The specific contents are as follows There is an activity on the home page public class AlphaAnimationActivity extends AppCompatActivity { private ImageView mImageView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_frame_animation); //It’s just an ordinary picture mImageView = findViewById(R.id.imageview); … here are […]

  • IOS drawer effect

    Time:2021-7-28

    This example shares the specific code of IOS drawer effect for your reference. The specific contents are as follows Drawer effect: #import “DragerViewController.h” #define screenW [UIScreen mainScreen].bounds.size.width @interface DragerViewController () @property (nonatomic, weak) UIView *leftV; @property (nonatomic, weak) UIView *rightV; @property (nonatomic, weak) UIView *mainV; @end @implementation DragerViewController – (void)viewDidLoad { [super viewDidLoad]; //Add child […]

  • Android serial 37 – sharing data across programs

    Time:2021-7-27

    1、 Content provider Use content providers to share data It can accurately control which data can be shared and which data cannot be shared The content provider has two uses: (1) use the existing content provider to read and operate the data in the corresponding program( 2) Create your own content provider to provide external […]