mRelative = (RelativeLayout)findViewById(R.id.relative);
      
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(100,100);
mRelative.setLayoutParams(lp);



위와같이 크기변경을 할려고하는데.
자꾸 런타임 오류가 나는데요


원래 되는건데..
머가 문제인지 영.모르겠어요..ㅡ.ㅡ
1222.jpg



관련 xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relative"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#223344"
    >
<TextView  
android:id="@+id/tv"
   android:layout_width="fill_parent" 
   android:layout_height="wrap_content" 
   android:text="@string/hello"
   android:background="#123456"
   android:layout_alignParentTop="true"
    />
   
</RelativeLayout>