The source bitmap for ImageView has transparent color, we must set the background color of this ImageView to transparent color.
If not, an ImageView will overlap with another ImageView.
Those are some methods to set transparent color.
The source bitmap for ImageView has transparent color, we must set the background color of this ImageView to transparent color.
If not, an ImageView will overlap with another ImageView.
Those are some methods to set transparent color.
Override onConfigurationChanged method to detect orientation changes, but receiving event only when landscape change to portrait vise versa.
So when landscape changes to reverse landscape, onConfigurationChanged method can’t receive event.
There are several ways to making money with your blog. One way is Google AdSense.
Most blogs use Next theme to embed Google AdSense, but my blog used Icarus theme.
After some research, I found a way to embed Google AdSense with Icarus theme.
Steps as follow.
Only for Icarus 2.X
Text To Speech (TTS) converts text into human-like speech. Baidu TTS is a free TTS SDK,we use this sdk to develop TTS app.
About Face Recognition, many sdks are currently available on the internet, but not free.
TensorFlow Lite is a free and lightweight library.
This article used object recognition as example.
Uploading or downloading file at local network between Android and Windows by using smb socket.
Android app can use Jcifs library to access file which is in the Windows system. But Jcifs only support smb 1.
If Windows system only support smb2 or smb3, we must use other library, like smbj or jcifs-ng.
NanoHttp is a light-weight HTTP server designed for embedding system, released under a BSD licence.
The library: libcutils.so was working fine till Android Marshmallow (Android 6 (SDK 23)).
But my application run on the device with Android Oreo (Android 8 (SDK 26)), get the crash as follow.
java.lang.UnsatisfiedLinkError: dlopen failed: library “/system/lib/libcutils.so”
is not accessible for the namespace “classloader-namespace”
Because Android Nougat (Anroid 7 (SDK 24)) is not currently supported by the Creative SDK.
Sometime we use 3rd library to develop application.
In previous article, we introduce how to use .jar file or .aar file.
When updating .aar file, it isn’t update successfully.
We will use .9.png to set up background in general.
Besides using png, we can use shape tag to set up background.