RatingBar custom picture

The above are two pictures (size h*w = 50*94) that need to be used. There is a certain transparent area left and right of the picture as the space between the stars, which should not be seen in the blog, 1. Put them in different folders to adapt to different resolutions of the screen, If you try to put only one direc ...

Added by djlfreak on Sun, 05 Apr 2020 03:00:02 +0300

Add the simplest self starting local service to android source code

Native Service creation process learning notes a. Create the folder native service in the vendor / common / directory b. Create a. cpp file in this file directory, and write the program code: #include <stdio.h> #include <string.h> #include <stdlib.h> #define LOG_NDEBUG 0 #define LOG_TAG "hello_world" #incl ...

Added by gordo2dope on Sat, 04 Apr 2020 16:29:01 +0300

The problem of sax parsing xml

characters will have many problems. Record them and find them for a long time. It turns out that they are the problem of spaces. Here is the xml file after format and the corresponding print xml file: Corresponding log: Reference: the following excerpt from http://blog.csdn.net/Garmiter/article/details/8016840 XML type 1: no ...

Added by Codewarrior123 on Sat, 04 Apr 2020 14:47:05 +0300

Xamarin.Forms Client First Edition

As a sub-process module of TerminalMACS, the first edition is currently completed: reading basic mobile information, contact information, application localization. Functional introduction Detailed Functional Description About TerminalMACS 1. Functional introduction 1.1. Read basic mobile information Use the Xamarin.Essentials library to get ...

Added by vargadanis on Sat, 04 Apr 2020 14:42:57 +0300

Explanation of jump animation on Android Activity interface

Instance 1 overridePendingTransition Summary Animation when two activities are switched. Use in overridePendingTransition There are two parameters: the entry animation and the exit animation. Note (call time) 1. Must be called immediately after StartActivity() or finish(). 2. And it is valid in version 2.1 and abov ...

Added by jynmeyer on Sat, 04 Apr 2020 08:54:25 +0300

The writing of various Android.mk under Android source code

Original address: https://blog.csdn.net/tkwxty/article/details/43341217 The writing of various Android.mk under Android source code The new year is coming, the company is in recession, so there are not many things to be busy. Just take the time to summarize the writing of various modules Android.mk under Android source code! ...

Added by arbelo on Sat, 04 Apr 2020 01:30:04 +0300

Say android:persistent="true" keep alive

Say android:persistent = "true" to keep alive 1. What kind of application configuration can realize this value to keep alive? The pre installed application of the system is related to the pre installed location. See code for details if ((flags&PARSE_IS_SYSTEM) != 0) { if (sa.getBoolean( com.a ...

Added by cashflowtips on Sat, 04 Apr 2020 00:41:40 +0300

The solution to the accuracy problem of JavaScript floating point arithmetic bignumber.js

The principle of accuracy is described in the previous article. https://my.oschina.net/xiaogg/blog/2998192 Also mentioned some solutions Today I'm going to talk about a new approach Is to make use of bignumber.js This plugin. I've applied this plugin to the calculation of grocery shopping Instance address: http://tool.bitefu.net/jisuan/ Buy ...

Added by idnoble on Fri, 03 Apr 2020 19:24:41 +0300

Using Android Studio to develop executable Java application with interface

Using Android Studio to develop executable Java application with interface 1. Create Project and Module Create a new project and then a new module select java library 2. Add Main method and test code package com.example.javareplacecarcols; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; ...

Added by lhaynes on Fri, 03 Apr 2020 04:56:06 +0300

java common design pattern 1 -- Builder pattern

Builder mode is also commonly used in Android development. Usually we use this mode when building a complex object, which can separate the construction of complex object from its representation. Characteristic: Builder mode is usually a chain call. The key point is that each set method returns itself, that is, return ...

Added by l!m!t on Fri, 03 Apr 2020 00:00:18 +0300