Hi,
I have 2 Views, viewChild and viewParent, and I want to show the
viewChild inside viewParent that is inside an Activity.
In viewChild I dont have any layout parameters.

----------------
|  Activity
----------------
      |
----------------
|  viewParent
----------------
      |
----------------
| viewChild
----------------

I tried with:

// viewParent constructor
...
viewParent(context)
{
   test = new viewChild(context);
   AbsoluteLayout.LayoutParams layout =
                new AbsoluteLayout.LayoutParams(80, 80, 0, 20);
   test.setLayoutParams(layout);
   test.setVisibility(View.VISIBLE);
}
...

// onDraw() viewParent
onDraw()
{
    ....
    test.invalidate();
   ....
}

But I can not see anything about viewChild. The viewParent shows
allright.
I have tested with LinearLayout too.
What am I doing wrong?
Thanks in advance.


--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to