Android animation can be divided into three types:
View animation, frame animation and attribute animation.
In fact, frame animation also belongs to view animation, but its translation, rotation and other commonly used view animation are slightly different in performance. View animation is a kind o ...
Posted on Tue, 11 Feb 2020 08:52:16 -0500 by cupboy
UI related knowledge
1, Four layouts
Android: orientation specifies the arrangement. Vertical is vertical and Horizontal is Horizontal.
Android: layout > gravity specifies the alignment of the control in the layout, top,bottom,center. If the arrangement is Horizontal, it can only be ...
Posted on Tue, 11 Feb 2020 08:34:10 -0500 by waygood
1, The cause of the problem
Viewpager control to a large extent meets the developer's development page left and right mobile switching function, very convenient to use. However, in use, it is found that when data is deleted or modified, PagerAdapter can't just notify to refresh View through notifyDataSetChanged method like BaseAdapter. A soluti ...
Posted on Tue, 11 Feb 2020 00:42:26 -0500 by a94060
I want to change the color of the ListView divider. Any help will be appreciated.
For monochrome lines use:
list.setDivider(new ColorDrawable(0x99F10529)); //0xAARRGGBB
It's important that DividerHeight is set after the separator, otherwise you won't get anything.
You can als ...
Posted on Sun, 09 Feb 2020 13:23:52 -0500 by Azu
When an application loads a web page, use the WebView control to embed the browser in the application.
See the following example for details:
<?xml version="1.0" encoding="utf-8"?>
Posted on Sun, 09 Feb 2020 13:14:40 -0500 by mchannel
Use web3j to connect geth and transfer funds. The basic transfer function can be written as follows:
//from: account of Transferor
//Password: transfer out password
//addrTo: collection account
//value: transfer amount
public String transferEth(String from,String password,String to,BigInteger value) thro ...
Posted on Sun, 09 Feb 2020 11:54:21 -0500 by martin_g
Play video in WebView, full screen adaptation
There are a lot of bugs in WebView in Android. In summary today, when loading the video in WebView, users can't click the full screen button to adapt to the full screen.
Under normal circumstances, the user clicks the full screen button, and we enter the full screen status of a vi ...
Posted on Sun, 09 Feb 2020 09:54:40 -0500 by robertvideo
I have only been in touch with android for a few days, and the configuration of android is almost based on the feeling.
Therefore, there is a problem, as shown in the following figure, the text of the drop-down box group of toolbar overflow menu is not completely displayed:
After many attempts, it turns out that there is a ...
Posted on Sun, 09 Feb 2020 09:44:24 -0500 by Mehdi
1, Text component
textAlign: TextAlign.left, ----- text alignment
maxLines: 1, ----- display maximum lines
Overflow: TextOverflow.clip, ---- how to handle text overflow
clip: directly cut off the overflow text.
Ellipsis: use ellipsis (...) at the back
Fade: fade effect
Style the style of the text
body: new Center(
Posted on Sun, 09 Feb 2020 03:48:07 -0500 by dotBz
First of all, you need to know the basic usage of Fragment. Here, you can refer to Chapter 4 of the second edition of the first line of Android code by Guo Lin. If you want to realize four columns (homepage, mall, message, me), you need the following documents
4 fragmented xml files + main x ...
Posted on Sun, 09 Feb 2020 02:19:28 -0500 by Bobby_Jo