Android Advanced UI Components

Android Advanced UI Components 1. Progress Bar ProgressBar ProgressBar , a progress bar, which is divided into a long bar (to determine the time-consuming operation) and a circular bar (to determine the time-consuming operation). The default style is a circular progress bar. Examples of use: <ProgressBar android:id="@+id/indete ...

Added by Lijoyx on Tue, 18 Jan 2022 18:05:11 +0200

Button control developed by Android (click the button to change the pattern and color)

Basic framework <?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:orientation="vertical"> <Button android:layout_width="200dp" android:layout_height=" ...

Added by stylusrose on Tue, 18 Jan 2022 16:58:34 +0200

TextView control developed by Android

Basic framework The following codes are in activity_main.xml. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:layout_width="200dp" android:layout_heig ...

Added by trygve on Tue, 18 Jan 2022 09:49:18 +0200

Full of WebView optimized dry goods, let your H5 realize the second opening experience.

What is the difference between WebView and native?Baidu APP pictures are cited here to illustrate.Baidu developers divided the whole process into four stages and counted the average time-consuming of each stage.It can be seen that it took 260 ms to initialize the component, and the average time for the first creation was 500 ms. there is no dou ...

Added by bokehman on Tue, 18 Jan 2022 09:46:12 +0200

WebView usage for Android

In addition to the two main network technologies of HTTP communication and Socket communication, WebView, a technology for loading and displaying web pages, is also provided in Android. This allows us to deal with some special needs, such as displaying web pages in applications like wechat, or using WebView to layout UI interfaces. Basic use o ...

Added by Craig_H on Tue, 18 Jan 2022 08:14:10 +0200

Compiling process of C/C + + program

preface How does C/C + + code become a program that can run on hardware? Let's start with a simple "Hello World" program. Hello World compilation There is a popular joke: A programmer was very interested in calligraphy and decided to make achievements in this field after retirement. So he spent a lot of money to buy the first-clas ...

Added by catreya on Mon, 17 Jan 2022 22:20:27 +0200

AFreeSVG -- JFreeSVG for Android, svg picture drawing library on Android

AFreeSVG – JFreeSVG for Android, svg image drawing library on Android Recently, when I was working on a project, I needed to draw and generate svg pictures on Android. At that time, I thought that this demand should be supported by many ready-made open-source libraries, so I opened Baidu and prepared to do a big job. However, I failed to ...

Added by daimoore on Mon, 17 Jan 2022 11:55:36 +0200

Android APT annotation literacy

preface Little apes who have just come into contact with java may not know what annotation is for, or some old birds know only a little and can only use it without knowing why. Therefore, before understanding what annotations are, let me first talk about the use of God horses, the scenes, and whether there are templates at present. After knowi ...

Added by twopeak on Mon, 17 Jan 2022 11:22:21 +0200

Full analysis of Android MultiMedia framework - interaction between NuPlayerDecoder and MediaCodec

preface In the last article, I analyzed MediaCodec and its contents in detail. However, a layer of NuPlayerDecoder is wrapped outside MediaCodec. Here's how they communicate. Theoretically, since NuPlayerDecoder is wrapped in the outer layer of MediaCodec, it can also be understood as App relative to MediaCodec. It calls MediaCodec's API to c ...

Added by furtivefelon on Mon, 17 Jan 2022 07:47:12 +0200

I finally understand Handler (2)

Continued I finally understand Handler (1) After reading the previous article, I believe you have a certain understanding of handler. This chapter begins to practice 1. Application of multiple handler s in multithreading public class HandlerTestActivity extends AppCompatActivity { private static final String TAG = "HandlerTestActivity"; ...

Added by kamsmartx on Sun, 16 Jan 2022 13:58:51 +0200