안녕하세요? 스스로 셀프 스터디 하는 직딩 입니다.
하는 일이 다른쪽이라 어제 저녁 퇴근하고 나서 부터 열심히 검색을 해 보았습니다만, 키워드의 잘못된 선택인지
답을 찾지 못하고 질문을 올리게 되었습니다.
스크롤뷰 안에 테이블 레이아웃, 그리고 그 안에 테이블로우 한줄에 텍스트뷰 2개씩 들어갑니다.
문제는 글자 길이에 따라 가변적이라서요 데이블로우에 글자가 길어지면, 1:9 였다가, 2:8 이었다가...
3:7, 4:6...이런식으로 가변적이 되는 것 입니다. 원하는것은 딱 고정적으로 5:5 를 항상 보여 주고 싶습니다.
레이아웃.xml 의 내용을 올리겠습니다.
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TableRow>
<TextView
android:text="AAA"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tvAAA"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</TableRow>
<TableRow>
<TextView
android:text="BBB"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tvBBB"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</TableRow>
<TableRow>
<TextView
android:text="CCC"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tvCCC"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</TableRow>
<TableRow>
<TextView
android:text="DDD"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tvDDD"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</TableRow>
<TableRow>
<TextView
android:text="EEE"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tvEEE"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</TableRow>
<TableRow>
<TextView
android:text="FFF"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/tvFFF"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</TableRow>
</TableLayout>
</ScrollView>
is that all??
코드 하일라이트 썼더니 이상하게 보여서 수정 하였습니다.