私は同じ広画面とその子供な限り高いようである水平LinearLayout
を持っていると思いますが、トリックがありますその子供たちはそれぞれ動的な幅を持つだろうと私は彼らが画面(カットアウト)から外に出たくはありません。私はそれらがすべて目に見えるように、彼らが新しい行に流れたり壊れたりするようにします。水平のLinearLayout、ノーモア水平スペースニューライン上で以下の子供を移動
Androidにはまったく関係ありませんが、インライン<div>
のHTMLでの動作と似ています。
は、ここで私が今持っているものです。
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="If you would enter some digits in this field " />
<EditText
android:id="@+id/tvDistance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="enter some digits here"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" that would be great" />
</LinearLayout>
しかし、すぐにLinearLayout
の子どもたちは、余分な部分が見えない/画面を降り画面よりも広くなるよう。
Androidレイアウトでは実行できません。幅を測定するリスナーを実装し、ビューを移動しないようにし、ビューを移動させない限り、もう一つの選択肢は、WebViewを作成してそれを作成することです。私はそれがそのようなものであることは知っていますが、私はその面での経験はありません。がんばろう。 – LuckyMe