我想將手機中的圖像顯示給用戶。但我想向用戶展示圖像的預覽。在Android中顯示圖片預覽
而且當用戶觸摸的圖像,我要顯示的圖像的路徑。
我在我的佈局中有一個按鈕。點擊按鈕時如何顯示圖像。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical" android:background="@drawable/back_default">
<Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/button_pickimage" android:id="@+id/btn_pickimage"></Button>
</LinearLayout>