<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/tv_item" android:layout_width="match_parent" android:layout_height="50dp" android:layout_marginLeft="5dp" android:gravity="center_vertical" android:text="TextView" /> </LinearLayout>