安卓bundle傳遞對象(androidbundle能傳遞bitmap嗎)
大家好,我是小豆豆,我來為大家解答以上問題。安卓bundle傳遞對象,androidbundle能傳遞bitmap嗎很多人還不知道,現在讓我們一起來看看吧!
1、可以啊可以直接傳好吧!
2、Bitmapbitmap=null;
3、Intentintent=newIntent();
4、Bundlebundle=newBundle();
5、bundle.putParcelable("bitmap",bitmap);
6、intent.putExtra("bundle",bundle);
7、bitmap已經自己實現了Parcelable接口
本文到此講解完畢了,希望對大家有幫助。
文章版權及轉載聲明:
作者:yunbaotang本文地址:http://www.ntlljf.com/bao/117859.html發布于 2024-04-21
文章轉載或復制請以超鏈接形式并注明出處孕寶堂

