テキスト ビューとボタンを含む Android アプリケーションを開発しています。
テキスト ビューの直後に Button を配置する必要があります。私の TextView がうまく機能している単一行の場合。しかし、複数行のテキストビューを使用すると、ボタンが1行目の最後に配置されました。
ボタンを正しい位置に配置する方法 (テキストビューの最後の行の後)?
編集後:
これは私の xml です。コードで使用し、動的に生成します。
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="10dp"
android:shrinkColumns="1"
android:stretchColumns="1" >
<TableRow android:id="@+id/tableRow1" >
<Button
android:id="@+id/ayehPlace_btnCounter"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ayeh_counter"
android:text="" />
<TextView
android:id="@+id/ayehPlace_txtAyeh"
android:layout_width="wrap_content"
style="@style/ayehPlace_txt"
android:layout_height="wrap_content"
android:text="" />
</TableRow>
</TableLayout>