How can I find the layout options for the toast widget?

I really like the widget layout toast, which means rounded corners, transparency, a light gray border. Is there any way to see the layout options of such standard Android widgets as toast?

I would like to define a TextViewwith the same layout options.

+5
source share
1 answer

The layout can be found under {SDKBASEDIR} / platform / {RELEASE} /res/layout/transient_notification.xml

eg. for 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>

The highlighted toast_frame.9.png can be found under {SDKBASEDIR} / platform / {RELEASE} / res / drawable {-RESOLUTION}

+10
source

All Articles