1

There are 8 imgbuttons on my activity. I want them to resize for different screens, but they stay the same. I am using mipmaps.

Main.xml:

......

 <ImageButton
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:src="@mipmap/adduser2"  
    android:layout_marginTop="33dp"
    android:background="#ffffffff"
    android:layout_margin="33dp"
    android:scaleType="fitXY"/>
    android:layout_marginTop="33dp"
    android:background="#ffffffff"
    android:layout_margin="33dp"
  />

manifest:

  <supports-screens 
     android:resizeable="true"
     android:smallScreens="true"
     android:normalScreens="true"
     android:largeScreens="true"
     android:xlargeScreens="true"
     android:anyDensity="true"
/>
Nathaniel Ford
  • 20,545
  • 20
  • 91
  • 102
Anete Jonase
  • 13
  • 1
  • 5

1 Answers1

1

This Link should give you the answer, you need to create different images and put them in their respective folders based on their pixel densities.

sBourne
  • 483
  • 1
  • 5
  • 17