Aligning to a TabHost panel

Mike Henry

Member
Licensed User
Longtime User
There are several posting about aligning controls to the activity,
but none of those will work with a TabHost. Whether using code or
designer scripts, the numbers are relative to the activity but
the control is relative to the tab panel, which is offset below
the tabs. For example, none of these will work:
EditText1.Bottom = 100%y
EditText1.Top = TabHost1.Height - EditText1.Height
EditText1.Gravity = Gravity.Bottom
Is there a way to anchor a button to the bottom of a TabHost panel?
 

Mike Henry

Member
Licensed User
Longtime User
EditText1.Bottom = 100%y doesn't work.

The EditText1.Bottom is measured from the inner panel,
but the 100%y is measured from the outer activity.
If you do that the EditText1 will be below the bottom
of the screen.
 
Upvote 0
Top