I created layout for my custom toast message, and I set fill_parent to the root element of my custom layout but the size of the layout is still a lot smaller than the whole screen.
Is it possible to set the size of the toast message to take the whole screen ?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toast_layout_root"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" android:gravity="center" >
<ImageView android:id="@+id/image"
android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_margin="10dip"/>
</LinearLayout>
Note the android:layout_width=”fill_parent” and android:layout_height=”fill_parent” properties. But still my layout is around one third of the screen . . .
any ideas or suggestions how can I make the toast to take the whole screen ?
1 Answer