//TableRow 에 붙힐 View를 생성				
            View child = (View)getLayoutInflater().inflate(R.layout.child_textview, null);		
	    TextView tv = (TextView)child.findViewById(R.id.childtv);		

            //AddView
            rowTitle.addView(child);						
	    rowTitle.setBackgroundResource(R.drawable.tableboder);
						
	    View child2 = (View)getLayoutInflater().inflate(R.layout.child_textview02, null);	
	    TextView tv2 = (TextView)child2.findViewById(R.id.childtv02);
            //AddView
	    rowContent.addView(child2);		
	    rowContent.setBackgroundResource(R.drawable.tableboder);
	    					
	    TextView line = new TextView(getApplicationContext());
	    line.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, 2));
	    line.setBackgroundColor(Color.BLACK);
	
	    //TableLayout 에 addView	
	    _tbLayout02.addView(rowTitle);
	    _tbLayout02.addView(line);  //line 추가
	    _tbLayout02.addView(rowContent);

            //Invalidate
	    _tbLayout02.invalidate();	

'안드로이드' 카테고리의 다른 글

ViewPager  (0) 2014.05.15
DrawerLayout  (0) 2014.05.15
안드로이드 Asset 의 파일 가져오기  (0) 2014.02.20
안드로이드에서 SWF 파일 재생하기  (0) 2014.01.27
안드로이드 내장 갤러리 호출  (0) 2013.12.24
Posted by 자바리즘
,