Android learning notes: simple UI component ---- button component (radio button and check box)

Button class component (radio button and check box) Radio button Radio button: usually a circular icon, with some descriptive text beside it. In most cases, radio buttons appear in groups. Only one radio button in a group can be selected at the same time. In the activity main.xml file, use the Rad ...

Added by phice on Sun, 09 Feb 2020 10:03:57 +0200

Native js+WebGL for 3D Picture Effect

Overseas parties may have encountered this cool 3d picture effect when playing F***book: Just go through this entry on the client side- Or this entry for the web page version: Can be generated.Don't know how to play please refer to the official Help Manual .Let's teach you how to do this today. Don't worry, all the code doesn't add up ...

Added by dirtyfrenchman on Sat, 08 Feb 2020 20:50:11 +0200

Retrieving and parsing json-type data

Read and parse json type data 1. What is JSON?   JSON(JavaScript Object Notation) is a lightweight data exchange format that uses a language-independent text format. It is the ideal data exchange format, and JSON is the native JavaScript format. Ideal for interaction between server and JavaScript ...

Added by thipse_rahul on Sat, 08 Feb 2020 06:42:22 +0200

How to keep onItemSelected on the newly instantiated Spinner?

I came up with some less elegant solutions to this problem, but I knew I had to leave out something. My onitem selected will trigger immediately without any interaction with the user, which is not a welcome behavior. I want the UI to wait until the user chooses to do anything. I even tried to set up a listener on onResume(), which I hope ...

Added by cronus on Thu, 06 Feb 2020 07:10:16 +0200

Binder basic use

In Android development, Binder is a way of cross process communication, and using AIDL can realize Binder's work. How to use it is the first step to understand it. This article mainly records some steps of using Binder. (refer to "Android development art exploration" by Ren Yugang for code ideas) 1. Create two activities Two activitie ...

Added by steveryan on Wed, 05 Feb 2020 11:00:15 +0200

RecyclerView usage resolution

Features of 0.RecyclerView 1.LayoutManager class Class 2.Adapter 3.ViewHolder class 4. Configure different LayoutManager 5. Configure click event for item 6. Insert and delete data in recyclerview . . . Properties of 0.RecyclerView: Flexible and configurable Item s that can be customized ...

Added by vyb3 on Tue, 04 Feb 2020 19:38:32 +0200

Android Studio error message summary

Today, I met a simple error message prompt, which is recorded as follows for future search: Error message 1: 2020-02-02 13:27:48.472 20534-20534/com.example.helloworld1 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.helloworld1, PID: 20534 android.content.ActivityNotFoundException: ...

Added by pythian on Sun, 02 Feb 2020 20:34:20 +0200

Customize your own underlined EditText input box

Let's see the effect first   In the middle of the picture is the style of the input box. The number of input boxes, the spacing between each input box, the color of the input text and the bottom line can be changed dynamically. Next is the time to roll up the code 1. Now create attrs.xml in the values folder and copy the s ...

Added by Credo on Sat, 01 Feb 2020 06:18:03 +0200

android Bluetooth BLE serial port development

1. First apply for relevant authority. In manifest.xml <uses-permission android:name="android.permission.BLUETOOTH"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-feature android:name="android.bluetooth_le" android:required="true"/> <uses-permission-sdk-23 andr ...

Added by Ohio Guy on Sat, 01 Feb 2020 05:32:42 +0200

Space control of Android skills

1, Activity without any processing The listing file code at this time is as follows: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.chromium.chrome.browser.spacedemo"> <application android:allowBackup="true" ...

Added by scept1c on Sat, 01 Feb 2020 02:36:08 +0200