리사이클러 뷰 안에 코인들 정보 들어있는건데

코인 정보들 사이사이에 그래프뷰를 넣고싶음

코인

그래프

코인

그래프

이런식임



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="60dp"
android:orientation="horizontal">

<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|center_vertical"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp">

<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/coin_image"
android:layout_width="50dp"
android:layout_height="50dp"
android:scaleType="fitXY"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:riv_corner_radius="25dp" />

<TextView
android:id="@+id/coin_name"
android:layout_width="40dp"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="40dp"
android:layout_toRightOf="@id/coin_image"
android:gravity="center"
android:textSize="20sp" />

<LinearLayout
android:id="@+id/price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/coin_name"
android:orientation="vertical">

<TextView
android:id="@+id/market_price"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:layout_marginRight="70dp"
android:gravity="right"
android:textSize="15sp" />

<TextView
android:id="@+id/fluctate_price"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:layout_below="@id/market_price"
android:gravity="right"
android:textSize="15sp" />
</LinearLayout>

<TextView
android:id="@+id/fluctate_rate"
android:layout_width="60dp"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/price"
android:gravity="right"
android:textSize="20sp" />
</RelativeLayout>

</LinearLayout>

이게 위 2개사진 코드임

근데 RelativeLayout사이에 그래프뷰를 넣으면

아래처럼 되더라고

바깥에다 넣으면 

숨어버려서 안보이고


<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_CoinList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="8dp" />

<com.jjoe64.graphview.GraphView
android:id="@+id/chart"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_below="@+id/toolbar"
android:layout_margin="8dp"
android:background="@drawable/round_rectangle"
android:gravity="center"
android:textAlignment="center"
android:textColor="#000000"
android:textSize="36sp" />

각각 그래프랑 리사이클러뷰 코드임
어디를 수정해야 그래프가 보일까
이것저것 해봤는데 다 실패함..