Wie 'android:Vorder -' und 'android:foregroundGravity' im FrameLayout, die das Erscheinungsbild beeinflussen?

FrameLayout hat die Attribute android:foreground, android:foregroundGravity und android:measureAllChildren.
Ich habe versucht, diese Attribute, aber nicht ausmachen konnte, wie Sie sich auf das layout, das Aussehen oder wie Sie funktionieren.

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:tools="http://schemas.android.com/tools"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 android:foreground="@android:color/holo_blue_dark"
 android:foregroundGravity="center"
 android:measureAllChildren="true"
 android:paddingBottom="@dimen/activity_vertical_margin"
 android:paddingLeft="@dimen/activity_horizontal_margin"
 android:paddingRight="@dimen/activity_horizontal_margin"
 android:paddingTop="@dimen/activity_vertical_margin"
 tools:context="com.example.framelayoutdemo.MainActivity" >

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/hello_world" />

<ImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@android:drawable/btn_dialog" />

</FrameLayout>

Ich habe gegoogelt, aber nichts finden konnte, mit Hilfe dieser Attribute.
Bitte geben Sie mir einen link, den ich verweisen kann, oder helfen Sie mir mit einem Beispiel.
Dank

Schreibe einen Kommentar