Friday, March 18, 2011

[android-developers] Re: Assign LayoutParams from Xml

It works like a charm! Thanks!

On 17 Mar, 21:25, Andrea Richiardi <andrea.richia...@gmail.com> wrote:
> Thanks guys, I missed that article.
>
> I'll try!
>
> On 17 Mar, 18:16, Kostya Vasilyev <kmans...@gmail.com> wrote:
>
> > 17.03.2011 20:02, TreKing ?????:
>
> > > I don't think you add the xmlns declaration to your custom view.
> > > That's for Android defined views.
>
> > The repeated xmlns:android is unnecessary, but harmless.
>
> > A custom view needs to use a full-qualified class name, either in the
> > start tag, like this:
>
> > <*it.andrea.richiardi.myapp.*ViewClass
>
> > or like this:
>
> > <view class="*it.andrea.richiardi.myapp.*ViewClass"....
>
> > Just using this:
>
> > <ViewClass...
>
> > doesn't work (probably tries to instantiate android.widget.ViewClass and
> > fails).
>
> > > Have you read this:
> > >http://developer.android.com/guide/topics/ui/custom-components.html#m...
>
> > --
> > Kostya Vasilyev --http://kmansoft.wordpress.com

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate