Video decoding with ffmpeg
1. Tool preparation
Computer Mac, development tool Android studio 3.4, compilation environment cmake
2. Development steps
Create a new module project
Create a new cpp folder and a new CMakeLists.txt file in the main directory
cmake_minimum_required(VERSION 3.4.1)
include_directories(../cpp/incl ...
Posted by vikela on Tue, 04 Feb 2020 10:20:14 -0800
Android - use of recycle view click and long press events
Note: the content of this chapter is Android - RecycleView easy to use Based on the added.
1, RecyclerView click and long press events
Unlike ListView, RecyclerView provides click and long press listening events. In RecyclerView, we need to define it in adapter. The code is as follows:
RecycleAdapter ...
Posted by Black Hobbit on Tue, 04 Feb 2020 10:02:51 -0800
DrawerLayout sideslip and NavigationView use and stepping on the pit
First, let's go on the renderings. After all, there is no renderings. I don't know if it's the effect you want. When I see half of them, I find they are not very annoyingAdd dependency
implementation 'com.android.support:design:28.0.0'
Use in layout
<?xml version="1.0" encoding="utf-8"?>
< ...
Posted by Simon180 on Tue, 04 Feb 2020 06:22:19 -0800
How do I import the system UI to Android studio step by step
Next, I will introduce the system UI to Android studio step by step.
Modify the code of the relevant modules of the system. If it's a small modification, it's OK. If it needs more changes, it's best to import the source code into Android studio to modify. The modification efficiency will be improved ...
Posted by deadlyp99 on Tue, 04 Feb 2020 05:44:56 -0800
Get color int from color resource
Is there any way to get color information from color resources? I'm trying to get the red, blue, and green components of the colors defined in the resource (R.color.myColor) so that I can set the values of the three search bars to a specific level.
#1 building
Define your color
Value / color.xml
<?xml version="1.0" encoding="utf ...
Posted by Serpent7 on Mon, 03 Feb 2020 01:50:53 -0800
Source code analysis of Binder native layer: sm's receiving and processing of data
We start with the main function of servicemanager
main and binder & loop
//\frameworks\native\cmds\servicemanager\service_manager.c
int main()
{
struct binder_state *bs;
bs = binder_open(128*1024);
if (!bs) {
ALOGE("failed to open binder driver\n");
return -1;
}
...
Posted by x_maras on Sun, 02 Feb 2020 09:46:08 -0800
reactNative integrates QQ sharing and payment
1, android configuration
1. Download QQ Internet sdksdk Download
2. Create a new libs folder under android/app and put the sdk in the folder
3. Add the following in android/app/build.gradle:
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.re ...
Posted by pestilence669 on Sun, 02 Feb 2020 06:59:11 -0800
Appium Analog Gesture Advanced Operations
TouchAction is an auxiliary class of AppiumDriver that focuses on gesture operations such as sliding, long press, dragging, and so on.
The principle is to put a series of actions in a chain and send them to the server. After the server accepts the chain, it parses the actions and executes t ...
Posted by kontesto on Sat, 01 Feb 2020 21:18:43 -0800
How to make the corner circle of the button?
I want to round the corner of the button. Is there an easy way to do this in Android?
#1 building
Create an xml file in the drawable folder as follows
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
<!-- you ...
Posted by dejvos on Sat, 01 Feb 2020 07:47:12 -0800
android gesture recognition
No more details
Gesture recognition code http://download.csdn.net/detail/zhupengqq/9578532
After running the above project, it will generate such a gesture recognition library, gestures, and create a new project,
Under res, create a raw folder, and then import the library
Here is an exampl ...
Posted by elToro on Sat, 01 Feb 2020 07:47:21 -0800