Tag:android

  • Android 2019 latest interview practice summary

    Time:2019-12-9

    Android: How does the headline screen fit today? 1: first calculate the density. Calculation formula: the total screen width of the current device (in pixels) / the total width of the design drawing (in DP) = the reason why 1 DP accounts for the number of pixels of the current device to calculate the density: […]

  • Android studio 1.5 RC1 builds NDK development environment

    Time:2019-12-9

    Android studio has been updated to version 1.5. I upgraded. Recently, the project development needs to be configured with NDK, so it took a little time. Baidu, Google, is always unsuccessful, and the process is very sad. So summarize the configuration process in a small way for future reference, Create a new Android project for […]

  • Some tips in the development of flutter

    Time:2019-12-9

    I’ve been learning about flutter for a while. It’s OK to be idle. I used a cool app design drawing of the company to practice. Of course, the interface can’t be used, so it’s all dead data, and the implementation effect can be said to be perfect (approved by the design…). Of course, I also […]

  • Android development and implementation of small ball effect following fingers

    Time:2019-12-9

    In this paper, an example is given to show how to develop and implement the small ball effect of following fingers by Android. To share with you for your reference, as follows: Configure the drawview class to draw the ball public class DrawView extends View { public float currentX = 40; public float currentY = […]

  • Android custom view: Express timeline implementation

    Time:2019-12-8

    Preface In Android development, the UI of the timeline is very common, as shown in the following figure: Reserve knowledge: 1. User defined view basis2. Use of recyclerview3. Customize recyclerview.itemdecoration Concrete realization 1. The final effect is as follows: 2. Implementation ideas Use recyclerview to customize recyclerview.itemdecoration Review getitemoffsets() method in itemdecoration and override ondraw() […]

  • Casual series: visual ADB

    Time:2019-12-8

    motivation I don’t know when to start. Android studio seems to create several virtual machines by default. That’s all: And then this leads to, you know, typing the ADB commanderror: more than one device/emulatorMistake.So, you have to add the – S parameter after the ADB, with the device For example: adb -s 6S99Q8OR6TT8HMHA shell am […]

  • Android realizes music player

    Time:2019-12-8

    Requirement Description: it has the functions of play, pause, replay and stop. And as the music progresses, the entry bar will be automatically updated. Manually dragging the progress bar will also update the music’s progress. Effect display Sample code MainActivity package com.example.www.musicdemo; import android.Manifest; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.media.MediaPlayer; import android.os.Handler; import […]

  • Detailed introduction to Android retrofit 2.5.0

    Time:2019-12-7

    Preface In Android development, network request is essential In all Android network request libraries,RetrofitIs the most popular web request library for developers Retrofit: 2.5.0 official document retrofit:2.5.0 – github brief introduction RetrofitIt is a framework for Android network request developed by square company, which follows restful design style and is based on okhttp function Support […]

  • A series of problems brought by INS update

    Time:2019-12-7

    At the beginning of this month, INS has been updated. Different from usual, many people find that after using the new version of INS, the account is easy to be locked. What is the situation? This is also a question I have been thinking about in recent days. As an important operation channel for sea […]

  • Instant run, the anti sky feature of Android studio 2.0

    Time:2019-12-7

    As an Android Developer, many times we need to spend a lot of time running on the real machine (virtual machine), for IOSPlaygroundEnvious, this situation will be greatly improved in Android studio 2.0, usinginstant runAfter the first run, you can quickly see the modified results in the real machine, not only the UI can be […]

  • Secret! How to design a high accuracy embedded point frame of flutter

    Time:2019-12-7

    background User behavior buried point is used to record a series of user behaviors during operation, and it is also the core data basis for business judgment. If it is missing or inaccurate, it will bring irrecoverable loss to the business. In the process of migrating business code from native to flutter, idle fish found […]

  • Android uses vitamio plug-in to implement video player

    Time:2019-12-7

    Use the third-party vitamio plug-in to implement a simple player. Vitamio Version (5.2.3) Official website address:Official website address Effect display Effect Project structure Code: MainActivity package com.example.www.app; import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ListView; import android.widget.SimpleAdapter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import io.vov.vitamio.Vitamio; public class MainActivity extends ListActivity { […]