@Override |
public void onCreate(Bundle savedInstanceState) { |
super .onCreate(savedInstanceState); |
setContentView(R.layout.activity_log_in); |
id = (TextView) findViewById(R.id.idview1); |
password = (TextView) findViewById(R.id.passwordview1); |
version = (TextView) findViewById(R.id.versionview1); |
author = (TextView) findViewById(R.id.authorview1); |
idInput = (EditText) findViewById(R.id.idinput1); |
passwordInput = (EditText) findViewById(R.id.passwordinput1); |
loginButton = (Button) findViewById(R.id.loginbutton1); |
regButton = (Button) findViewById(R.id.registerbutton1); |
id.setTextColor(Color.WHITE); |
password.setTextColor(Color.WHITE); |
version.setTextColor(Color.BLUE); |
author.setTextColor(Color.BLUE); |
database = new DatabaseHelper(LogInActivity. this , "my_database" ); |
// database.getReadableDatabase(); |
regButton.setOnClickListener( new registerListener()); |
loginButton.setOnClickListener( new loginListener()); |
// login(); |
} |
初级程序员
by: 兴少 发表于:2013-04-25 09:08:31 顶(0) | 踩(0) 回复
具体内容是什么
回复评论