Category:Android

  • Unique identification of Android device (multiple implementation schemes)

    Time:2020-1-21

    Preface In project development, how many times do you meet this requirement: obtain the unique device ID for:1. Identify a unique device for accurate data distribution or statistical analysis;2. The account is bound to the device; 3….. Analysis In this kind of articles, there are many materials on the Internet, such as: using IMEI, MAC, […]

  • Android custom left and right slide and click line chart

    Time:2020-1-21

    Preface A few days ago, I was asked to write a line chart. You can click it and slide it left and right. There must be many projects that have been used for polyline, so there must be many demos on the Internet, such as Android chart and hellochart. They have rich functions and great […]

  • Android bsearcheedit search results selection box

    Time:2020-1-19

    EditText search results drop-down box, auto or callback mode, DIY, easy to use #Support automatic display of search items #Support manual display of search items (you can record the historical data by yourself, and pop up the search items after requesting callback) #Background support color, selector, image and other resource attributes Github address YangsBryant/BSearchEdit (GitHub […]

  • Android filters multiple keyword logs on Ubuntu

    Time:2020-1-19

    1 problem For example, when we look up problems, we need to filter multiple keywords. My usual practice is that one terminal executes the following commands, and then several keywords are used for several terminals. It is not convenient to switch to the log adb logcat | grep **** 2. Improvement methods Today, we saw […]

  • Android dselector Bryant radio scroll selector

    Time:2020-1-18

    Radio scroll selector, DIY rich, damping effect, simple and beautiful, touch or click mode Github address YangsBryant/DSelectorBryant  (GitHub is a good typesetter. It’s recommended to check the details here. If you think it’s good,Order a star!)   Introducing module allprojects { repositories { google() jcenter() maven { url ‘https://www.jitpack.io’ } } }   implementation ‘com.github.YangsBryant:DSelectorBryant:1.0.2’ […]

  • Three simple ways to implement the network request of flutter

    Time:2020-1-18

    Summary: App can hardly be separated from the interaction with the server. This paper mainly introduces three ways of network request: httpclient, the third-party library HTTP and the third-party library DIO. This paper is a summary of the author’s knowledge of the network module of flutter. If there is any problem, I hope you can […]

  • Android bgradualprogress multiple gradients, right angle or arc angle, progress bar, loading bar

    Time:2020-1-17

    Various gradients, right or arc angle, progress bar and loading bar can be realized Github address YangsBryant/BGradualProgress (GitHub is a good typesetter. It’s recommended to check the details here. If you think it’s good,Order a star!) Introducing module allprojects { repositories { google() jcenter() maven { url ‘https://www.jitpack.io’ } } }   implementation ‘com.github.YangsBryant:BGradualProgress:1.0.4’   […]

  • An easy solution to Android memory leak

    Time:2020-1-17

    Preface The purpose of memory management is to effectively avoid memory leakage in our applications during the development process. We believe that we are all familiar with memory leak. We can understand it as follows: “the phenomenon that useless objects cannot be recycled is memory leak.”. If there is a memory leak in the program, […]

  • Machine learning AI Google ml kit and apple core ml

    Time:2020-1-16

    Summary AI on the mobile end usually refers to “machine learning”.Definition: machine learning is actually to study how computers simulate human learning behavior, so as to acquire new knowledge or skills, and reorganize the existing knowledge structure to improve itself continuously. In the sense of practice, machine learning is a kind of algorithm that can […]

  • A complete explanation of the default value of kotlin function

    Time:2020-1-16

    Function defaults As we all know, the Java language does not support using default values for parameters. Some people say that this is because “default parameter” and “method overload” are supported at the same time. I don’t know the real reason. But for me, Java doesn’t support this feature. It’s really painful. Although using method […]

  • Android shape for shadow or blur edge effect

    Time:2020-1-15

    1. To achieve shadow or blur edge effect:     2. It is realized by shape, specifically by layer list multi-layer stacking Use: android:background=”@drawable/layer_white_bg” Top zoomed: Android: Top = 2 * 5 = 10dp

  • Example of timer function developed and implemented by Android

    Time:2020-1-15

    This paper describes the timer function developed and implemented by Android. To share with you for your reference, as follows: Design sketch: Layout: Three buttons plus a chrome meter <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” tools:context=”.MainActivity” android:orientation=”vertical” android:gravity=”center_horizontal”> <Chronometer android:id=”@+id/test” android:textSize=”25pt” android:layout_width=”wrap_content” android:layout_height=”wrap_content” /> <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:orientation=”horizontal”> <Button android:id=”@+id/start” android:layout_width=”wrap_content” android:layout_height=”wrap_content” […]