0
我想共享一張照片,它位於我的xml視圖中,但任何共享intenet都需要將照片保存在存儲卡上。我怎樣才能使用這張照片?在xml視圖共享照片
這是我的xml:
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView1"
android:layout_below="@+id/textView1"
android:layout_marginLeft="17dp"
android:text="Button" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/ellyfish" />
即時新編程可以解釋更多?鋤頭我可以保存imageview在SD卡? – user3118791
@ user3118791你沒有保存一個imageview你正在保存的圖像的內容(圖像)表示爲一個位圖在Android中的文件。 –
在第一行,我應該把id我的imageview? – user3118791