Place This Code To droidface.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/droidface" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="org.dface.droidface.DroidFace"> <ImageView android:layout_width="match_parent" android:layout_margin="10dp" android:contentDescription="@string/app_name" android:layout_gravity="center" android:scaleType="fitXY" app:srcCompat="@drawable/image" android:layout_height="match_parent" /> </FrameLayout> |
Like This
What fitXY in ImageView
That makes image fits screen correctly