ProgressBar가 맨 오른쪽보기와 겹치지 않게하려면 어떻게해야합니까? TableLayout을 사용하고 싶지는 않습니다. 나는 또한이 우수한 SOF link을 이미 읽었습니다.ProgressBar가 RelativeLayout의 맨 오른쪽보기와 겹치지 않게 유지
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp" >
<RelativeLayout
android:id="@+id/rel_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="LLL" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/RIGHT"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="RRR" />
</RelativeLayout>
<ProgressBar
android:id="@+id/pb"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="fill_parent"
android:layout_height="5sp"
android:layout_toRightOf="@+id/rel_left"
android:max="100"
android:progress="80" />
</RelativeLayout>
이것은 작동합니다! 귀하의 질문에 대답하기 위해, 나는 "rel_left"와 "RIGHT"에 또 다른 TextView를 추가 할 것이기 때문에 그들 자신의 RelativeLayout에 싸여 있습니다. – AG1