any ideas?

On 16 Dic, 13:40, Paolo <[email protected]> wrote:
> Thanks a lot for your answer ;)
>
> Before to use my own nine-patch, I'd like to understand what I'm wrong
> extending the RelativeLayout.
> So, in other topics I found that Roman Guy suggested to use
> setWillNotDraw(false).  Using this flag I can show my Custom Layout
> correctly running on a device (why?), but I continue to not see its
> own child in the Eclipse editor. It isn't a big problem, because I
> know what I'm doing, but I'd like that all the things work fine also
> with the editor. About this Eclipse shows me a warining that says:
>
> "AndroidManifest: Ignoring unknown 'TextView' XML element" -
> com.android.ide.eclipse.adt
>
> where TextView is RelativeLayout's chid.
>
> Maybe I'm forgetting something... :(
>
> On 16 Dic, 12:42, Kostya Vasilyev <[email protected]> wrote:
>
>
>
> > 16.12.2010 14:34, Paolo пишет:
>
> > > I've tried, but I don't like that nine-patch. Maybe I should draw end
> > > substitute my own nine patch. Anyway in this way I can simply manage
> > > it in the Eclipse Layout editor, and that's is good!
>
> > Yes, you can certainly use other nine-patches from Android (see my
> > previous message on where to find them), or draw your own:
>
> >http://developer.android.com/guide/topics/graphics/2d-graphics.html#n...
>
> > > The only thing I don't like of the nine-patch way is that I have to
> > > draw one nine-patch for all the time I want to change, for example the
> > > color of the background or the alpha value, while extending
> > > RelativeLayout I can to that by code programmatically. Is it right?
>
> > You can change the background from code:
>
> >http://developer.android.com/reference/android/view/View.html#setBack...)
>
> >http://developer.android.com/reference/android/view/View.html#setBack...)
>
> > On the other hand, overriding onDraw does give you complete control, so
> > it's a judgment call on flexibility vs. effort (isn't everything?)
>
> > --
> > Kostya Vasilyev -- WiFi Manager + pretty widget 
> > --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 [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