I am making one time line view in my application. In layout i am getting too much space between two dots.

I have taken a `Recyclerview`. I am using this layout as its item. Below is my current output and code.

**My Output :**

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

**Expected Output :** (Ignore this colors. i just want view like this)

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

**My code :**

```
<?xml version="1.0" encoding="utf-8"?>
    <layout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto">

        <data>

            <import type="android.view.View" />

            <variable
                name="obj"
                type="com.smartcompliant.model.ComplaintProgressModel" />
        </data>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="100dp"
            android:orientation="vertical">

            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="20dp"
                    android:layout_marginTop="25dp"
                    android:orientation="vertical">

                    <TextView
                        android:background="@drawable/complaint_status"
                        android:layout_width="20dp"
                        android:layout_height="20dp"
                        android:textColor="@color/colorGreen" />

                    <View
                        android:layout_width="2dp"
                        android:layout_height="match_parent"
                        android:layout_gravity="center_horizontal"
                        android:background="@color/colorPrimaryCompHistory"
                        android:layout_marginTop="@dimen/margin_5"
                        android:visibility="@{obj.isLast ? View.VISIBLE : View.GONE}" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="0dp"
                    app:cardElevation="@dimen/margin_5"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="@dimen/margin_15"
                    android:layout_weight="1"
                    android:background="@drawable/line_box"
                    android:orientation="horizontal">

                    <ImageView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:backgroundTint="@color/colorTextHint"
                        android:layout_marginLeft="@dimen/margin_5"
                        android:layout_gravity="center_vertical"
                        android:src="@drawable/ic_left" />

                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="@dimen/margin_10"
                        android:orientation="vertical">

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@{obj.title1}"
                            android:textStyle="bold"
                            android:layout_marginTop="@dimen/margin_5"
                            android:textSize="@dimen/font_14"
                            android:padding="@dimen/margin_5"
                            android:textColor="@color/colorTextHint" />

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="@dimen/margin_5"
                            android:layout_marginLeft="@dimen/margin_5"
                            android:text="@{obj.title2}"
                            android:layout_marginBottom="@dimen/margin_10"
                            android:textSize="@dimen/font_12"
                            android:textColor="@color/colorTextHint" />

                    </LinearLayout>

                </LinearLayout>

            </LinearLayout>

        </LinearLayout>
    </layout>

```

Let me know if you require any other code. Please suggest something. Thank you !