我已经在Android上开发了一个应用程序,并设计了一张大小为320x480的启动画面。我希望只在手机上运行这个应用程序。但是当我在模拟器上运行我的应用程序时,图片被拉伸了,看起来不好看。我已经阅读了开发者文档,但它并没有给我足够的帮助。所以,我想知道应该定义什么尺寸才能使启动画面看起来像设计的那样,而且图片不会被拉伸。
我的XML文件...
请给我一些建议、链接或资源。谢谢。
我的XML文件...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:background="@drawable/screenbackground"
android:gravity="bottom"
android:orientation="vertical" >
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleLarge"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp" >
</ProgressBar>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/progressBar1"
android:layout_centerHorizontal="true"
android:layout_marginTop="8dp"
android:text="@string/loaddata"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#ffffff" >
</TextView>
</RelativeLayout>
请给我一些建议、链接或资源。谢谢。