Android version download update
Almost every function should havePreparation: request version update to get the link to download apk,
For example:“ http://yibanyue.oss-cn-hangzhou.xxx.com/apk/yiyue.apk"Process: request version update link to get the link, pop-up box to ask if it is updated, create apk folder locally, Download apk with DownloadManager, and put the path i ...
Posted by padiwak on Fri, 01 May 2020 23:24:42 +0200
A detailed explanation of the use of selector in Android
From: http://blog.csdn.net/wenwen091100304/article/details/49667293, good summary
Introduction
The Chinese meaning selector is often used as the background of components in Android. The advantage of doing this is that it does not need to use code control to realize the transformation of different background colors or pictures of compo ...
Posted by jmanfffreak on Fri, 01 May 2020 17:36:32 +0200
apk decompilation and AS basic confusion rules
1, Decompilation
Decompress apk with compressed package management software (such as WinRAR, WinZIP, etc.) to get the classes.dex file, and put the file in the dex2jar folder.
Use the dex2 jar tool software to get the corresponding jar files.
(1) Open the command line interface.
(2) Navigate to the directory where d ...
Posted by robtbs on Fri, 01 May 2020 08:04:28 +0200
An LRU implementation for recording the latest search history
For many functions with search requirements, it is generally necessary to display the latest n historical search records, mainly including the following function points:
The most recent search items are placed first, and the earliest search records are placed last.
Only record the latest n data. If there are more than n search records, delet ...
Posted by gazza52 on Fri, 01 May 2020 02:12:24 +0200
The basic syntax and types of Kotlin
Basic types
Basic types used in Kotlin: numbers, characters, Booleans, arrays, and strings.
number
Type
Bit
Double
64
loat
32
Long
64
Int
32
Short
16
Byte
8
Representation
In Kotlin, the values can be expressed literally as follows:
Decimal: 123
Long type is marked with capital L: ...
Posted by NotVeryTechie on Fri, 01 May 2020 00:10:34 +0200
RxJava operators - transform operators
The event / whole event sequence in the event sequence is processed (i.e. transformed) to different event / whole event sequence
map
Each event sent by the observed is processed by a specified function, so that it can be transformed into another event
That is, the event sent by the observer is converted to any type of event.
Application sc ...
Posted by Millar on Thu, 30 Apr 2020 22:53:26 +0200
49.(android Development) imageView picture switching
The image view control of android is very common. It's easy to display pictures. Just set the picture source.
Generally, we use the resources in the APP to achieve this. The original image file is placed in drawable or mipmap under res.
What I want to achieve this time is to let the control display a picture by default. When I click a button, t ...
Posted by Channel5 on Thu, 30 Apr 2020 22:39:33 +0200
android sets button style (border color, fillet) and picture style (fillet)
android sets button style (border color, fillet) and picture style (fillet)
Set button border color:
Create a new button? Edge.xml file in drawable
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Border color value --><item>
< ...
Posted by FrozNic on Thu, 30 Apr 2020 21:02:04 +0200
Android date format conversion (date to cycle)
Recently, I met a requirement in my own project to convert the standard day yyyy MM DD into a specific cycle, that is, the day of the week. By looking up the data, we found that Android has provided us with a powerful date tool Calendar class, through which we can quickly realize the conversion between dates. Here, I have encapsulated it as a ...
Posted by Lars Berg on Thu, 30 Apr 2020 20:55:42 +0200
The effect of a simple rolling number
1. Renderings
2. Custom attributes
textColor font color
textSize font size
Time displayed in duration text
3. Instructions
Step 1. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
...
Posted by r3drain on Thu, 30 Apr 2020 15:14:46 +0200