ㄱ- ........
안녕하세요.. 그리드레이아웃을 사용해서, 아래의 사진과 같은 문제를 만들고 있는데.. 잘 되지 않아서
질문을 올렸습니다. 현재 완성한 부분은, 1,2,3,4 까지 완성을 했는데 마지막 5번 버튼을 어떻게 해야 할지
모르겠습니다.. 이 단순한 문제로 .. 너무 힘듭니다.
일단 제가 완성한 소스는 아래오 ㅏ같습니다.
그런데, 제가 만든 소스는, rowspan과 colspan으로 만들었고.. 이게 아니라, row값이라던지 col 값들을..
주면서 만들어야 아래와 같은 그림이 나올텐데.. 이 부분을 잘 모르겠어요 ㅠ ㅠ
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="ex.a160918.MainActivity">
<GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:columnCount="4"
>
<Button android:text="1" android:layout_rowSpan="2" android:layout_gravity="fill_vertical"/>
<Button android:text="2" android:layout_columnSpan="2" android:layout_gravity="fill_horizontal"></Button>
<Button android:text="3" />
<Button android:text="4"> </Button>
</GridLayout>
</RelativeLayout>