Railsoft, depending on what your exact specifications are, you can use the
View.GONE, View.INVISIBLE, or View.VISIBLE with View.setVisibility(int) to
achieve some dynamic-type layout stuff.

Also, there are some good tutorials on other methods to do some dynamic-type
stuff that I found on the Dev Resources page:
http://developer.android.com/resources/articles/layout-tricks-stubs.html
http://developer.android.com/resources/articles/layout-tricks-reuse.html
http://developer.android.com/resources/articles/layout-tricks-efficiency.html
http://developer.android.com/resources/articles/layout-tricks-merge.html

Hope that helps some,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Mon, Jan 18, 2010 at 5:07 PM, IcedDante <[email protected]> wrote:

> Bump. I am facing much the same issue, so let me pose my dilemma which
> I think is similar to yours (and hopefully not hijack your thread).
>
> My View doesn't use an XML layout, I just reference a View subclass
> defined in the Action class. The app consists of an empty canvas that
> the user can create/interact with various 2D objects. That's the easy
> part, but I want an onscreen widget to appear on the right side of the
> screen that allows the user to select various objects to create.
> Because there can be several objects the widget will just display the
> two or three most recently used objects, and expand to present all
> possible objects when an expansion button is clicked.
>
> Due to the highly specific nature of this widget I was thinking I
> needed to write my own custom widget, but was unsure how I could
> integrate this into my existing view. Is it possible to display a
> small widget inline in this manner?
>
> RailSoft, the other option I am considering is using Drawable to
> create this widget on the Canvas, detecting mouseclicks, and handling
> the action that way. Doesn't sound like that is the right way to do it
> within the Android architecture, however.
>
> Randeep
>
> On Jan 9, 5:05 pm, RailSoft <[email protected]> wrote:
> > Hi!
> >
> >     I am a novice in Android and in the process of developing a killer
> > app :) Is there a way to mix and match XML and programmaticlayoutin
> > a view. A part of my screen is static and can be defined in an XML.
> > However, there is one part where it is dynamic (not just the data,
> thelayoutitself) and am not sure how to go about this. I can make this
> > is as a custom Widget, but there is a bit of a learning curve. For
> > now, I have done the wholelayoutfor that screen in Java and I am not
> > very convinced about that. I did search the web and the forum, but
> > didn't find any answer. Any suggestion is highly appreciated.
> >
> > Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to