On Thu, Mar 17, 2011 at 11:07 AM, Andrea Richiardi <
[email protected]> wrote:

> And if i wanted not to inflate from outside the class, but inside?
>

Then it's up to you to also dynamically set the layout parameters.


> MyLayoutView view = new MyLayoutView(context);
>
> without any inflation doesn't call the MyLayoutView(Context
> context, AttributeSet attrs) constructor I guess.
>
> This is why I'm trying to pull parameters directly from the xml "inside"
> the Context only constructor.
>

I'm kind of lost as to what you're trying to accomplish. What XML are you
pulling parameters from, if not the one that defines your custom layout
itself?

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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