Here image of what i want. They need to be scaled according to the screen size. If screen size is 1920x1080p they should look perfect.
Here what i tried but it fails nothing visible
<ImageButton
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/imageButton_register"
android:background="@null"
android:src="@drawable/bgbutton_1"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_centerInParent="true"
/>
<ImageButton
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/imageButton_register2"
android:background="@null"
android:src="@drawable/button1"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_centerInParent="true"
/>
<ImageButton
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/imageButton_register3"
android:background="@null"
android:src="@drawable/button2"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:layout_centerInParent="true"
/>
I am using android studio and api is 9 on windows 8.1
the images are exact size 1080x560 pixel and 1080x200 pixel