可以通过下面的代码进行设置
<ImageView
android:id="@+id/face_img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="点进进行\n扫码登录"
android:layout_centerHorizontal="true"
android:textColor="@color/white"
android:shadowColor="@color/activition_color"
android:layout_marginTop="380dp"
android:gravity="center"
android:layout_centerVertical="true"
android:textSize="23sp"
android:background="@mipmap/rlsb" />
/>
上面是定义的图片的地方.
下面是对图片进行设置
ImageView face_img =findViewById(R.