電話にある画像をユーザーに表示したい。しかし、ユーザーに画像のプレビューを表示したいと考えています。
また、ユーザーが画像に触れたときに、画像のパスを表示したいと考えています。
レイアウトにボタンがあります。ボタンをクリックしたときに画像を表示する方法。
<?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>