android:layout_width="wrap_content"
设置个值
横屏再写一个布局文件

解决方案 »

  1.   

    TextView的宽高属性设置为:
     android:layout_width="0dp"
            android:layout_height="wrap_content"
    android:layout_weight="1"
      

  2.   

    用TableLayout  TextView和按钮纵向Centry,TextView  的 android:layout_height="wrap_content"   layout_width="0dp"  layout_weight="1"  按钮的layout_weight="0.2"(所占比例,看美观来设置)
      

  3.   

    先给textview的weight调成wrap_content,然后在textview布局的下面,给button加上Android:layout_rightof这个属性