아래 소스 처럼 매우 간단하게 hd에 화면에 꽉차게 bg가 안먹혀서 테스트 삼아 만들어봤습니다.

그런데 아래 스크린샷처럼 100%로 안나오고 저렇게 나오는 이유는 뭔가요?

저는 분명히 layout에 fill_parent로 줬는데도 말이죠.

res/layout/test.xml 에 위치했구요 layout뒤에 추가 옵션없이 했습니다. 이거 왜그런건지요?


package kr.co.temp;

import android.app.Activity;

import android.os.Bundle;


public class Test extends Activity {

/** Called when the activity is first created. */

@Override

public void onCreate(Bundle savedInstanceState) {

   super.onCreate(savedInstanceState);

   setContentView(R.layout.test);

}

}



<?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:background="#FFFFFFFF"

    >

<TextView  

android:layout_width="wrap_content" 

android:layout_height="wrap_content"  

android:textColor="#FFFF0000"

android:text="TEST"

/>

</RelativeLayout>

hd_errory.png