阅读背景:

android:ImageView选择本地图片并显示

来源:互联网 

运行成果:

摹拟器图库就三张 没方法~画质挺感人~

一个隐式意图

布局文件:

<RelativeLayout xmlns:android="https://schemas.android.com/apk/res/android"
    xmlns:tools="https://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <ImageView
        android:id="@+id/image_choose"
        android:layout_width="250dp"
        android:layout_height="250dp"
        android:background="#CC0000" 
        android:layout_centerHorizontal="true"
        android:layout_marginTop="30dp"
        android:src="@drawable/default_bg"
        android:padding="5dp"
        />

</RelativeLayout><Relative




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: