I have an android application with a main menu containing buttons with a background image
Code:
<Button
android:id="@+id/button1"
android:layout_width="300sp"
android:layout_height="45sp"
android:background="@drawable/aqua"
android:text="This is a button"
android:textColor="#FFFFFF"
/>
The image loads up in android above 5.0 but does not load up in android Kitkat and jellybean. I'm using android studio.
consider using a lower resolution drawable. it might just be that your file size is too big
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.