How to Implement Android Desktop Widgets (2)

In the last blog, I mainly introduced how to implement an Android desktop widget from the perspective of documentation. This blog will show you how to implement an Android widget with examples!! Look at the effect map first. As can be seen from the effect chart, the desktop widget has been implemented, but there is nothing in it. Now let's ...

Posted by chiefrokka on Sun, 07 Jul 2019 03:09:35 +0200

Material Design Compatibility Control Learning

Sketch Material Design, introduced from Android 5.0, is a brand new design language called "Raw Material Design", which is a design style, concept and principle advocated by Google. Combining the imitation design and flat design style, some scientific and technological concepts are integrated. For further information, check out this w ...

Posted by matafy on Sun, 07 Jul 2019 01:06:04 +0200

Android Imitates Huawei Weather Drawing Dial

Design sketch You can see that this custom control combines color gradient, dynamic drawing scale and dynamic water polo effect. Next, let's see how this effect can be achieved step by step. Start customizing controls Like many custom controls, you need to base a View or a ViewGroup. I chose View here, as follows: public class HuaWei ...

Posted by nc_brox on Sun, 07 Jul 2019 00:50:54 +0200

Development Framework Construction: Encapsulation of Common Base Classes

We want to develop an APP. The first task is to build the package structure, build the framework, encapsulate the base class, import the third-party libraries into the project and so on. Today we will talk about how to complete this process. (Note: Everyone has their own code style, so there is no good or bad code that suits them.) Through t ...

Posted by afbase on Sun, 07 Jul 2019 00:31:45 +0200

Analysis and Application of LayoutInflater Source Code

I. Brief Introduction LayoutInflater is literally translated into LayoutInflater, which is used to create layout views. Commonly used inflate() converts an xml layout file into a View. Here are three ways to get LayoutInflater and two ways to create View. 1. Three ways to get LayoutInflater LayoutInflater inflater = getLayoutInflater(); ...

Posted by Submerged on Sat, 06 Jul 2019 23:02:03 +0200

Code compression confusion and Packaging Optimization for Android ProGuard

Preface This is an actual Demo exercise for sharing only. Please give it to Star if you like. demo link: https://github.com/AnyLifeZLB/AndroidAppFrameWork Why start ProGuard (all trials are in AS environment) Code compression is provided through ProGuard, which detects and removes unused classes, fields, methods, and attributes from encapsulati ...

Posted by blindtoad on Sat, 06 Jul 2019 19:02:04 +0200

Android OpenGL ES2.0 (1) - Drawing Static Shapes

quick get start Key Classes GLSurfaceView Carriers drawn TextureView is available for small areas SurfaceView can theoretically be used GLSurfaceView.Renderer Essential Drawing Action Keying a GLSurfaceView object class MyGLSurfaceView extends GLSurfaceView { public MyGLSurfaceView(Context context){ super(context); ...

Posted by vivianp79 on Sat, 06 Jul 2019 18:48:46 +0200

Android Bluetooth Chat

Bluetooth is one of the most popular methods of data transmission for smart devices. It connects with smart devices through mobile app s to obtain measurement data on devices. We can see it everywhere in our life, such as Bluetooth smart bracelet, Bluetooth electronic scales, Bluetooth ECG measurement equipment and so on. In this article, ...

Posted by Control Pad on Fri, 05 Jul 2019 23:36:38 +0200

Amazon Alexa login authorization (Android)

To access Alexa's API, you must carry AccessToken, that is, you must login authorization. This paper mainly records the login authorization process of Amazon Alexa on Android platform.   1. Registering Applications on Amazon Developer Platform Enter the Alexa column of Amazon Developer Platform https://developer.amazon.com/edw/home.html#/ Clic ...

Posted by shelluk on Fri, 05 Jul 2019 20:29:05 +0200

Gson Guidelines for Use (3)

Note: This series is based on Gson 2.4. The main contents of this paper are as follows: Several methods of field filtering Based on @Expose Annotation Version-based Access modifier-based Strategy-based (most commonly used by authors) Field mapping rules between POJO and JSON I. Several Methods of Field Filtration Field filterin ...

Posted by fothers on Fri, 05 Jul 2019 20:27:14 +0200