0

私は線形レイアウト内でこのテキストビューを使用しています(注:このコードは他のレイアウト内にあります):

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" >

    <TextView
        android:id="@+id/display"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="#000000"
        android:layout_marginTop="10dp"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:layout_marginBottom="10dp"
        android:layout_gravity="center"
        android:gravity="center_horizontal"
        android:textSize="20sp" 
        android:textIsSelectable="true" />

</LinearLayout>

Android 端末の画面を横向きにすると、テキストビューのテキストの一部 (2 行目) が切れてしまいます。

それを修正するにはどうすればよいですか??

4

1 に答える 1

0

ランドスケープ モード用に別のレイアウト リソース ファイルを作成できます。詳細はこちら:

http://developer.android.com/training/multiscreen/screensizes.html

于 2013-08-02T21:44:47.933 に答える