Android drawable appears stretched for API <23 and correctly for API 23 and above
问题 I am currently using a list selector for my listview and created it using layer-list. This is my xml code: <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/menu_arrow" android:width="18dp" android:height="36dp" android:top="5dp"/> <item android:top="0dp" android:left="5dp" android:bottom="0dp" android:right="0dp"> <shape android:shape="rectangle"> <solid android:color="@android:color/transparent"/> </shape> </item> When i build the app,