0

初心者の Android 開発者。私はEclipseを使用してアプリを作成および設計しています。

突然、物理 Android デバイスで TextViews がテキストの折り返しを停止しました。アラート ダイアログも折り返されなくなりました。ラッピングはデザイナーとエミュレーターで正しく機能します。

私が最後にテストしたとき、それらはデバイス上で正しくラップされました。そうして以来、いくつかのボタンを備えた新しいアクティビティを追加しただけです。以下のメインメニューアクティビティで何かを変更したとは思いません。

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" 
android:layout_height="match_parent">

<RelativeLayout
android:id="@+id/textViewRedeem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".ActivityMainMenu" >

<Button
    android:id="@+id/buttonQuickStart"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:onClick="handleQuickStart"
    android:text="@string/buttonQuickStart" />
<Button
    android:id="@+id/buttonLoad"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@+id/textViewLoad"
    android:layout_alignRight="@+id/buttonQuickStart"
    android:layout_below="@+id/textViewNew"
    android:layout_marginTop="18dp"
    android:onClick="handleLoad"
    android:text="@string/buttonLoad" />

<Button
    android:id="@+id/buttonRedeemCode"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@+id/textViewLoad"
    android:layout_below="@+id/textViewLoad"
    android:layout_marginTop="14dp"
    android:onClick="handleRedeem"
    android:text="@string/buttonRedeemCode" />

<Button
    android:id="@+id/buttonNew"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@+id/textViewQuickStart"
    android:layout_alignRight="@+id/buttonQuickStart"
    android:layout_below="@+id/textViewQuickStart"
    android:layout_marginTop="18dp"
    android:onClick="handleNew"
    android:text="@string/buttonNew" />

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@+id/buttonRedeemCode"
    android:layout_below="@+id/buttonRedeemCode"
    android:text="@string/defineRedeem"
    android:textAppearance="?android:attr/textAppearanceMedium" 
    android:singleLine="false"/>
<TextView 
    android:id="@+id/textViewQuickStart" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignLeft="@+id/buttonQuickStart" 
    android:layout_below="@+id/buttonQuickStart" 
    android:text="@string/defineQuickStart" 
    android:textAppearance="?android:attr/textAppearanceMedium" 
    android:singleLine="false"/>
<TextView android:id="@+id/textViewNew" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignLeft="@+id/buttonNew" 
    android:layout_below="@+id/buttonNew" 
    android:text="@string/defineNew" 
    android:textAppearance="?android:attr/textAppearanceMedium" 
    android:singleLine="false"/>
<TextView 
    android:id="@+id/textViewLoad" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignLeft="@+id/textViewNew" 
    android:layout_below="@+id/buttonLoad" 
    android:text="@string/defineLoad" 
    android:textAppearance="?android:attr/textAppearanceMedium"
    android:singleLine="false" />

私が使用している AVD は、Android 4.3 を搭載した 3.2 インチの HVGA スライダーです。アプリをテストしている実際のデバイスは、Android 2.3.6 と 3.65 インチの画面を搭載した Samsung S7500L です。

4

1 に答える 1

0
// try this
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            xmlns:tools="http://schemas.android.com/tools"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingBottom="@dimen/activity_vertical_margin"
            android:paddingLeft="@dimen/activity_horizontal_margin"
            android:paddingRight="@dimen/activity_horizontal_margin"
            android:paddingTop="@dimen/activity_vertical_margin"
            tools:context=".ActivityMainMenu" >

    <LinearLayout
            android:id="@+id/textViewRedeem"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_marginTop="5dp"
            android:orientation="vertical">

        <Button
                android:id="@+id/buttonQuickStart"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:onClick="handleQuickStart"
                android:text="@string/buttonQuickStart" />

        <TextView
                android:id="@+id/textViewQuickStart"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/defineQuickStart"
                android:textAppearance="?android:attr/textAppearanceMedium"/>

        <Button
                android:id="@+id/buttonNew"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="18dp"
                android:onClick="handleNew"
                android:text="@string/buttonNew" />

        <TextView android:id="@+id/textViewNew"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/defineNew"
                  android:textAppearance="?android:attr/textAppearanceMedium"/>

        <Button
                android:id="@+id/buttonLoad"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="18dp"
                android:onClick="handleLoad"
                android:text="@string/buttonLoad" />

        <TextView
                android:id="@+id/textViewLoad"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/defineLoad"
                android:textAppearance="?android:attr/textAppearanceMedium"/>

        <Button
                android:id="@+id/buttonRedeemCode"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="14dp"
                android:onClick="handleRedeem"
                android:text="@string/buttonRedeemCode" />

        <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/defineRedeem"
                android:textAppearance="?android:attr/textAppearanceMedium"/>
    </LinearLayout>

</ScrollView>
于 2013-10-07T04:32:16.930 に答える