3
回答
这样的Activity,你觉得在启动的时候会卡顿吗?
注册华为云得mate10,2.9折抢先购!>>>   
public class MainActivity extends Activity {
	
	public void onCreate(Bundle savedInstanceState) {
        InputStream is = getResources().openRawResource(R.drawable.wone);    
        try {
			Thread.sleep(1000 * 7);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
        Bitmap bit = BitmapFactory.decodeStream(is); 
        
        setContentView(R.layout.activity_main);
        ImageView iView = (ImageView)findViewById(R.id.imageView1);
        iView.setImageBitmap(bit);
        super.onCreate(savedInstanceState);
	}
}


举报
蜗牛TT
发帖于6年前 3回/881阅
顶部