我是Android编程的初学者,我今天正在编写一个短信发送程序。像这样的程序:
单击发送按钮后,结果将如上所示:
但是我可以在发送按钮下方显示结果吗,如下图所示?
这是首页的java代码:
public class sms extends Activity {
Button sendButton;
EditText phoneTextField;
EditText msgTextField;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.smslay);
msgTextField = (EditText) findViewById(R.id.msgTextField);
sendButton = (Button) findViewById(R.id.sendButton);
phoneTextField = (EditText) findViewById(R.id.phoneTextField);
}