Android copy of QQ nickname Effect 2
This paper is synchronized from http://javaexception.com/archives/77
Background:
stay Last article In, we give a scheme to copy QQ effect. Today we will talk about another way to realize it. Mainly relying on an open source project https://github.com/shangmingchao/PopupList.
terms of settlement:
PopupList.java code encapsulation is relativ ...
Posted by yogibear333 on Tue, 19 Nov 2019 07:42:49 -0800
Android learning notes
The button changes the background as you press:
First write a selector.xml:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- Specify picture when pressed-->
...
Posted by 22Pixels on Mon, 18 Nov 2019 11:22:49 -0800
System UI native tower replaced by five grid tower
As shown in the figure below: to customize Google's native integrated tower icon into a grid icon, the relevant code flow:
The native signal tower is shown in the figure below:
Schematic diagram of customized five grid signal tower:
The original scheme is drawn by SignalDrawable according to the current signal ...
Posted by ShaolinF on Mon, 18 Nov 2019 09:46:44 -0800
Reverse a certain autumn aviation algorithm
@TOC
Reverse a certain autumn aviation algorithm
According to packet capturing analysis, each page request of an autumn app will first send a request to / ECMember/secretKey/getSecret, most likely to obtain the key. The request and response are both base64 encoded ciphertext.
Capture analysis
Decompile
Here we open it with jebAs you can see fr ...
Posted by luca200 on Mon, 18 Nov 2019 08:52:03 -0800
About the use of verticaltablelayout
Now many Android mobile terminals will use the combination of TabLayout+ViewPager. The native only has horizontal layout design. Here is a vertical tablayout control.I use AS, just introduce compile 'q.rorbin: verticaltablelayout: 1.2.5' into gradle
Find this class q.rorbin.verticaltablayout.VerticalTabLayout
setTabHeight set TAB heightSet ind ...
Posted by Tyrant on Mon, 18 Nov 2019 07:54:13 -0800
Picture Loading Frame Picture Loading Frame Selection Mid-story
Ali P7 Mobile Internet Architect Advanced Video (Updated Daily) Free Learning Click: https://space.bilibili.com/474380680This article will use Glide to illustrate the Picture Loading Frame selection:
First, add dependencies
implementation 'com.github.bumptech.glide:glide:4.5.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0'
The ...
Posted by Fearsoldier on Sun, 17 Nov 2019 18:40:31 -0800
Basic course of Xamarin chart Development -- OxyPlot framework
Basic tutorial of Xamarin chart development (8) OxyPlot framework
[example OxyPlotFormsDemo] display the line graph in Xamarin.Forms.
(1) open the Xamarin.Forms project.
(2) add the OxyPlot.Xamarin.Forms component to the introduction of each subproject.
(3) open the MainActivity.cs file of the subproject OxyPlotFormsDemo.Android, and initia ...
Posted by OnePlus on Sat, 16 Nov 2019 06:40:02 -0800
Using LiveData to implement EventBus
Introduction
This article is a study note written after learning the article of the big guy and doing it yourself. The article of the big guy is well written. I can't describe it clearly by myself, so many parts of this article directly quote the article of the big guy.
Source code: https://github.com/LinYaoTian...
Design sketch:
Tip: it's best ...
Posted by wgh on Fri, 15 Nov 2019 02:14:53 -0800
Handler Messaging Mechanism Analysis
Use and usage of Handler
Most people who have written Android programs will encounter ANR (Application Not Responding).If the program does not respond for a period of time, a dialog box will pop up to let the user choose whether to continue waiting or force the application to close.To avoid ANR, we need to put time-consuming logic into a backg ...
Posted by big_c147 on Thu, 14 Nov 2019 12:38:52 -0800
A very valuable breakdown in the depth of the test, caused by the change from English to Chinese
1. This is the stack information. Let's analyze it
Fat exception, thread in main
Process: XXXXXX process id:19914
08-24 19:46:35.785 19914-19914/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.cmcm.shorts, PID: 19914
java.lang.IndexOutOfBoundsException: setSpan (53 ... 58) ends beyond length 28
at a ...
Posted by dmarquard on Thu, 14 Nov 2019 09:17:43 -0800