Tag:android
-
Time:2021-3-5
Android signature mechanism What is Android signature Students who know about HTTPS communication know that there are at least two problems to be solved in message communication: one is to ensure the authenticity of the source of the message, and the other is to ensure that the message will not be tampered by a third […]
-
Time:2021-3-4
How decentralized is the andorid channel market? It’s more fragmented than Android. Are you still struggling with multi-channel packaging? Meituan provides a multi-channel packaging solution with fast speed. It’s a bit exaggerated. Yes, it’s exaggerated, but it’s really fast. It’s not enough to describe its speed without exaggeration. No more nonsense, first principles, then practical […]
-
Time:2021-3-1
First, let’s look at the picture above XML is used to write buttons <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”match_parent” android:background=”@drawable/background” xmlns:widget=”http://schemas.android.com/apk/res-auto” android:orientation=”vertical”> <Button android:id=”@+id/button_1″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text= “Simple dialog” /> <Button android:id=”@+id/button_2″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text= Dialog of list /> <Button android:id=”@+id/button_3″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text= “Radio dialog” /> <Button android:id=”@+id/button_4″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text= “Multiple choice […]
-
Time:2021-2-27
The text and pictures of this article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time This article is from Tencent cloud by Python sophomore Recently, I thought of trying to […]
-
Time:2021-2-22
Cover from: chestnut is lazy Thread as the basic resource of the system, I believe most readers have used it. In general, we will directly open a thread to do some time-consuming operations. After processing, the thread will automatically end and the resources will be recycled by the system. This simple and crude method has […]
-
Time:2021-2-22
Say ahead: Attention should be paid to the adaptation of old projects and big projects to Android X. we must be cautious, cautious and more cautious. If there are many third-party libraries used in the project, it will be very troublesome. Some third-party libraries have not been adapted to Android X. There are two cases […]
-
Time:2021-2-21
1. Press selector to modify the background and text color 【1】 Click to change the font color- android:state_ Pressed (pressed) 【2】 Selector status selector (BG)_ btn_ Two (store res – drawable) resource file, otherwise it doesn’t work 【3】 Selector status selector (BG)_ btn_ One (store res – color) resource file, otherwise it doesn’t work 【3】 […]
-
Time:2021-2-20
First, let me popularize the concept of Linux.First: Linux distribution. There are many distributions of Linux, such as Debian, center, RedHat, etc., which are quite popular. The relationship between Linux and Ubuntu is similar to that between Android and MIUI, flyme, IOS.Second: Ubuntu and CentOS have to say that Linux is free to use and […]
-
Time:2021-2-20
1. Modify the text background after getting the focus 【1】 Selector status selector (BG)_ check_ Three (store res – color)) resource file, otherwise it doesn’t work 【2】 In focus state – android:state_ Focused = “true” (get focus) 【3】 android:state_ Focused = “true” must be placed on the first line, otherwise it will not take effect […]
-
Time:2021-2-19
1, gradient 【1】 < gradient > is used to define gradients, including two-color gradients, three color gradients, and gradient styles <?xml version=”1.0″ encoding=”utf-8″?><shape xmlns:android=”http://schemas.android.com/apk/res/android” > <gradient android:type= [“linear” | “radial” | “sweep”] // there are 3 Gradient types, linear gradient (default) / radial gradient / sweep gradient android:angle= “Integer” // gradient angle, must be a […]
-
Time:2021-2-19
In the eyes of most people, there are two kinds of mobile phones in the world, one is iPhone, the other is your phone. IPhone is so popular, as long as it’s fast… Fast… Fa So why is it so fast? This has to talk about the IOS system it carries. Compared with the openness […]
-
Time:2021-2-18
Android welcome page automatic jump and mobile network detection, the specific implementation code is as follows: After 1.2s, jump from welcome page to login page_ Mobile network detection package com.example.amusic.welcome; import android.content.Intent; import android.content.IntentFilter; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.example.amusic.monitor.NetworkChangeReceiver; import com.example.amusic.R; import java.util.Timer; import java.util.TimerTask; public class welcome extends AppCompatActivity { private final int […]