Hi I am trying to convert my game to support multiple resolutions. I
have this in my manifest.
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />
<supports-screen anyDensity="false" />
The splash screen and main menu background all scaled up correctly, so
far so good. However in my main menu I have a inner linearlayout which
I use to put another bitmap so it is the background of where the menu
items go. This bitmap did not get scaled. Why is this so? I have other
issues but trying to understand whats happenning here will help me fix
the other issues I think.
Here is my xml for the main menu.
<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent" xmlns:android="http://
schemas.android.com/apk/res/android"
android:focusable="true" android:focusableInTouchMode="true"
android:background="@drawable/legion_menu_background" android:id="@
+id/main_menu">
<LinearLayout android:orientation="vertical"
android:layout_centerInParent="false" android:focusable="true"
android:focusableInTouchMode="true"
android:layout_alignParentTop="false"
android:layout_alignParentBottom="false"
android:layout_alignParentLeft="false"
android:layout_centerHorizontal="false"
android:layout_centerVertical="false"
android:layout_alignParentRight="false"
android:layout_marginLeft="170dip"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@drawable/scroll_7buttons"
android:layout_marginTop="150dip"
android:id="@+id/mainMenuLayout">
<ImageButton android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/Start"
android:clickable="true"
android:layout_gravity="center_horizontal"
android:src="@layout/start_game_selected_button"
android:background="@drawable/transparent_background"
android:padding="17dip"
android:layout_marginTop="33dip"></
ImageButton>
<ImageButton android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/help"
android:clickable="true"
android:layout_gravity="center_horizontal"
android:src="@layout/help_selected_button"
android:background="@drawable/transparent_background"
android:padding="17dip"></ImageButton>
<ImageButton android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:layout_gravity="center_horizontal"
android:id="@+id/more"
android:src="@layout/more_selected_button"
android:background="@drawable/transparent_background"
android:padding="17dip"></ImageButton>
</LinearLayout>
</LinearLayout>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en