If you do not want the activity to be automatically squeezed up when the keyboard of the Input Method pops up, Set Properties in activtyAndroid: windowsoftinputmode = "adjustpan"You can.
<ActivityAndroid: Name= "Testactivity"Android: windowsoftinputmode= "Adjustpan">
You want to output a pure numeric keyboard:
< Style Name = "Editfont" Parent = "@ Android: style/textappearance. widget. edittext" > < Item Name = "Android: layout_width" > Fill_parent </ Item > < Item Name = "Android: layout_height" > Wrap_content </ Item > < Item Name = "Android: textcolor" > @ Color/Black </ Item > < Item Name = "Android: textsize" > 18dp </ Item > < Item Name = "Android: singleline" > True </ Item > < Item Name = "Android: Numeric" > Integer </ Item > < Item Name = "Android: digits" > 1234567890. </ Item > </ Style >
Directly reference the style.