一、getGlobalVisibleRect和getLocalVisibleRect的区别
https://www.cnblogs.com/ai-developers/p/4413585.html
二、悬浮框问题
https://www.cnblogs.com/ai-developers/p/4413585.html
https://blog.csdn.net/xiaanming/article/details/17761431
三、setX(), setTranslationX(), setY(), and setTranslationY()区别
https://stackoverflow.com/questions/33701657/setx-settranslationx-sety-and-settranslationy
https://www.jianshu.com/p/c8e3cae6809f
四、onFinishInflate,onMeasure,onLayout,dispatchDraw的执行顺序
onFinishInflate -> onMeasure -> onLayout -> onDraw -> dispatchDraw
五、android:clipChildren实现Tab聚焦
1、只需在根节点设置android:clipChildren为false即可,默认为true 【为什么在根节点,这点我也不知道】
2、可以通过android:layout_gravity控制超出的部分如何显示。
3、android:clipChildren的意思:是否限制子View在其范围内
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:orientation="vertical" >
<android.support.v4.view.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1.0" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dip"
android:background="#B0C4DE"
android:orientation="horizontal" >
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="64dip"
android:layout_gravity="bottom"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
</LinearLayout>
</LinearLayout>