bug fix, more simple to use, and child can use android:layout_gravity attribute to position center in parent layout