하나의 텍스트보기가 끝나면 다른 텍스트보기가 이전의 왼쪽 가장자리에서 시작되도록 두 개의 텍스트보기를 그려야합니다. 나는 각각의 텍스트가 다를 수 있기 때문에 이것을 프로그램 적으로해야만한다. 첫 번째 텍스트 뷰의 왼쪽 가장자리의 x 좌표를 얻는 방법과 첫 번째 텍스트 뷰의 왼쪽 가장자리와 일치하도록 두 번째 텍스트 뷰의 오른쪽 가장자리를 설정하는 방법은 무엇입니까?다른 텍스트 뷰의 왼쪽 가장자리에 텍스트보기를 설정하는 방법은 무엇입니까?
도움을 주시면 감사하겠습니다.
편집 : 여기
<TextView android:gravity="center_vertical|left"
android:textColor="#000000" android:textSize="10dip" android:id="@+id/updateorder"
android:layout_marginTop="50dip" android:layout_alignParentRight="true"
android:text="x" style="@style/compactview" android:background="@drawable/ornage"
android:paddingLeft="5dip" android:layout_marginRight="73dip"></TextView>
<TextView style="@style/compactview" android:id="@+id/neworder"
android:textColor="#000000" android:background="@drawable/red1"
android:layout_alignBottom="@id/updateorder" android:text="x"
android:textSize="10dip" android:gravity="center"
android:layout_toRightOf="@id/updateorder"></TextView>
동적으로 매개 변수를 설정해야합니다. – user590849