Saturday, March 1, 2014

[android-developers] In android custom_toast_layout, layout margin is not working.

I am using the custom toast and in it i am providing layout_margin right but it is not working any suggestion where is the problem.below is the code i am using.
<?xml version="1.0" encoding="utf-8"?>    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  android:id="@+id/custom_toast_layout_id"  android:layout_width="fill_parent"  android:layout_height="fill_parent"  android:background="#FFF"  android:orientation="horizontal"  android:layout_marginRight="200dip">    <ImageView      android:id="@+id/image"      android:layout_width="wrap_content"      android:layout_height="fill_parent"      android:layout_marginRight="5dp" />    <TextView      android:id="@+id/text"      android:layout_width="wrap_content"      android:layout_height="fill_parent"      android:textColor="#000" />  </LinearLayout>

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment