I am trying to create a custom row for my `RecyclerView`. Here is my custom row layout:

```
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="180dp"
    android:layout_margin="5dp"
    android:background="#00000000">

    <FrameLayout
        android:id="@+id/customLevelLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <ImageView
                android:id="@+id/levelImage"
                android:layout_width="160dp"
                android:layout_height="160dp"
                android:layout_above="@+id/gameText"
                android:layout_centerInParent="true"
                android:scaleType="fitXY"
                android:src="@drawable/circular_background" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:text="1"
                android:textColor="#fff"
                android:textSize="45sp" />

            <TextView
                android:id="@+id/gameText"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="10dp"
                android:gravity="center"
                android:textColor="#000"
                tools:text="Tracing" />
        </RelativeLayout>

        <ProgressBar
            android:id="@+id/gameProgressBar"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#fff"
            android:indeterminate="true"
            android:padding="45dp"
            android:visibility="gone" />
    </FrameLayout>

    <ImageView
        android:id="@+id/lockImage"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/lock_background"
        android:padding="45dp"
        android:src="@drawable/lock"
        android:visibility="gone" />
</RelativeLayout>

```

This is how it looks like:

[![enter image description here](https://i.stack.imgur.com/aDyKQ.png)](https://i.stack.imgur.com/aDyKQ.png)

The problem is, I have to define a predefined height of the custom row i.e `170dp` currently. I am facing 2 problems because of this:

1) If I open the application in a small screen or a tablet device. The custom row is looking ugly i.e I loose the circular shape of the `ImageView`.

2) The text doesn't remain at the centre if there is a slight change in the layout.