背景图片显示问题 图片显示错误 android开发
16lz
2021-01-24
先贴出我的配置文件代码
<?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:gravity="center_vertical" android:background="@drawable/bg" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:gravity="center_horizontal" > <TextView android:layout_width="800dp" android:layout_height="500dp" android:textSize="25dp" android:gravity="center_vertical" /></LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="100dp" android:orientation="horizontal" android:gravity="center_horizontal" > <Button android:id="@+id/browse_button" android:layout_width="150dp" android:layout_height="100dp" android:background="@drawable/see" /> <EditText android:id="@+id/face_search_text" android:layout_width="400dp" android:layout_height="93dp" android:layout_marginLeft="500dp" android:layout_marginTop="4dp" android:lines="1" android:textSize="30dp" android:hint="@string/search_text" /> <Button android:id="@+id/face_searchButton" android:layout_width="101dp" android:layout_height="100dp" android:background="@drawable/search" /> </LinearLayout></LinearLayout>
代码是没有任何问题的,背景图片显示不出来或者显示错误的原因在于drawable其他文件夹内含有同名的错误的背景图。
更多相关文章
- Android——动态广播、静态广播
- android 中ScrollView的使用
- Android:网络框架android-async-http 1.4.6-1.4.9更新概述
- Android(安卓)获取WIFI MAC地址的方法
- Android版本更新代码实现
- Android从摄像头或相册中获取照片
- android点击文本框之外的地方隐藏键盘
- android 4.1源码下载方法
- 获取android源代码