1

ImageView: scale properly above Button

view story
linux-howto

http://stackoverflow.com – I'm new to Android and everything went well until now I have to deal with the layout. What I want is this layout: Layout how it should be The image should be properly scaled and keep its ratio. That's why I tried this XML code, but it doesn't work the way I want. The image keeps its ratio but the left and right side are out of the screen when vertical and cut at the top and bottom when horizontal: Layout how it is <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_ (HowTos)