안녀아세요. xml문서에서
Linerlayout안에 Tablelayout을 만들고 그안에 RelativeLayout을 만들었습니다.
레이아웃 안에 각종 위젯을 넣었을때
프로그래스 바가 화면크기에 맞지 않고 넘어갑니다.
위와 같이 프로그래스 바가 넘어 가버립니다.ㅠㅠ
화면크기에 딱맞게 프로그레스바를 조정하고 싶은데 어떻게 해야 할까요??
될수 있으면 layout_width="100dip"과같이 절대값을 지정하지 않고 해결하고 싶습니다.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TableRow
android:padding="10dip">
<TextView
android:id="@+id/Oil"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="10dip"
android:text="Oil"
/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<ProgressBar
android:id="@+id/progresss"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:max="100"
android:progress="85"
android:progressDrawable="@drawable/progressbar_custom"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="!@#$"
/>
</RelativeLayout>
</TableRow>
</TableLayout>
</LinearLayout>




테이블 Row 여기서 문제가 되는 것 같은데 굳이 Table 레이아웃 써서 작성하실 이유가 있나요? LinearLayout 이랑 Relative 잘 활용하시면 왠만한 레이아웃은 다 만들 수 있어요