textView を使用してテキスト ボックスを表示しようとしています。実行時にデータを追加しています。サイズ23行のボックスを表示したいだけです。
使用しているコードはこれです。
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:id="@+id/twittertext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fadingEdge="vertical"
android:maxLines="23"
android:minLines="23"
android:background="@drawable/dropshadow"
android:scrollbars="vertical"
android:text="Getting data on your slow n/w..."
android:textColor="#ffffff"
/>
</ScrollView>
</LinearLayout>
これをエミュレーターで見ると完全に表示されます (Android 2.2) が、実際のデバイス (Wildfire 2.2.1) で同じコードをテストすると、ボックスは 23 行表示されません。むしろ、5行のボックスを表示するだけです。スクロールできますが、
:分行
動かない。
私を助けてください。