文字描边
android:shadowColor="#FFFFFFFF"
android:shadowDx="0"
android:shadowDy="1"
android:shadowRadius="1"
例子
<TextView
android:id="@+id/welcome"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:typeface="serif"
android:paddingRight="20dip"
android:paddingLeft="20dip"
android:maxLines="2"
android:ellipsize="end"
android:gravity="center"
android:text="@string/tagline"
android:layout_marginTop="6dip"
android:layout_marginBottom="12dip"
android:shadowColor="#FFFFFFFF"
android:shadowDx="0"
android:shadowDy="1"
android:shadowRadius="1"
android:textSize="20dip" />
<Button
android:id="@+id/createWPAccount"
android:layout_width="280dip"
android:layout_height="wrap_content"
android:textSize="14dip"
android:shadowColor="#FFFFFFFF"
android:singleLine="true"
android:shadowDx="0"
android:shadowDy="2"
android:shadowRadius="1"
android:textStyle="bold"
android:background="@drawable/wp_button"
android:text="@string/new_to_wp" />
android:shadowColor="#FFFFFFFF"
android:shadowDx="0"
android:shadowDy="1"
android:shadowRadius="1"
例子
<TextView
android:id="@+id/welcome"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:typeface="serif"
android:paddingRight="20dip"
android:paddingLeft="20dip"
android:maxLines="2"
android:ellipsize="end"
android:gravity="center"
android:text="@string/tagline"
android:layout_marginTop="6dip"
android:layout_marginBottom="12dip"
android:shadowColor="#FFFFFFFF"
android:shadowDx="0"
android:shadowDy="1"
android:shadowRadius="1"
android:textSize="20dip" />
<Button
android:id="@+id/createWPAccount"
android:layout_width="280dip"
android:layout_height="wrap_content"
android:textSize="14dip"
android:shadowColor="#FFFFFFFF"
android:singleLine="true"
android:shadowDx="0"
android:shadowDy="2"
android:shadowRadius="1"
android:textStyle="bold"
android:background="@drawable/wp_button"
android:text="@string/new_to_wp" />