Hi guys.
I am developing a native android app and I have a question about button positing.
My problem: I have a background image and a transparent button that is correctly position (relative to the background) when I am using the Nexus 1 device. When I change the device to Nexus 5, the background adjust scales automatically, but the button position does not follow it. On Nexus 7, I also notice that the button width/height is not being scaled. (see image attached).
How do I make my transparent button to stay in a specific position relative to the background and make its width/height auto scales?
Here is my xml layout file:
\<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout\_width="match\_parent" android:layout\_height="match\_parent" android:background="@drawable/scene1" tools:context="com.mypackage.app.MainActivity" tools:ignore="MergeRootFrame" \> \<Button android:id="@+id/button1" android:layout\_width="220dip" android:layout\_height="60dip" android:layout\_alignParentBottom="true" android:layout\_alignParentLeft="true" android:layout\_marginBottom="192dp" android:onClick="button1Handler" /\> \</RelativeLayout\>