지금 xml 파일이



linearlayout

tablelayout

tablerow

listview

tablerow

edittext



이런 식인데요.


edittext는 제대로 나오는데 listview 부분만 까맣게 나오고 내용이 안뜨네요 ㅠㅠ


listview 코드만 새로운 파일에 넣었더니 제대로 나오는데...


tablelayout 안에 listview를 넣을 수 없나요?


혹시 몰라서 java 코드는


public class write extends Activity {

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

    @Override

    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.main);

        

        ArrayList<String> colors = new ArrayList<String>();

        colors.add("빨강");

        colors.add("파랑");

        colors.add("노랑");

        colors.add("초록");


        ArrayAdapter<String> Adapter;

        Adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, colors);

        

        ListView list = (ListView)findViewById(R.id.ListView01);

        list.setAdapter(Adapter);

    }

}


입니다 도와주세요 ㅠㅠ