public void resizeParentLayoutHeight(Adapter adapter) {
  if (adapter != null) {
   int listCount = adapter.getCount();
   if (listCount > 0) {
    int height = MAX_LISTVIEW_ROW_HEIGHT * listCount;
    resizeParentLayoutHeight(height);
    lv.post(new Runnable() {
     
     @Override
     public void run() {
      pd = ProgressDialog.show(thing.this, "","데이터를 가져오고 있습니다!");
      int height = lv.getMeasuredHeight();
      if (height > 0) {
       resizeParentLayoutHeight(height);
      }
     }
    });
   }
  }
 }
 
 public void resizeParentLayoutHeight(int height) {
  
  
  final RelativeLayout layout = (RelativeLayout)findViewById(R.id.listViewLayout);
  if (layout != null) {
   final ViewGroup.LayoutParams params = layout.getLayoutParams();
   if (params != null) {
    if (lv != null) {
     
     // ���� ���� margin �� ����Ѵ�.
     MarginLayoutParams margin = (MarginLayoutParams)lv.getLayoutParams();
     
     if(margin != null) {
      height += (margin.topMargin + margin.bottomMargin);
     }
    }
    params.height = height;
    
    
    runOnUiThread(new Runnable() {
     
     @Override
     public void run() {
      layout.setLayoutParams(params);
     }
     
    });
    
   }
  }pd.dismiss();
  
 }
이 부분에 스레드를 주고싶은데요...
프로그래스바를 주고싶어서 그런데..
잘안되네요...조언좀 부탁드립니다 지적과함께..