У меня есть элемент списка в Android, который корректно отображается в Android Studio, но в реальной сборке отображается как квадрат, когда я перемещаю его на телефон
Может кто-нибудь решить это для меня, пожалуйста?
Компоновка
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/item_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000000"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:textSize="18dp"
android:text="Title Name"/>
<TextView
android:id="@+id/item_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/item_title"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
android:layout_marginLeft="10dp"
android:textColor="#000000"
android:textSize="10dp"
android:text="Price : 100.00 pkr"/>
<TextView
android:id="@+id/item_quantity"
android:layout_width="26dp"
android:layout_height="26dp"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginEnd="11dp"
android:layout_marginRight="11dp"
android:background="@drawable/rectangle"
android:gravity="center"
android:text="10"
android:textColor="#FFFFFF"
android:textSize="14sp"
android:textStyle="bold" />
</RelativeLayout>
Прямоугольник
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#5490CC"></solid>
<size android:width="26dp" android:height="26dp"/>
</shape>
введите описание изображения здесь