功能分类:社交
支持平台:Android
运行环境:Eclipse
开发语言:Java
开发工具:Eclipse
源码大小:7.16MB
源码下载地址:http://down.51cto.com/data/1975234
源码简介
腾讯微博小清新客户端
源码运行截图
源码片段
- @Override
- public void onClick(View v) {
- if (v.getId() == R.id.button1) {
- Builder dialog=new AlertDialog.Builder(homeActivity);
- dialog.setTitle("关于");
- dialog.setMessage("傻逼微博,多谢支持");
- dialog.setNegativeButton("取消",null);
- dialog.show();
- } else if (v.getId() == R.id.button2) {
- ImageLoader imageLoader = ImageLoader.getInstance();
- imageLoader.clearMemoryCache();
- imageLoader.clearDiscCache();
- Toast.makeText(homeActivity, "清除成功", Toast.LENGTH_SHORT).show();
- } else if (v.getId() == R.id.button3) {
- // 清空授权信息
- Util.clearSharePersistent(homeActivity.getApplicationContext());
- // 跳转到LoginActivity
- startActivity(new Intent(homeActivity, LoginActivity.class));
- homeActivity.overridePendingTransition(R.anim.in_from_left,
- R.anim.out_to_right);
- homeActivity.finish();
- } else if (v.getId() == R.id.button4) {
- System.exit(0);
- }
- }