我喜欢的布局toast
widget非常多,这意味着圆角、透明度、浅灰色边框。有没有办法查看像这样的android标准小部件的布局参数toast
?
我想定义一个TextView
具有相同的布局参数。
布局可以在下面找到
{SDKBASEDIR}/platforms/{RELEASE}/res/layout/transient_notification.xml
例如对于 2.1:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/toast_frame">
<TextView
android:id="@android:id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textAppearance="@style/TextAppearance.Small"
android:textColor="@color/bright_foreground_dark"
android:shadowColor="#BB000000"
android:shadowRadius="2.75"
/>
</LinearLayout>
可绘制的 toast_frame.9.png 可以在 {SDKBASEDIR}/platforms/{RELEASE}/res/drawable{-RESOLUTION} 下找到
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)