마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

Table Layout에서 여백?테두리 마지막으로 한번만 더 질문할게요 ㅠㅠ

0 추천

한 두세번 질문 올리는것 같네요.. 죄송해요. 해결이 되지 않아서 ㅠ

테이블레이아웃으로 바둑판 형식을 만들고
각 셀에 배경색을 주고 마진으로 셀 간격을 띄웠는데요.

알수없는 여백? 테두리? 같은게 겹쳐서 생깁니다.

스크린샷을 보면 알겠지만 특정부분은 흰색바탕으로 잘나오는데
특정부분은 뭔가..여백같기도 하고 테두리 같기도 한 것들이 겹쳐져 있어요..

조언좀 주세요~

 

 


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
    >
        <TableLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">

            <!--1행-->
            <TableRow>
                <!--1행 : 1열 ~ 5열-->
                <View
                    android:layout_width="6dp"
                    android:layout_height="6dp"
                    android:layout_margin="@dimen/table_margin"
                    android:background="#ff5f93ff"/>
                <TextView
                    android:layout_width="6dp"
                    android:layout_height="6dp"
                    android:layout_margin="@dimen/table_margin"
                    android:background="#ff5f93ff"/>
                <TextView
                    android:layout_width="@dimen/table_cell_width"
                    android:layout_height="@dimen/table_cell_height"
                    android:layout_margin="@dimen/table_margin"
                    android:background="#ff5f93ff"/>
                <TextView

 

치솟음 (3,710 포인트) 님이 2015년 4월 7일 질문

답변 달기

· 글에 소스 코드 보기 좋게 넣는 법
· 질문에 대해 추가적인 질문이나 의견이 있으면 답변이 아니라 댓글로 달아주시기 바랍니다.
표시할 이름 (옵션):
개인정보: 당신의 이메일은 이 알림을 보내는데만 사용됩니다.
스팸 차단 검사:
스팸 검사를 다시 받지 않으려면 로그인하거나 혹은 가입 하세요.
...