Yup, the example is using an old constructor. In general when people
used this the inflateParams was just an empty map, since this
constructor was really only used by some parts of the system. So, you
should just be able to drop this argument. If this is not an empty
map, I believe you want to create the View and then use
setLayoutParams.

Cheers,
Justin
Android Team @ Google

On Oct 19, 4:35 am, JavaAndroid <[EMAIL PROTECTED]> wrote:
> Hi All,
> I tried quite a few applications present in web.. I was making a
> custom view using Button and LinearLayout
> public class SingleWeatherInfoView extends LinearLayout {
>
>         public SingleWeatherInfoView(Context context) {
>                 super(context);
>         }
>
>         @SuppressWarnings("unchecked")
>         public SingleWeatherInfoView(Context context, AttributeSet attrs,
>                         Map inflateParams) {
>                 super(context, attrs,inflateParams);
>         }
>
> }
>
> Im getting error at this line super(context, attrs,inflateParams); it
> says this constructor is undefined. I feel this Class might have
> written for previous version of Emulator, Now its not recognizing this
> constructor. Is there any way to make it work in m5 version.
>
> Thanks in Advance
>
> Thanks
> JavaAndroid
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to