在HTC感觉布局问题 [英] Layout issue on HTC Sensation
问题描述
我有这样的Android的布局:
I have this Android layout:
的main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/mainContainer">
<ImageView android:layout_height="wrap_content" android:id="@+id/imageView1"
android:src="@drawable/logo" android:layout_marginTop="30px"
android:layout_marginBottom="50px" android:scaleType="fitCenter" android:layout_width="fill_parent"></ImageView>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
</LinearLayout>
和这个清单文件:
的AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mogoolab.android.flowerforyou"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="3" />
<application android:icon="@drawable/logo" android:label="@string/app_name" android:name=".FlowerForYouApp"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
......
</application>
</manifest>
我的主要布局不拉伸到全宽在HTC感觉(并在模拟器AVD与Android 3.0),我不知道为什么。
My main layout doesn't stretch to full width on a HTC Sensation (and in emulator on AVD with Android 3.0) and I dont know why.
我在哪里可以找到我怎么能设计出具有更高的所有Android 1.5的版本兼容的一个Android用户界面的教程。此外,我需要学习如何设计一个Android用户界面的Widget首页
Where I can find a tutorial with how can I design an Android UI compatible with all higher Android 1.5 versions. Also I need to learn how to design an Android UI Home Widget.
感谢您
推荐答案
我知道你想要什么,但你可以看看<一个href=\"http://stackoverflow.com/questions/5768373/android-make-a-background-image-not-stretch-its-assigned-view-out\">this
I do know what exactly you want but you could take a look at this
另外,我不知道这一点:
Also i am not sure about this:
android:scaleType="fitCenter" in your main.xml
编辑:
您是否已经阅读此链接
这篇关于在HTC感觉布局问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!