About the layout of Android

for example, I don"t know why the match_parent of LinearLayout whose id is item_layout1 fails on the phone, but there is no problem in the preview of Android Studio? Please do me a favor?!

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="115dp"
    android:paddingTop="8dp"
    android:paddingLeft="8dp"
    android:paddingRight="8dp"
    android:orientation="horizontal">

    <LinearLayout
        android:id="@+id/item_layout1"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="110dp"
        android:paddingRight="8dp"
        android:background="@drawable/touch_bg">
        ... ...
    </LinearLayout>

    <FrameLayout
        android:layout_width="100dp"
        android:layout_height="110dp"
        android:layout_marginRight="4dp"
        android:layout_marginBottom="4dp"
        android:background="-sharpf33213">
        ... ...
    </FrameLayout>

</LinearLayout>


got it:

    @NonNull @Override
    public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view = null;
        // inflate 2 parent
        view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_1, parent, false);
        return new MyViewHolder2(view);
    }
Menu