시간표를 구현하는 중 입니다.

<GridLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/grid1"
android:orientation="vertical">
<Button android:text="1" android:layout_width="45dp" android:background="#FFA7A7"/>
<Button android:text="2" android:layout_width="45dp" android:background="#FFA7A7"/>
<Button android:text="3" android:layout_width="45dp" android:background="#FFA7A7"/>
<Button android:text="4" android:layout_width="45dp" android:background="#FFA7A7"/>
<Button android:text="5" android:layout_width="45dp" android:background="#FFA7A7"/>
<Button android:text="6" android:layout_width="45dp" android:background="#FFA7A7"/>
<Button android:text="7" android:layout_width="45dp" android:background="#FFA7A7"/>
<Button android:text="8" android:layout_width="45dp" android:background="#FFA7A7"/>
<Button android:text="9" android:layout_width="45dp" android:background="#FFA7A7"/>
<TextView android:id="@+id/textview" android:text="컴퓨터 네트워크" android:background="#FAED7D"
android:textSize="10dp" android:layout_width="53dp"
android:layout_column="2" android:layout_row="1" android:layout_rowSpan="3"
android:layout_gravity="fill" android:gravity="center"/>
</GridLayout>
그리드레이아웃으로 구현중인데요
수직으로 1~9교시를 나타내고 상단의 요일을 누르면 다이얼로그창이 떠
해당 요일에 '과목명', '시작시간' 과 '교시'를 입력받게 구현중입니다.
builder=new AlertDialog.Builder(mContext);
builder.setView(layout);
dialog=builder.create();
dialog.setTitle("시간표 수정");
dialog.setButton2("확인", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
data=et1.getText().toString();
tv1.setText(data);
dialog.dismiss();
다음 코딩으로 '과목명'은 입력받아 출력하게 구현했는데요
문제는
xml에
android:layout_column="2" android:layout_row="1" android:layout_rowSpan="3"
의 값들을 어떻게 변경 할 수 있나는 것입니다.ㅠㅠ
1행2열에서부터 1~3행까지 차지한다는 것인데 이건 임의로 설정한거고,
다이얼로그로 입력받은 값을 대입하게 만들고 싶은데
어떻게 접근해야 할 지 모르겠습니다.
제 생각엔 GridLayout을 직접 자바로 구현해야하나 하는데
제 능력으론 많이 힘들구요...ㅠㅠ
어떻게 접급해야할지
해결방법 부탁드립니다!