小编GAG*_*'sB的帖子

背景图像未显示在手机上

我正面临着这个恼人的问题,我的应用程序背景图像显示在模拟器上,但不在我的Samsung S4 Active Device上.我尝试在另一台设备上执行该应用程序并且它可以工作,但我不知道我的手机发生了什么.我做了重置工厂,但无济于事.我正在使用Android工作室进行编码,几天前一切都工作正常,但现在我遇到了特定背景图像的问题,当我尝试另一个图像时,它在我的手机中工作正常.

有人遇到过这样的问题吗?任何帮助都会受到赞赏,因为我无法继续解决这个问题.

enter code here`
 <RelativeLayout 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:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"
    android:background="@drawable/background_draft">
    <TextView android:text="@string/hello_world" android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        />
   </RelativeLayout>
    
Run Code Online (Sandbox Code Playgroud)

谢谢你的帮助.

此致,GB

resources android background image drawable

2
推荐指数
1
解决办法
4321
查看次数

标签 统计

android ×1

background ×1

drawable ×1

image ×1

resources ×1