Category:Mobile Development

  • Kotlin wave animation


    Learn kotlin and rearrange some of the previous knowledge First of all, for the operation that needs a lot of drawing, you can’t draw directly   Surfaceview can directly put the drawing work into the sub thread for operation. Otherwise, the drawing work will get stuck when it is increased. However, surfaceview is an independent […]

  • Detailed analysis of Android 4.4 RIL SMS receiving process


      Recently, a customer reported that Android couldn’t receive SMS, so he dived into RIL to find out why. Finally, it was found that it was not the RIL problem, but the bc72 reportThe format of the short message is not right, at + cnma = 1 has no effect and other small problems. Although […]

  • The use of fragment and navigation


    Introduction to fragment FragmentSince the introduction of Android 3.0, students who have just contacted will connect it with AndroidActivityCompared with the relationship between HTML fragment and HTML page, it is not accurate. The former is more about the concept of component, which requires a set of management mechanism at runtime; The latter focuses on the […]

  • Implementation example of flutter pseudo asynchronous


    Just like Android has a handle, message queue seems to be a necessary part of the system. Flutter also has its own message queue, but the queue is directly encapsulated in DART’s thread type isolate, but flutter still provides itFutrueThis API is specially used to operate various messages and implement pseudo asynchrony based on message […]

  • How to use Cordova plug-in in IOS


    1、 Preparation Plug in function: open IOS camera 1: Creating plug-ins Plugin create — name [plugin name] – plugin_ ID [plug in ID] – plugin_ Version [plug in version number] plugman create –name CameraDemo –plugin_id cordova-plugin-camerademo –plugin_version 1.0.0 2: Add IOS platform plugman platform add –platform_name ios 3: Create package.json file Package. JSON can be […]

  • Discuss the integrated solution of IOS voice problem in online classroom


    Background In the scene of online classroom, sound is one of the most important content transmission channels. To ensure the stability and reliability of sound is a very important part of the quality of online classroom. At the same time, many function modules in the online classroom are related to sound, so how to deal […]

  • How to implement a custom drop-down menu with animation effect


    When we set the receiving address in the shopping app, there will be drop-down menu items for us to select provinces and cities. Today I’m going to use Android nativeSpinnerControl to achieve a custom drop-down menu function, and with a transparent gradient animation effect. The functions and ideas are as follows: The drop-down menu style […]

  • Android custom view to achieve five star effect


    In this paper, we share the specific code of Android to achieve the effect of five-star praise for your reference. The specific content is as follows This effect must be very familiar to everyone, so how can Android customize this effect? First, customize the attributes: <?xml version=”1.0″ encoding=”utf-8″?> <resources> <declare-styleable name=”RatingStar”> <attr name=”starNormal” format=”reference”/> <attr […]

  • ellipsize_end textview


    Most of the time, the text display is limited, there is a Maxine, and then you are required to intercept at the end of the last line, and the end of the last line is… (XXX text…), so just set the ellipsize in your XML_ Just end,howeverSometimes the demand is strange, system controls can not […]

  • How to use IOS automation testing tool uiautomation


    The instruments tool in Xcode can be used for automatic test of app, performance analysis of memory leak, file read and write operation, etc Part one: familiar with uiautomation of instruments First, select Xcode > Open developer tool > instruments to open the instruments tool, and then select the device and tested app in the […]

  • Android custom view to achieve cool progress bar


    This example for you to share the Android cool progress bar specific code, for your reference, the specific content is as follows Let’s achieve the following effect: Step one:Create attrs folder and customize its properties <?xml version=”1.0″ encoding=”utf-8″?> <resources> <declare-styleable name=”MyProgress”> <attr name=”out_color” format=”color”/> <attr name=”inner_color” format=”color”/> <attr name=”border_width” format=”dimension”/> <attr name=”text_color” format=”color”/> <attr name=”text_size” […]

  • Android custom view imitating QQ movement steps effect


    This example for you to share the Android QQ movement steps of the specific code, for your reference, the specific content is as follows Today we achieve the following effect: First, customize the attributes: <?xml version=”1.0″ encoding=”utf-8″?> <resources> <declare-styleable name=”MyQQStep”> <attr name=”out_color” format=”color”/> <attr name=”inner_color” format=”color”/> <attr name=”border_width” format=”dimension”/> <attr name=”text_size” format=”dimension”/> <attr name=”text_color” format=”color”/> […]