我怎么能找到敬酒小部件的布局参数? [英] how can I find the layout parameters of the toast widget?
问题描述
我喜欢的面包
部件的布局非常多,这意味着圆角,透明,浅灰色的边框。有什么办法能看到这样的Android标准部件,如面包
I like the layout of the toast
widget very much, that means rounded corners, transparency, light grey border. Is there any way to see the layout parameters of such android standard widgets like the toast
?
我想就定义了一个的TextView
用相同的布局参数。
I would like do define a TextView
with the same layout parameters.
推荐答案
布局,可以发现下
{} SDKBASEDIR /平台/ {}释放/res/layout/transient_notification.xml
The layout can be found under {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发现/平台/ {}释放/ RES /绘{} - 分辨率
The drawable toast_frame.9.png can be found under {SDKBASEDIR}/platforms/{RELEASE}/res/drawable{-RESOLUTION}
这篇关于我怎么能找到敬酒小部件的布局参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!