마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

아래의 코드를 어떻게 구성을 해야할지 잘 모르겠습니다.

0 추천

안녕하세요.

ReCycleView를 사용해서, 아래와 같이 1,2,3,4,5,6 부분의 구획을 나누어야 하는데.. 그 방법을

잘 모르겠습니다. 아래의 제  xml부분에 주석처리한 부분에 저렇게 나뉘어지도록 리싸이클뷰를

통해서 구획을 나눠서 만들어야할텐데 예제들을 보아도, 이게 정말 쉽지가 않네요 ㅠㅠ..

어떻게 해야 가능한한 쉽게, 아래와 같이 구획을 나눌수가 있을까요 ㅠ 도움을 좀 얻고싶습니다.

코드가 살짝 추가되는데 댓글에  추가해 보았습니다.

tata.png

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_location"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="ex.real_project.Location">

    <RelativeLayout
        android:id="@+id/Location_Toolbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="5dp">

        <TextView
            android:id="@+id/Location_TextView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="메뉴 선택"
            android:layout_marginTop="10dp"
            android:layout_centerHorizontal="true" />
      
    </RelativeLayout>

    
Kind카인드 (3,600 포인트) 님이 2016년 11월 5일 질문
<LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:orientation="horizontal">

        <Button
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="1번" />

        <Button
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="2번" />
    </LinearLayout>

    <!--
        이 부분에, 저 구획을 나누어야 할거같다고 생각합니다.
    -->

</LinearLayout>

답변 달기

· 글에 소스 코드 보기 좋게 넣는 법
· 질문에 대해 추가적인 질문이나 의견이 있으면 답변이 아니라 댓글로 달아주시기 바랍니다.
표시할 이름 (옵션):
개인정보: 당신의 이메일은 이 알림을 보내는데만 사용됩니다.
스팸 차단 검사:
스팸 검사를 다시 받지 않으려면 로그인하거나 혹은 가입 하세요.
...