Android integrated Baidu character recognition 1.4.0
Android integrated Baidu character recognition 1.4.0
Baidu AI open platform has opened the service of character recognition, which can realize the recognition requirements of some general characters, network pictures and characters, various cards (ID card, bank card, driver's license, driving license, license plate bus ...
Posted by Drewser33 on Mon, 04 May 2020 13:43:54 +0200
Android search box: properties and usage of SearchView
About SearchView
SearchView is Android's native search box control, which provides a user interface for user search queries.
By default, SearchView displays a search icon. Click icon to expand the search box. If you want the search box to expand by default, you can use seticonfifiedbydefault (false); to achieve this.
Search ...
Posted by ThatGuyBob on Mon, 04 May 2020 12:11:07 +0200
Android mapbox integration problems
First step dependence.
build.gradle under project
repositories {
jcenter()
mavenCentral()
}
build.gradle under moudle
compile('com.mapbox.mapboxsdk:mapbox-android-sdk:5.0.2'){
transitive=true
}
Error after synchronization:
WTF? What the hell is this.
Search online and add @ aar after the version numb ...
Posted by pbjpb on Mon, 04 May 2020 11:00:57 +0200
Customize the color of the status bar
First, I want to go to Tucao, and I read many blogs on the Internet. I am forced to make complaints about it. Few people can really solve the problem. Some people can really change the color of the status bar. But Nima has a gray layer on top of it, which is also called solving the problem. Some people say it's not easy ...
Posted by mmtalon on Mon, 04 May 2020 06:09:17 +0200
Hybrid App knowledge point collection
Native Webview knowledge:
1: Registration related authority
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
2:webview common methods
goBack() //Back off
go ...
Posted by MorganM on Mon, 04 May 2020 01:33:41 +0200
Change Actionbar, use of Toolbar
1, Change style
First, change the style of the system to the style without ActionBar, set the color of the theme, and then reference the style.
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark ...
Posted by sander_ESP on Sat, 02 May 2020 21:06:57 +0200
How to start the activity of another APP from one APP
How to start the Activity of another APP from one APP
1. Start with custom action
In this way, you only need to set an action in the code, and the system will automatically filter to find the corresponding Activity of this action
Code of current APP
Intent intent = new Intent();
//Here is the custom action used
in ...
Posted by ChrisBoden on Sat, 02 May 2020 08:53:50 +0200
Record of Retrofit+MVP framework encapsulation
The most popular combination of network requests, retrofit2+okhttp+rxjava+mvp
This is the sealed record
First, it is divided into modules, such as login
First, the use of encapsulation
package com.fragmentapp.login.presenter;
import android.util.Log;
import com.fragmentapp.base.BasePresenter;
import com.fragmentapp.http.BaseObserver;
impor ...
Posted by jredwilli on Sat, 02 May 2020 08:14:47 +0200
How to modify the value of android:scheme in Android manifest.xml externally
The company has a small need to dynamically configure the value of android:scheme in Android manifest.xml.
This translates into the problem of modifying xml node values through an external java project.
Among them, Android manifest.xml needs to stipulate a rule:
<activity android:name=".MainActivity">
...
Posted by ridster on Sat, 02 May 2020 07:18:10 +0200
AS Cmake OpenCV Foundation
JniOpencv environment configuration
I. preparation of development package
2. Preparation Library
Three configuration CPU platform architecture types
A small Demo to enhance image brightness
JniOpencv environment configuration
1, Prepare development package
Copy opencv Android SDK - > SDK - > nati ...
Posted by robin on Sat, 02 May 2020 06:45:50 +0200