Mam recentrly spróbował niestandardową Toast po tutorialu:Tworzenie pełnoekranowy niestandardową Toast
http://developer.android.com/guide/topics/ui/notifiers/toasts.html#CustomToastView
Z takiego układu:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toast_layout_root"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="8dp"
android:background="#DAAA"
>
<ImageView android:src="@drawable/droid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="8dp"
/>
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFF"
/>
</LinearLayout>
Ale wydaje się, że fill_parent w układzie korzenia nie ma żadnego efektu.
Czy masz pomysł, w jaki sposób mogę to naprawić, aby uzyskać pełnoekranowy toast?