Dim b As Button
b.Initialize("KeyboardButton")
b.TextColor = Colors.Black
b.TextSize = 18
b.SingleLine = True
b.Typeface = Typeface.DEFAULT
b.Text = "h"
b.Tag = "xxx"
b.Gravity = Gravity.CENTER_HORIZONTAL
b.Gravity = Gravity.CENTER_VERTICAL
b.Padding = Array As Int(0,0,0,0)
Dim UnPressed, Pressed As ColorDrawable
UnPressed.Initialize2(0xFFFFFFFF, 6dip, 0, 0)
Pressed.Initialize2(0x00FFFFFF, 6dip, 0, 0)
'b.Background = UnPressed
Dim sld As StateListDrawable
sld.Initialize
sld.AddState(sld.State_Enabled, UnPressed)
sld.AddState(sld.State_Pressed, Pressed)
b.Background = sld
pnlKeys.AddView(b, 0, 72dip, 28dip, 36dip)