文件名称:安卓家庭记账系统
文件大小:123KB
文件格式:DOC
更新时间:2016-05-25 05:43:53
关于家庭记账
关于家庭记账的代码public class ColaBox extends Activity { private Handler mHandler = new Handler(); ImageView imageview; TextView textview; int alpha = 255; int b = 0; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); imageview = (ImageView) this.findViewById(R.id.ImageView01); textview = (TextView) this.findViewById(R.id.TextView01); Log.v("ColaBox", "ColaBox start ..."); imageview.setAlpha(alpha); new Thread(new Runnable() { public void run() { initApp(); while (b < 2) { try { if (b == 0) { Thread.sleep(1000); b = 1; } else { Thread.sleep(50); } updateApp();