일부 텍스트보기 및 버튼이 포함 된 Android 애플리케이션을 개발 중입니다.다중 텍스트 TextView에서 TextView가 끝난 직후 버튼?
텍스트보기 바로 뒤에 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>
android : baselineAligned = "" – KOTIOS
레이아웃 코드를 입력하거나 대략적인 스케치를 표시하십시오. –
당신은 (아마도) 수평'LinearLayout'에서'android : gravity = "bottom"을 찾고있는 것처럼 들립니다. –