【Google】Androidアプリ作成part8
■ このスレッドは過去ログ倉庫に格納されています
0283デフォルトの名無しさん
2011/03/18(金) 12:28:44.39fill_parentだと内包要素が大きすぎるとき画面外にはみでてしまう。
<TableLayout
android:layout_height="wrap_content" android:layout_width="fill_parent">
<TableRow android:layout_width="fill_parent">
<TextView android:text="hoge" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:text="" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:inputType="text" ></EditText>
<Button android:text="fuga"
android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
</TableRow></TableLayout>
みたいな一行に3要素あるレイアウトで、
2番目の要素のEditTextにページ読み込み時にテキスト入れてるんだけど、
テキストが長すぎるとおかしな感じになる…。
EditTextの幅は文章幅分もいらなくて、TextViewとButton設置して余った幅にいれて欲しいんだけど、
どうしたら実現できるでしょうか?
■ このスレッドは過去ログ倉庫に格納されています