I have a pretty simple xml file that has an image button in it. The image is displayed perfectly in the graphic designer of the xml designer, it is displayed perfectly at the start of the development assembly, but as soon as I create the signed apk file and run it, the image is no longer displayed. This is just an empty button. I canβt come up with why, any ideas? The xml file looks like this:
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/navigation_root" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <TextView android:id="@+id/navigation_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="5dp" android:text="TextView" android:textAppearance="?android:attr/textAppearanceLarge" > </TextView> <SeekBar android:id="@+id/navigation_seekbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_weight="1" android:padding="5dp" > </SeekBar> <LinearLayout android:id="@+id/linearLayout1" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="5dp" > <ImageButton android:id="@+id/part_select_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/chapter_select" > </ImageButton> <Button android:id="@+id/navigation_ok_button" android:layout_width="75dp" android:layout_height="match_parent" android:layout_weight="1" android:text="@string/ok" > </Button> <Button android:id="@+id/navigation_cancel_button" android:layout_width="75dp" android:layout_height="match_parent" android:layout_weight="1" android:text="@string/cancel" > </Button> </LinearLayout>
The image @drawable/chapter_select is a rather small (41 * 41) png file located in the res / drawable folder.
odiggity
source share