B.Arunkumar wrote:
> Hi,
>
> I included the lines:
>
> RelativeLayout relativelayoutevent = (RelativeLayout)
> getLayoutInflater().inflate(R.layout.event, null);
>         FrameLayout.LayoutParams tempparams= new
> FrameLayout.LayoutParams
> (LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT,Gravity.BOTTOM|
> Gravity.LEFT);
>         relativelayoutevent.setLayoutParams(tempparams);
>         framelayout1.addView(relativelayoutevent);
>
> And this is the exception it throws:
>
> android.view.InflateException: <merge /> can be used only with a valid
> ViewGroup root and attachToRoot=true
>

and whats not clear with this?

http://developer.android.com/reference/android/view/LayoutInflater.html#inflate(org.xmlpull.v1.XmlPullParser,
android.view.ViewGroup, boolean)

pskink

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to