update sample using android:layout_centerInParent="true"