Makefile. PL -- mysql_config =/usr/local/mysql/bin/mysql_config
# Make
# Make install
Install mtop:
# Tar zxvf mtop-0.6.6.tar.gz
# Cd mtop-0.6.6
# Perl Makefile. PL
# Make
# Make install
Add the corresponding MySQL Database User:
# Mysql-uroot-pPASSWORD
Mysql> grant reload, PROCESS, super on *. * to identified by mtop
code analysis ):
Layout is used to calculate the actual value for the entire View tree.LocationAccording to the introduction to the View tree just now, to calculate the position of the entire View tree, we need to recursively calculate the position of each subview (the same is true for Measure ).
However, it is very easy to determine the location.MLeft, mTop, mRight, mBottomFour values (Note: These four values are the value of the Child View relativ
Mtop bitsCN.com, a tool for real-time MySQL monitoring in Linux
Required modules:
Curses
DBI Distributed as Bundle: DBI:
DBD: mysql
Getopt: Long (Distributed with Perl 5)
Net: Domain Part of libnet:
# Perl-e use Curses
# Perl-e use DBI
# Perl-e use DBD: mysql
# Perl-e use Getopt: Long
# Perl-e use Net: Domain
If there is no output, the module is installed. if there is an error, the corresponding module is not installed.
You can download the latest
Create the most easy-to-use Tab Indicator in history-Indicator and tabindicator
If you do not know what a Tab indicator is, I believe that after you have read Netease news, you will surely be enlightened :'
It is the red bar under the navigation bar. Today we will also implement this effect... Our code is very simple and easy to use. For preliminary statistics, such indicator can be used for a line of code.
Well, I used a LinearLayout before the project added this effect. There are multiple ite
Android development, many people will meet the full line to automatically change to the next line of the interface requirements, and Android self-linearlayout layout can be horizontal or vertical row, not enough to display on add ScrollView, mixed platoon is not. Here we share a linearlayout that can be used for automatic line wrapping.Import java.util.Hashtable;Import Android.content.Context;Import Android.util.AttributeSet;Import Android.util.Log;Import Android.view.View;Import Android.widget.
View OverviewFor a view, he should have two positions: one is the display position (that is, where we see it), and one is the click location (that is, where the user clicks the event).After the initialization is complete, the two locations are coincident, so "what you see is what you point to." However, when the Scrollto (), Scrollby () or tweens animation is called, the view is not coincident with the point: the location found changes, but the point is still in place. This is also the differenc
Android imitates ViewpagerIndicator of Sohu news
I haven't written a blog for a long time. Today, I have nothing to worry about.
For example, we will imitate the title of Sohu news today, first.
1. Next, let's analyze this effect.
The following content should be viewpager. We can use a LinearLayout + HorizontalScrollView on the tab of the header. If the rolling effect is displayed, we can use the scrollTo we learned to clarify the general idea, let's start code!
2. Customize LinearLayout
We c
is as follows: Public void Layout(intLintTintRintb) {///member variable MPRIVATEFLAGS3 some bits store information related to layout if((MPRIVATEFLAGS3 pflag3_measure_needed_before_layout)! =0) {//If the value of the 4th bit (from the right-most to the 4th bit) of the low byte in MPRIVATEFLAGS3 is 1, //Then it means that you need to acreage the view before layout. //In this case, the Onmeasure method of view is executed to acreage the viewOnmeasure (Moldwidthme
View OverviewFor a view, he should have two positions: one is the display position (that is, where we see it), and one is the click location (that is, where the user clicks the event).After the initialization is complete, the two locations are coincident, so "what you see is what you point to." However, when the Scrollto (), Scrollby () or tweens animation is called, the view is not coincident with the point: the location found changes, but the point is still in place. This is also the differenc
Host.layout, and the already well-mapped wide-height transmission calculation into the upper and lower left and right hand over, host is Decorview.View#layout
public void layout (int l, int t, int r, int b) {According to the MPRIVATEFLAGS3 mark bit status, if necessary, re-measure.if ((MPRIVATEFLAGS3 pflag3_measure_needed_before_layout)! = 0) {Onmeasure (Moldwidthmeasurespec, Moldheightmeasurespec);MPRIVATEFLAGS3 = ~pflag3_measure_needed_before_layout;}int OLDL = Mleft;int Oldt =
Implement top navigation effects (ViewPager + Fragment) and viewpagerfragment using the Netease client.
It took me two days to achieve this.
Indicator here is the rewritten LinearLayout used to get the style and position of the Blue Bar in the navigation bar (this part of the code was tested by someone else). The Code is as follows:
Package vikicc. titletab; import android. content. context; import android. content. res. typedArray; import android. graphics. canvas; import android. graphics. co
Shame and silence-tianFirst, the effect of "Tian" is displayed.
The implementation idea is mainly divided into several partsRandom color value generation
var getRandomColor = function(){ return '#' + (function(color){ return (color += '0123456789abcdef'[Math.floor(Math.random()*16)]) (color.length == 6) ? color : arguments.callee(color); })(''); }
Reference: situ zhengmei JavaSc
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.