Understand EventBus and realize its basic functions

Understand EventBus and realize its basic functions Basic usage of EventBus and understanding of each step: Note: it is only the initial implementation of basic processes, viscous events and sub threads are not in the scope, only for self memory 1, Register to listen to EventBus.getDefault().register(this); Save the class ...

Posted on Sun, 09 Feb 2020 07:05:31 -0800 by pahikua

Ultra pull to refresh super simple implementation of custom animation (2)

Preface Next to a blog, Ultra pull to refresh super simple ultimate implementation pull-down refresh, pull-up load entry implementation (1) The last one is to realize the simple function of refreshing and loading. But such simple animation often can't meet our needs, so we can use an example of JD refresh to realize customiz ...

Posted on Sat, 08 Feb 2020 09:26:43 -0800 by dross613

hiveSQL basic statement 2 -- common functions (timestamp, time interval, if, case)

View all functions show functions; View a function desc function extended from_unixtime; 1, The timestamp is converted to the function from "unixtime" in the specified format Format: from "unixtime (bigint unixtime, string format) format yyyy-MM-dd hh:mm:ss Yyyy MM DD HH 12 hour sys ...

Posted on Wed, 05 Feb 2020 23:19:24 -0800 by spaggle

Development of Gobang based on android

Development of Gobang based on Android requirement analysis 1 chessboard and chess drawing Make the rules of the game according to the rules of Gobang 3 mouse response in the game, you need to click the mouse to play chess 4. Game mode: duel between two players, which is the first and which is the ...

Posted on Mon, 03 Feb 2020 08:27:17 -0800 by ramrod737

How do I set font styles to bold, italics, and underscores in Android TextView?

I want TextView content to be bold, italicized, and underlined. I tried the following code and it worked, but didn't emphasize it. <Textview android:textStyle="bold|italic" .. What shall I do? Any quick ideas? #1 building This is an easy way to underline while maintaining other settings: textView.setPaintFlags(textView.getPaintF ...

Posted on Mon, 03 Feb 2020 06:07:06 -0800 by expl0it

[Android series 2.0 process - application process]

Application process //Write simply, and add later Virtual machine instance Information cycle Binder thread pool Create process AMS connects Zygote through unix domain socket to fork out the application process AMS is the service opened by the SystermService process from Zygote fork (TODO: specifi ...

Posted on Sat, 01 Feb 2020 08:43:38 -0800 by csaba

cordova Learning 3: simulator running + photographing + positioning

Simulator running: Open android studio Click Tools - > Android - > AVD manage - > Click triangle to start If you have not created a new Virtual Device, please create it first and configure the various configurations you need Please refer to: https://developer.android.google.cn/studio/run/emulator      After the simula ...

Posted on Fri, 31 Jan 2020 09:12:30 -0800 by Lukey

How to use Looper and Handler correctly

How to use Looper and Handler correctly    there are many articles about Looper parsing on the Internet. I believe that all Android developers can't be familiar with the use of Handler. What's the significance of this article? Of course, I won't introduce any Looper Handler Message mechanism. If you don't know the Ha ...

Posted on Fri, 31 Jan 2020 05:26:18 -0800 by fahad

android version update and download install android 7.0

The version update before android 7.0 is actually quite simple. You only need to use the system downloader to complete the download and installation. However, after android 7.0 upgrades the security mechanism, the download and installation are limited. Here I have installed several tools for developers to use: add permission ...

Posted on Fri, 31 Jan 2020 04:54:31 -0800 by tbone05420

Getting started with Mockito for Eclipse

Getting started with Mockito for Eclipse Summary In Java unit testing, we often encounter scenarios that depend on other modules, but other modules are not well developed, such as the following figure:  The "tested module A" depends on the module B/C/D. during unit test, you can Mock the B/D (Note: you do not need ...

Posted on Tue, 28 Jan 2020 07:24:19 -0800 by Karve