繁体   English   中英

Galaxy Nexus上的布局渲染是怎么回事?

[英]What's going on with layout rendering on the Galaxy Nexus?

一个非常简单的项目。 这是Activity子类:

public class Home extends Activity
{
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

这是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"
    >
<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Hello World"
    android:textSize="100sp"
    />
</LinearLayout>

我希望它可以在计划背景上呈现为某些(非常大的)文本,但是屏幕快照中显示了在Galaxy Nexux(Android 4.0.2)上实际呈现的内容。 它在我测试过的其他设备上效果很好。

我是在做奇怪的事情,还是GN Android版本中的错误?

Galaxy Nexus的屏幕截图显示了奇怪的布局渲染

尝试将其添加到清单文件中:

<supports-screens android:largeScreens="true" android:xlargeScreens="true" />

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM