Android 如何使我的布局文本视图根据所有AVD自动调整

Android 如何使我的布局文本视图根据所有AVD自动调整,android,android-layout,Android,Android Layout,现在发生的是,我的版面的文本视图没有调整到更高的AVD,如10.1或更高。。 现在我想让我的文本视图在每个屏幕上自动调整,即在每个AVD上运行 请指导我怎么做 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_heig

现在发生的是,我的版面的文本视图没有调整到更高的AVD,如10.1或更高。。 现在我想让我的文本视图在每个屏幕上自动调整,即在每个AVD上运行

请指导我怎么做

 <LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" android:weightSum="1">  


   <TextView 
    android:text="this is my First screen"
    android:layout_height="38dp" android:layout_weight="0.05" android:layout_width="fill_parent"/>
   <Button android:text="NEXT" android:id="@+id/next" android:layout_width="264dp" android:layout_height="34dp"></Button>


</LinearLayout>

只需更换此

android:layout_height=“38dp”


包装内容,

thanx用于回复,但当转到AVD 3.7及更高版本时,此功能不起作用,文本变得太小,无法阅读。要使用另一个大小,我现在记不起名称了,,,填充家长,包装内容,第3个1,您尝试过第3个1吗,?我认为这是适用于更高Api的wrap_parent。我已经尝试了所有方法,而且因为我搜索它不能这样做。你必须为每个屏幕调整文本视图。你可以搜索“如何获得窗口大小”,然后通过编程检查更高的Api窗口大小,并使用java类修复textView的textSize。“我的版面的文本视图不适应更高的AVD,如10.1?方法对于textview的高度或宽度?文本的高度和大小…我希望我的文本在高分辨率屏幕上运行时自动调整,即大小和高度,但在更高的AVD上运行时不会发生这种情况…文本变得非常小,非常难阅读。安卓:layout\u height=“38dp”对于文本视图,对于高分辨率设备来说非常小。我认为您应该通过android:layout\u height=“wrap\u content”更改此设置,然后像android:setTextsize=“14dp”一样设置textview的textsize,然后重试。感谢真正的问题是,我的文本应该自动调整到每个屏幕分辨率。分配一些文本大小是不行的,因为如果我们分配一些文本大小,它将无法在新屏幕上运行时进行优化,无论是更高还是更低。但是,如果您不分配文本大小,您是否应该知道默认情况下的文本大小?