<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<ImageView
android:id="@+id/et_image"
android:layout_weight="500"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<EditText
android:text="http://p9.qhimg.com/t0164f1c53191fdf7eb.jpg"
android:id="@+id/et_path"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="请输入图片路径"/>
<Button
android:onClick="viewImage"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="查看"
/>
</LinearLayout>
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<ImageView
android:id="@+id/et_image"
android:layout_weight="500"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<EditText
android:text="http://p9.qhimg.com/t0164f1c53191fdf7eb.jpg"
android:id="@+id/et_path"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="请输入图片路径"/>
<Button
android:onClick="viewImage"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="查看"
/>
</LinearLayout>