赞
踩
- public class MainActivity extends Activity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- Button login=(Button)findViewById(R.id.login);
- login.setOnClickListener(new View.OnClickListener() {
-
-
- @Override
- public void onClick(View v) {
- Intent intent=new Intent(MainActivity.this,Login.class);
- startActivity(intent);
- }
- });
- }
- }
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。